aboutsummaryrefslogtreecommitdiffstats
path: root/biology/py-biopython/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'biology/py-biopython/Makefile')
-rw-r--r--biology/py-biopython/Makefile41
1 files changed, 22 insertions, 19 deletions
diff --git a/biology/py-biopython/Makefile b/biology/py-biopython/Makefile
index e59a64a4cae6..2787d9a959ea 100644
--- a/biology/py-biopython/Makefile
+++ b/biology/py-biopython/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= biopython
-PORTVERSION= 1.00.a2
+PORTVERSION= 1.00.a3
CATEGORIES= biology python
MASTER_SITES= http://www.biopython.org/Download/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -17,16 +17,14 @@ MAINTAINER= wjv@FreeBSD.org
BUILD_DEPENDS= ${PYDISTUTILS}
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/Martel/__init__.py:${PORTSDIR}/textproc/py-martel \
- ${PYTHON_SITELIBDIR}/Numeric/Numeric.py:${PORTSDIR}/math/py-numeric
-
-# Biopython requires Python 2.0 or above:
-PYTHON_VERSION= python2.1
+ ${PYTHON_SITELIBDIR}/Numeric/Numeric.py:${PORTSDIR}/math/py-numeric \
+ ${PYTHON_SITELIBDIR}/mx/TextTools/__init__.py:${PORTSDIR}/lang/py-mx-base
+USE_PYTHON= yes
PLIST_SUB+= PLIST_CORBA=${PLIST_CORBA} PLIST_OMNIORB=${PLIST_OMNIORB} \
PLIST_FNORB=${PLIST_FNORB}
CPIO= cpio --quiet -pdum -R
-DOCDIR= ${PREFIX}/share/doc/py-biopython
-EGDIR= ${PREFIX}/share/examples/py-biopython
+EXAMPLESDIR= ${PREFIX}/share/examples/${PORTNAME}
# CORBA support (a.k.a Biopython-CORBA):
# Set WITH_CORBA to enable CORBA support for the Biopython port.
@@ -41,7 +39,7 @@ EGDIR= ${PREFIX}/share/examples/py-biopython
# - ORBit is a very popular and elegant ORB. The ORBit-Python bindings are
# used.
# Since Fnorb is distributed under a non-free licence and ORBit support in
-# Biopython-CORBA is not yet stable, "omniorb" is the default.
+# Biopython-CORBA is reputedly not yet stable, "omniorb" is the default.
CORBA_ORB?= omniorb
CORBA_VERSION= 0.2.1
@@ -57,6 +55,7 @@ PLIST_OMNIORB= ""
PLIST_FNORB= "@comment "
.elif ${CORBA_ORB} == "fnorb"
BUILD_DEPENDS+= ${PYTHON_SITELIBDIR}/Fnorb/__init__.py:${PORTSDIR}/devel/fnorb
+RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/Fnorb/__init__.py:${PORTSDIR}/devel/fnorb
CORBA_ORBNAME= Fnorb
EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-build_helper.py
PLIST_OMNIORB= "@comment "
@@ -92,6 +91,9 @@ do-build:
@ cd ${CORBA_WRKSRC} && ${PYTHON_CMD} setup.py build
.endif
+pre-install:
+ @ ${SH} ${PKGREQ} INSTALL
+
do-install:
@ cd ${WRKSRC} && ${PYTHON_CMD} setup.py install -c -O1 \
--prefix=${PREFIX}
@@ -102,24 +104,25 @@ do-install:
post-install:
.if !defined(NOPORTDOCS)
- @ ${MKDIR} ${DOCDIR}
+ @ ${MKDIR} ${DOCSDIR}
.for docfiles in *.txt *.tex *.py
- @ ${INSTALL_DATA} ${WRKSRC}/Doc/${docfiles} ${DOCDIR}
+ @ ${INSTALL_DATA} ${WRKSRC}/Doc/${docfiles} ${DOCSDIR}
.endfor
- @ ${MKDIR} ${EGDIR}
- @ ${INSTALL_DATA} ${WRKSRC}/Doc/examples/*.py ${EGDIR}
+ @ ${MKDIR} ${EXAMPLESDIR}
+ @ ${INSTALL_DATA} ${WRKSRC}/Doc/examples/*.py ${EXAMPLESDIR}
@ cd ${WRKSRC} && find Scripts \
- | ${CPIO} ${SHAREOWN}:${SHAREGRP} ${EGDIR}
+ | ${CPIO} ${SHAREOWN}:${SHAREGRP} ${EXAMPLESDIR}
.if defined(WITH_CORBA)
- @ ${MKDIR} ${DOCDIR}/BioCorba
+ @ ${MKDIR} ${DOCSDIR}/BioCorba
.for docfiles in *.tex *.pdf
- @ ${INSTALL_DATA} ${CORBA_WRKSRC}/Doc/${docfiles} ${DOCDIR}/BioCorba
+ @ ${INSTALL_DATA} ${CORBA_WRKSRC}/Doc/${docfiles} ${DOCSDIR}/BioCorba
.endfor
- @ ${MKDIR} ${EGDIR}/BioCorba
+ @ ${MKDIR} ${EXAMPLESDIR}/BioCorba
@ cd ${CORBA_WRKSRC}/Doc/examples && find * \
- | ${CPIO} ${SHAREOWN}:${SHAREGRP} ${EGDIR}/BioCorba
- @ ${MKDIR} ${EGDIR}/BioCorba/Scripts
- @ ${INSTALL_DATA} ${CORBA_WRKSRC}/Scripts/* ${EGDIR}/BioCorba/Scripts
+ | ${CPIO} ${SHAREOWN}:${SHAREGRP} ${EXAMPLESDIR}/BioCorba
+ @ ${MKDIR} ${EXAMPLESDIR}/BioCorba/Scripts
+ @ ${INSTALL_DATA} ${CORBA_WRKSRC}/Scripts/* \
+ ${EXAMPLESDIR}/BioCorba/Scripts
.endif # defined(WITH_CORBA)
.endif # !defined(NOPORTDOCS)