PORTNAME= btllib DISTVERSIONPREFIX= v DISTVERSION= 1.8.0 CATEGORIES= biology devel MAINTAINER= yuri@FreeBSD.org COMMENT= Bioinformatics Technology Lab common code library WWW= https://github.com/bcgsc/btllib LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/LICENSE NOT_FOR_ARCHS= armv6 armv7 i386 powerpc # temporary until https://github.com/bcgsc/btllib/issues/117 is fixed BUILD_DEPENDS= bash:shells/bash \ samtools:biology/samtools \ cmake:devel/cmake-core LIB_DEPENDS= libsdsl.so:devel/sdsl-lite RUN_DEPENDS= samtools:biology/samtools USES= meson pkgconfig python:build shebangfix SHEBANG_FILES= scripts/* USE_GITHUB= yes GH_ACCOUNT= bcgsc GH_TUPLE= p-ranav:argparse:15d745f:argparse/subprojects/argparse \ skystrife:cpptoml:fededad:cpptoml/subprojects/cpptoml BINARY_ALIAS= python3=${PYTHON_CMD} # python3-config=${PYTHON_CMD}-config # installs python binding into a wrong location, see https://github.com/bcgsc/btllib/issues/111 BINARY_ALIAS+= python3-config=${PYTHON_CMD}-config post-patch: # workaround for https://github.com/BirolLab/btllib/issues/151 @${REINPLACE_CMD} \ -e "s|install_dir : 'lib/btllib/python|install_dir : '${PYTHONPREFIX_SITELIBDIR:S/${PREFIX}//:S/^\///}|g" \ ${WRKSRC}/wrappers/python/meson.build test-quick-python: @cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} ${PYTHON_CMD} ${FILESDIR}/example.py ${WRKSRC}/examples/my_reads.fq.gz .include