diff options
author | Kevin Lo <kevlo@FreeBSD.org> | 2001-01-09 16:31:24 +0000 |
---|---|---|
committer | Kevin Lo <kevlo@FreeBSD.org> | 2001-01-09 16:31:24 +0000 |
commit | 1d39d70cc9528fc462806a621200537b6649bd63 (patch) | |
tree | 766526bd75ff3e20a1a910abd255709721012e1f /textproc/py-martel/Makefile | |
parent | kshd has /etc/nologin hardcoded instead of using _PATH_NOLOGIN (diff) |
Upgrade to 0.5
PR: 24184
Submitted by: MAINTAINER
Diffstat (limited to 'textproc/py-martel/Makefile')
-rw-r--r-- | textproc/py-martel/Makefile | 37 |
1 files changed, 22 insertions, 15 deletions
diff --git a/textproc/py-martel/Makefile b/textproc/py-martel/Makefile index 8c3fbb8a669d..496998d884c9 100644 --- a/textproc/py-martel/Makefile +++ b/textproc/py-martel/Makefile @@ -6,42 +6,49 @@ # PORTNAME= martel -PORTVERSION= 0.4 -PORTREVISION= 1 +PORTVERSION= 0.5 PORTEPOCH= 1 CATEGORIES= textproc biology python MASTER_SITES= http://www.biopython.org/~dalke/Martel/ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} -DISTNAME= Martel-0.4 +DISTNAME= Martel-${PORTVERSION} MAINTAINER= johann@egenetics.com RUN_DEPENDS= ${PYTHON_SITELIBDIR}/TextTools/__init__.py:${PORTSDIR}/textproc/py-mxTextTools PYTHON_VERSION= python2.0 +PLIST= ${WRKDIR}/PLIST +PKG_PLIST= ${PKGDIR}/pkg-plist MARTEL_DIR= ${PYTHON_SITELIBDIR}/Martel -MARTEL_EXAMPLEDIR=${PREFIX}/share/examples/martel +MARTEL_EGDIR= ${PREFIX}/share/examples/martel MARTEL_DOCDIR= ${PREFIX}/share/doc/martel +MARTEL_DOCS= README HISTORY doc/intro.txt doc/tech_description.txt \ + doc/writing_a_format.txt do-build: @ ${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${WRKSRC} @ ${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py ${WRKSRC} -do-install: - @ ${MKDIR} ${MARTEL_DIR} - @ (cd ${WRKSRC} && find *.py *.pyc *.pyo formats test \ - | cpio --quiet -pdum -R ${BINOWN}:${BINGRP} ${MARTEL_DIR}) - @ ${MKDIR} ${MARTEL_EXAMPLEDIR}/builders - @ ${INSTALL_DATA} ${WRKSRC}/examples/* ${MARTEL_EXAMPLEDIR} - @ ${INSTALL_DATA} ${WRKSRC}/builders/* ${MARTEL_EXAMPLEDIR}/builders - -post-install: +pre-install: + @ ${CAT} ${PKG_PLIST} > ${PLIST} .if !defined(NOPORTDOCS) @ ${MKDIR} ${MARTEL_DOCDIR} -.for docfile in README HISTORY doc/* - @ ${INSTALL_MAN} ${WRKSRC}/${docfile} ${MARTEL_DOCDIR} +.for docfile in ${MARTEL_DOCS} + @ ${INSTALL_DATA} ${WRKSRC}/${docfile} ${MARTEL_DOCDIR}/ && \ + ${ECHO} ${MARTEL_DOCDIR:S|^${PREFIX}/||}/${docfile:S|^doc/||} \ + >> ${PLIST} .endfor + @ ${ECHO} @dirrm ${MARTEL_DOCDIR:S|^${PREFIX}/||} >> ${PLIST} .endif +do-install: + @ ${MKDIR} ${MARTEL_DIR} + @ (cd ${WRKSRC} && find *.py *.pyc *.pyo formats test \ + | cpio --quiet -pdum -R ${BINOWN}:${BINGRP} ${MARTEL_DIR}) + @ ${MKDIR} ${MARTEL_EGDIR}/builders + @ ${INSTALL_DATA} ${WRKSRC}/examples/* ${MARTEL_EGDIR} + @ ${INSTALL_DATA} ${WRKSRC}/builders/* ${MARTEL_EGDIR}/builders + .include <bsd.port.mk> |