diff options
Diffstat (limited to 'science/mmtf-cpp')
-rw-r--r-- | science/mmtf-cpp/Makefile | 49 | ||||
-rw-r--r-- | science/mmtf-cpp/distinfo | 5 | ||||
-rw-r--r-- | science/mmtf-cpp/files/patch-tests_mmtf__tests.cpp | 11 | ||||
-rw-r--r-- | science/mmtf-cpp/pkg-descr | 6 |
4 files changed, 71 insertions, 0 deletions
diff --git a/science/mmtf-cpp/Makefile b/science/mmtf-cpp/Makefile new file mode 100644 index 000000000000..40cdd5e2387b --- /dev/null +++ b/science/mmtf-cpp/Makefile @@ -0,0 +1,49 @@ +# $FreeBSD$ + +PORTNAME= mmtf-cpp +DISTVERSIONPREFIX= v +DISTVERSION= 1.0.0 +PORTREVISION= 1 +CATEGORIES= science biology + +MAINTAINER= yuri@FreeBSD.org +COMMENT= C++ MMTF format API, decoder and encoder, for molecular structures + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= ${LOCALBASE}/include/msgpack.hpp:devel/msgpack + +USES= cmake compiler:c++11-lang localbase:ldflags +USE_GITHUB= yes +GH_ACCOUNT= rcsb +GH_TUPLE= rcsb:mmtf:8c88834:x/mmtf_spec + +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 + +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 new file mode 100644 index 000000000000..164859da3a9d --- /dev/null +++ b/science/mmtf-cpp/distinfo @@ -0,0 +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 +SHA256 (rcsb-mmtf-8c88834_GH0.tar.gz) = 7c29eb9064e53ea447701b79764732a72ff53aa5adff25759e0e2b549c212cca +SIZE (rcsb-mmtf-8c88834_GH0.tar.gz) = 34499239 diff --git a/science/mmtf-cpp/files/patch-tests_mmtf__tests.cpp b/science/mmtf-cpp/files/patch-tests_mmtf__tests.cpp new file mode 100644 index 000000000000..e7e1d81127cc --- /dev/null +++ b/science/mmtf-cpp/files/patch-tests_mmtf__tests.cpp @@ -0,0 +1,11 @@ +--- tests/mmtf_tests.cpp.orig 2018-10-18 20:26:48 UTC ++++ tests/mmtf_tests.cpp +@@ -5,7 +5,7 @@ + #define CATCH_CONFIG_MAIN + #endif + +-#include "catch.hpp" ++#include <catch2/catch.hpp> + + #include <mmtf.hpp> + #include <mmtf/export_helpers.hpp> diff --git a/science/mmtf-cpp/pkg-descr b/science/mmtf-cpp/pkg-descr new file mode 100644 index 000000000000..d0b23bdfdd42 --- /dev/null +++ b/science/mmtf-cpp/pkg-descr @@ -0,0 +1,6 @@ +mmtf is a C++ headers-only decoder/encoder library for the MMTF format. + +The macromolecular transmission format (MMTF) is a binary encoding of chemical +and biological structures. + +WWW: https://mmtf.rcsb.org/ |