2000-07-31 12:12:24 +00:00
|
|
|
# New ports collection makefile for: py-biopython
|
|
|
|
# Date created: 28 July 2000
|
|
|
|
# Whom: Johann Visagie <johann@egenetics.com>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= biopython
|
2002-01-22 10:54:02 +00:00
|
|
|
PORTVERSION= 1.00.a4
|
2000-07-31 12:12:24 +00:00
|
|
|
CATEGORIES= biology python
|
|
|
|
MASTER_SITES= http://www.biopython.org/Download/
|
2001-06-15 13:25:56 +00:00
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION:S/.a/a/}
|
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
|
2000-07-31 12:12:24 +00:00
|
|
|
|
2001-06-15 13:25:56 +00:00
|
|
|
MAINTAINER= wjv@FreeBSD.org
|
2003-03-07 06:14:21 +00:00
|
|
|
COMMENT= A collection of Python modules for bioinformatics
|
2000-07-31 12:12:24 +00:00
|
|
|
|
2001-06-15 13:25:56 +00:00
|
|
|
BUILD_DEPENDS= ${PYDISTUTILS}
|
2002-07-15 11:37:35 +00:00
|
|
|
RUN_DEPENDS= ${PYNUMERIC} \
|
|
|
|
${PYTHON_SITELIBDIR}/Martel/__init__.py:${PORTSDIR}/textproc/py-martel \
|
2001-09-06 12:42:36 +00:00
|
|
|
${PYTHON_SITELIBDIR}/mx/TextTools/__init__.py:${PORTSDIR}/lang/py-mx-base
|
2001-06-15 13:25:56 +00:00
|
|
|
|
2003-11-20 15:06:14 +00:00
|
|
|
USE_PERL5_BUILD=yes
|
2001-09-06 12:42:36 +00:00
|
|
|
USE_PYTHON= yes
|
2001-10-02 08:31:31 +00:00
|
|
|
PYTHON_SETUP= ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} setup.py
|
2001-06-15 13:25:56 +00:00
|
|
|
PLIST_SUB+= PLIST_CORBA=${PLIST_CORBA} PLIST_OMNIORB=${PLIST_OMNIORB} \
|
|
|
|
PLIST_FNORB=${PLIST_FNORB}
|
|
|
|
CPIO= cpio --quiet -pdum -R
|
2001-09-06 12:42:36 +00:00
|
|
|
EXAMPLESDIR= ${PREFIX}/share/examples/${PORTNAME}
|
2001-06-15 13:25:56 +00:00
|
|
|
|
|
|
|
# CORBA support (a.k.a Biopython-CORBA):
|
|
|
|
# Set WITH_CORBA to enable CORBA support for the Biopython port.
|
|
|
|
.if defined(WITH_CORBA)
|
|
|
|
|
|
|
|
# CORBA_ORB may be set from the command line to either "omniorb", "fnorb"
|
|
|
|
# or "orbit".
|
|
|
|
# - omniORB is a commercial quality, high speed ORB. The installation is
|
|
|
|
# huge and building the C++ source is a lengthy process. The omniORBpy
|
|
|
|
# Python bindings are used.
|
|
|
|
# - Fnorb is a tiny, lightweight ORB and is excellent for testing purposes.
|
2001-10-02 08:31:31 +00:00
|
|
|
# Its licence is non-free.
|
2001-06-15 13:25:56 +00:00
|
|
|
# - ORBit is a very popular and elegant ORB. The ORBit-Python bindings are
|
|
|
|
# used.
|
2001-10-02 08:31:31 +00:00
|
|
|
# Note: If unspecified, "orbit" is assumed as default.
|
|
|
|
CORBA_ORB?= orbit
|
2001-06-15 13:25:56 +00:00
|
|
|
|
2001-10-02 08:31:31 +00:00
|
|
|
CORBA_VERSION= 0.3.0
|
2001-06-15 13:25:56 +00:00
|
|
|
CORBA_DISTNAME= biopython-corba-${CORBA_VERSION}
|
|
|
|
CORBA_WRKSRC= ${WRKDIR}/${CORBA_DISTNAME}
|
|
|
|
DISTFILES+= ${CORBA_DISTNAME}${EXTRACT_SUFX}
|
|
|
|
PLIST_CORBA= ""
|
|
|
|
|
|
|
|
.if ${CORBA_ORB} == "omniorb"
|
|
|
|
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/omniORB/__init__.py:${PORTSDIR}/devel/py-omniorb
|
|
|
|
CORBA_ORBNAME= omniORB
|
|
|
|
PLIST_OMNIORB= ""
|
|
|
|
PLIST_FNORB= "@comment "
|
|
|
|
.elif ${CORBA_ORB} == "fnorb"
|
|
|
|
BUILD_DEPENDS+= ${PYTHON_SITELIBDIR}/Fnorb/__init__.py:${PORTSDIR}/devel/fnorb
|
2001-09-06 12:42:36 +00:00
|
|
|
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/Fnorb/__init__.py:${PORTSDIR}/devel/fnorb
|
2001-06-15 13:25:56 +00:00
|
|
|
CORBA_ORBNAME= Fnorb
|
|
|
|
PLIST_OMNIORB= "@comment "
|
|
|
|
PLIST_FNORB= ""
|
|
|
|
.elif ${CORBA_ORB} == "orbit"
|
2001-07-09 09:57:51 +00:00
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/include/orbit-python/orbit-python.h:${PORTSDIR}/devel/py-orbit
|
2001-06-15 13:25:56 +00:00
|
|
|
CORBA_ORBNAME= ORBit
|
|
|
|
PLIST_OMNIORB= "@comment "
|
|
|
|
PLIST_FNORB= "@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.else
|
|
|
|
PLIST_CORBA= "@comment "
|
|
|
|
PLIST_OMNIORB= "@comment "
|
|
|
|
PLIST_FNORB= "@comment "
|
|
|
|
.endif # defined(WITH_CORBA)
|
|
|
|
|
2002-01-22 10:54:02 +00:00
|
|
|
.if !defined(WITHOUT_REPORTLAB)
|
|
|
|
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/reportlab/__init__.py:${PORTSDIR}/print/py-reportlab
|
|
|
|
.endif
|
|
|
|
|
2001-06-15 13:25:56 +00:00
|
|
|
pre-fetch:
|
|
|
|
.if !defined(BATCH) && !defined(WITH_CORBA)
|
2001-06-29 15:04:06 +00:00
|
|
|
@ ${CAT} ${FILESDIR}/corba.msg
|
2001-06-15 13:25:56 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
post-configure:
|
|
|
|
.if defined(WITH_CORBA)
|
|
|
|
@ ${PERL} -pi.orig -e \
|
2001-10-02 08:31:31 +00:00
|
|
|
"/^orb_implementation/ && s/ORBit/${CORBA_ORBNAME}/" \
|
2001-06-15 13:25:56 +00:00
|
|
|
${CORBA_WRKSRC}/BioCorba/biocorbaconfig.py
|
|
|
|
.endif
|
|
|
|
|
2000-07-31 12:12:24 +00:00
|
|
|
do-build:
|
2001-10-02 08:31:31 +00:00
|
|
|
@ cd ${WRKSRC} && ${PYTHON_SETUP} build
|
2001-06-15 13:25:56 +00:00
|
|
|
.if defined(WITH_CORBA)
|
2001-10-02 08:31:31 +00:00
|
|
|
@ cd ${CORBA_WRKSRC} && ${PYTHON_SETUP} build
|
2001-06-15 13:25:56 +00:00
|
|
|
.endif
|
2000-07-31 12:12:24 +00:00
|
|
|
|
2001-09-06 12:42:36 +00:00
|
|
|
pre-install:
|
|
|
|
@ ${SH} ${PKGREQ} INSTALL
|
|
|
|
|
2000-07-31 12:12:24 +00:00
|
|
|
do-install:
|
2001-10-02 08:31:31 +00:00
|
|
|
@ cd ${WRKSRC} && ${PYTHON_SETUP} install -c -O1 \
|
2001-06-15 13:25:56 +00:00
|
|
|
--prefix=${PREFIX}
|
|
|
|
.if defined(WITH_CORBA)
|
2001-10-02 08:31:31 +00:00
|
|
|
@ cd ${CORBA_WRKSRC} && ${PYTHON_SETUP} install -c -O1 \
|
2001-06-15 13:25:56 +00:00
|
|
|
--prefix=${PREFIX}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
2001-09-06 12:42:36 +00:00
|
|
|
@ ${MKDIR} ${DOCSDIR}
|
2001-10-02 08:31:31 +00:00
|
|
|
.for docfiles in *.pdf *.py *.tex *.txt
|
2001-09-06 12:42:36 +00:00
|
|
|
@ ${INSTALL_DATA} ${WRKSRC}/Doc/${docfiles} ${DOCSDIR}
|
2001-06-15 13:25:56 +00:00
|
|
|
.endfor
|
2001-09-06 12:42:36 +00:00
|
|
|
@ ${MKDIR} ${EXAMPLESDIR}
|
2001-10-02 08:31:31 +00:00
|
|
|
@ ${INSTALL_DATA} ${WRKSRC}/Doc/examples/* ${EXAMPLESDIR}
|
2003-11-13 14:45:08 +00:00
|
|
|
@ cd ${WRKSRC}/Scripts && ${FIND} * \
|
2001-09-06 12:42:36 +00:00
|
|
|
| ${CPIO} ${SHAREOWN}:${SHAREGRP} ${EXAMPLESDIR}
|
2001-06-15 13:25:56 +00:00
|
|
|
.if defined(WITH_CORBA)
|
2001-09-06 12:42:36 +00:00
|
|
|
@ ${MKDIR} ${DOCSDIR}/BioCorba
|
2001-10-02 08:31:31 +00:00
|
|
|
.for docfiles in *.html *.pdf *.tex *.txt
|
2001-09-06 12:42:36 +00:00
|
|
|
@ ${INSTALL_DATA} ${CORBA_WRKSRC}/Doc/${docfiles} ${DOCSDIR}/BioCorba
|
2001-06-15 13:25:56 +00:00
|
|
|
.endfor
|
2001-09-06 12:42:36 +00:00
|
|
|
@ ${MKDIR} ${EXAMPLESDIR}/BioCorba
|
2001-10-02 08:31:31 +00:00
|
|
|
@ ${INSTALL_DATA} ${CORBA_WRKSRC}/Doc/examples/* \
|
|
|
|
${EXAMPLESDIR}/BioCorba
|
2001-09-06 12:42:36 +00:00
|
|
|
@ ${INSTALL_DATA} ${CORBA_WRKSRC}/Scripts/* \
|
2001-10-02 08:31:31 +00:00
|
|
|
${EXAMPLESDIR}/BioCorba
|
2001-06-15 13:25:56 +00:00
|
|
|
.endif # defined(WITH_CORBA)
|
|
|
|
.endif # !defined(NOPORTDOCS)
|
2000-07-31 12:12:24 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|