openbsd-ports/biology/py-biopython/Makefile
2008-01-11 09:25:59 +00:00

47 lines
1.1 KiB
Makefile

# $OpenBSD: Makefile,v 1.11 2008/01/11 09:28:20 winiger Exp $
SHARED_ONLY= Yes
COMMENT= Python tools for computational molecular biology
DISTNAME= biopython-1.41
PKGNAME= py-${DISTNAME}p4
CATEGORIES= biology
HOMEPAGE= http://www.biopython.org/
# BSD-like
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ${HOMEPAGE}DIST/
MODULES= lang/python
PY_FLAVOR= python${MODPY_VERSION}
BUILD_DEPENDS= ${MODPY_EXPAT_DEPENDS} \
::math/py-Numeric
RUN_DEPENDS= ${MODPY_EXPAT_DEPENDS} \
:py-mxDateTime-*-${PY_FLAVOR}:devel/py-mxDateTime,${PY_FLAVOR} \
:py-Numeric-*:math/py-Numeric \
:py-reportlab-*:print/py-reportlab/reportlab
REGRESS_DEPENDS=${RUN_DEPENDS}
EXAMPLESDIR= ${PREFIX}/share/examples/py-biopython
pre-configure:
@echo '5\nm2\nwq' | ed -s ${WRKSRC}/Bio/Wise/dnal.py
post-install:
${INSTALL_DATA_DIR} ${EXAMPLESDIR}
cd ${WRKSRC}/Tests; tar cf - * | tar xf - -C ${EXAMPLESDIR}
do-regress: fake
@rm -f ${WRKSRC}/Tests/test_copen.py*
@cd ${WRKSRC}/Tests && ${MAKE_ENV} \
PYTHONPATH=${WRKINST}${MODPY_SITEPKG} \
${MODPY_BIN} ./run_tests.py --no-gui
.include <bsd.port.mk>