git: e46456e59b40 - main - science/mmtf-cpp: Update 1.0.0 -> 1.1.0
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 04 Oct 2022 01:35:28 UTC
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=e46456e59b408e84576e803475ff82d78208209c
commit e46456e59b408e84576e803475ff82d78208209c
Author: Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-10-03 14:59:07 +0000
Commit: Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-10-04 01:35:21 +0000
science/mmtf-cpp: Update 1.0.0 -> 1.1.0
---
science/mmtf-cpp/Makefile | 36 ++++++++++++------------------------
science/mmtf-cpp/distinfo | 6 +++---
science/mmtf-cpp/pkg-plist | 11 +++++++++++
3 files changed, 26 insertions(+), 27 deletions(-)
diff --git a/science/mmtf-cpp/Makefile b/science/mmtf-cpp/Makefile
index 7f2a0556db98..325838f234fa 100644
--- a/science/mmtf-cpp/Makefile
+++ b/science/mmtf-cpp/Makefile
@@ -1,7 +1,6 @@
PORTNAME= mmtf-cpp
DISTVERSIONPREFIX= v
-DISTVERSION= 1.0.0
-PORTREVISION= 2
+DISTVERSION= 1.1.0
CATEGORIES= science biology
MAINTAINER= yuri@FreeBSD.org
@@ -12,37 +11,26 @@ LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= ${LOCALBASE}/include/msgpack.hpp:devel/msgpack
+TEST_DEPENDS= catch>0:devel/catch
+
+USES= cmake:testing compiler:c++11-lang localbase:ldflags
-USES= cmake compiler:c++11-lang localbase:ldflags
USE_GITHUB= yes
GH_ACCOUNT= rcsb
-GH_TUPLE= rcsb:mmtf:8c88834:x/mmtf_spec
+GH_TUPLE= rcsb:mmtf:8c88834:x/submodules/mmtf_spec
+
+CMAKE_TESTING_ON= mmtf_build_local BUILD_TESTS
NO_BUILD= yes
NO_ARCH= yes
-PLIST_FILES= include/mmtf.hpp \
- include/mmtf/binary_decoder.hpp \
- include/mmtf/binary_encoder.hpp \
- include/mmtf/decoder.hpp \
- include/mmtf/encoder.hpp \
- include/mmtf/errors.hpp \
- include/mmtf/export_helpers.hpp \
- include/mmtf/map_decoder.hpp \
- include/mmtf/msgpack_decoder.hpp \
- include/mmtf/object_encoders.hpp \
- include/mmtf/structure_data.hpp
-
-post-patch:
- @cd ${WRKDIR} && ${LN} -s ${WRKSRC}/mmtf_spec # needed for testing
+post-patch: # correct paths of test data to be accessible to the test executable
+ @${REINPLACE_CMD} -e '\
+ s|\.\./submodules/mmtf_spec|${WRKSRC}/submodules/mmtf_spec|g; \
+ s|\.\./temporary_test_data|${WRKSRC}/temporary_test_data|g' \
+ ${WRKSRC}/tests/mmtf_tests.cpp
do-install:
cd ${WRKSRC} && ${COPYTREE_SHARE} include ${STAGEDIR}${PREFIX}
-do-test:
- @cd ${BUILD_WRKSRC} && \
- ${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} -Dmmtf_build_local=ON -DBUILD_TESTS=ON ${CMAKE_SOURCE_PATH} && \
- ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${ALL_TARGET} && \
- ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} test
-
.include <bsd.port.mk>
diff --git a/science/mmtf-cpp/distinfo b/science/mmtf-cpp/distinfo
index 164859da3a9d..b7006b8c4c09 100644
--- a/science/mmtf-cpp/distinfo
+++ b/science/mmtf-cpp/distinfo
@@ -1,5 +1,5 @@
-TIMESTAMP = 1549951746
-SHA256 (rcsb-mmtf-cpp-v1.0.0_GH0.tar.gz) = 881f69c4bb56605fa63fd5ca50842facc4947f686cbf678ad04930674d714f40
-SIZE (rcsb-mmtf-cpp-v1.0.0_GH0.tar.gz) = 59363
+TIMESTAMP = 1664827785
+SHA256 (rcsb-mmtf-cpp-v1.1.0_GH0.tar.gz) = 021173bdc1814b1d0541c4426277d39df2b629af53151999b137e015418f76c0
+SIZE (rcsb-mmtf-cpp-v1.1.0_GH0.tar.gz) = 106527
SHA256 (rcsb-mmtf-8c88834_GH0.tar.gz) = 7c29eb9064e53ea447701b79764732a72ff53aa5adff25759e0e2b549c212cca
SIZE (rcsb-mmtf-8c88834_GH0.tar.gz) = 34499239
diff --git a/science/mmtf-cpp/pkg-plist b/science/mmtf-cpp/pkg-plist
new file mode 100644
index 000000000000..d3e55e2b594d
--- /dev/null
+++ b/science/mmtf-cpp/pkg-plist
@@ -0,0 +1,11 @@
+include/mmtf.hpp
+include/mmtf/binary_decoder.hpp
+include/mmtf/binary_encoder.hpp
+include/mmtf/decoder.hpp
+include/mmtf/encoder.hpp
+include/mmtf/errors.hpp
+include/mmtf/export_helpers.hpp
+include/mmtf/map_decoder.hpp
+include/mmtf/msgpack_decoders.hpp
+include/mmtf/msgpack_encoders.hpp
+include/mmtf/structure_data.hpp