blob: fa17eaebe812b0dec53ea684eeb8b138f9c2d72f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
PORTNAME= mmtf-cpp
DISTVERSIONPREFIX= v
DISTVERSION= 1.1.0
PORTREVISION= 1
CATEGORIES= science biology
MAINTAINER= yuri@FreeBSD.org
COMMENT= C++ MMTF format API, decoder and encoder, for molecular structures
WWW= https://mmtf.rcsb.org/
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= ${LOCALBASE}/include/msgpack.hpp:devel/msgpack-cxx
TEST_DEPENDS= catch>0:devel/catch
USES= cmake:testing compiler:c++11-lang localbase:ldflags
USE_GITHUB= yes
GH_ACCOUNT= rcsb
GH_TUPLE= rcsb:mmtf:8c88834:x/submodules/mmtf_spec
CMAKE_TESTING_ON= mmtf_build_local BUILD_TESTS
NO_BUILD= yes
NO_ARCH= yes
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
@${REINPLACE_CMD} -e '/find_package/s|msgpack|msgpackc-cxx|' \
${WRKSRC}/CMakeLists.txt
do-install:
cd ${WRKSRC} && ${COPYTREE_SHARE} include ${STAGEDIR}${PREFIX}
.include <bsd.port.mk>
|