Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Oct 2018 21:21:18 +0000 (UTC)
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r482378 - in head/science: . mmtf mmtf/files
Message-ID:  <201810182121.w9ILLIaR028740@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yuri
Date: Thu Oct 18 21:21:17 2018
New Revision: 482378
URL: https://svnweb.freebsd.org/changeset/ports/482378

Log:
  New port: science/mmtf: C++ implementation of the MMTF API, decoder and encoder

Added:
  head/science/mmtf/
  head/science/mmtf/Makefile   (contents, props changed)
  head/science/mmtf/distinfo   (contents, props changed)
  head/science/mmtf/files/
  head/science/mmtf/files/patch-tests_mmtf__tests.cpp   (contents, props changed)
  head/science/mmtf/pkg-descr   (contents, props changed)
Modified:
  head/science/Makefile

Modified: head/science/Makefile
==============================================================================
--- head/science/Makefile	Thu Oct 18 20:23:18 2018	(r482377)
+++ head/science/Makefile	Thu Oct 18 21:21:17 2018	(r482378)
@@ -142,6 +142,7 @@
     SUBDIR += metaphysicl
     SUBDIR += minc2
     SUBDIR += mmdb2
+    SUBDIR += mmtf
     SUBDIR += mol2ps
     SUBDIR += molgif
     SUBDIR += mpb

Added: head/science/mmtf/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/science/mmtf/Makefile	Thu Oct 18 21:21:17 2018	(r482378)
@@ -0,0 +1,49 @@
+# $FreeBSD$
+
+PORTNAME=	mmtf
+DISTVERSION=	g20180730
+CATEGORIES=	science biology
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	C++ implementation of the MMTF API, decoder and encoder
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+RUN_DEPENDS=	${LOCALBASE}/include/msgpack.hpp:devel/msgpack
+
+USES=		cmake:outsource compiler:c++11-lang localbase:ldflags
+USE_GITHUB=	yes
+GH_ACCOUNT=	rcsb
+GH_PROJECT=	mmtf-cpp
+GH_TAGNAME=	63e58a9
+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>

Added: head/science/mmtf/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/science/mmtf/distinfo	Thu Oct 18 21:21:17 2018	(r482378)
@@ -0,0 +1,5 @@
+TIMESTAMP = 1539895815
+SHA256 (rcsb-mmtf-cpp-g20180730-63e58a9_GH0.tar.gz) = 4570596c98ab520514b31f88c66478170123e4aa8f724c96e69d4973be6a527e
+SIZE (rcsb-mmtf-cpp-g20180730-63e58a9_GH0.tar.gz) = 58757
+SHA256 (rcsb-mmtf-8c88834_GH0.tar.gz) = 7c29eb9064e53ea447701b79764732a72ff53aa5adff25759e0e2b549c212cca
+SIZE (rcsb-mmtf-8c88834_GH0.tar.gz) = 34499239

Added: head/science/mmtf/files/patch-tests_mmtf__tests.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/science/mmtf/files/patch-tests_mmtf__tests.cpp	Thu Oct 18 21:21:17 2018	(r482378)
@@ -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>

Added: head/science/mmtf/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/science/mmtf/pkg-descr	Thu Oct 18 21:21:17 2018	(r482378)
@@ -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/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201810182121.w9ILLIaR028740>