aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/py-martel/Makefile
diff options
context:
space:
mode:
authorwjv <wjv@FreeBSD.org>2001-08-07 22:14:21 +0800
committerwjv <wjv@FreeBSD.org>2001-08-07 22:14:21 +0800
commitd697e6a81d067b957449f83586bde0a45bf98ff3 (patch)
tree65a0e5f70a33a734e8df2880d9abc314b56e4e3c /textproc/py-martel/Makefile
parent4eb74a3abeed6f356abd263d8d4bdc58af6b8ddc (diff)
downloadfreebsd-ports-gnome-d697e6a81d067b957449f83586bde0a45bf98ff3.tar.gz
freebsd-ports-gnome-d697e6a81d067b957449f83586bde0a45bf98ff3.tar.zst
freebsd-ports-gnome-d697e6a81d067b957449f83586bde0a45bf98ff3.zip
- Do checking for Python version ov pkg-req. This is somewhat experimental
and may require further tweaking. - Use DOCSDIR. - Now install examples optionally depending on NOPORTDOCS. - Miscellaneous minor fixes and cleanups in Makefile. - Update my email address in pkg-descr.
Diffstat (limited to 'textproc/py-martel/Makefile')
-rw-r--r--textproc/py-martel/Makefile19
1 files changed, 10 insertions, 9 deletions
diff --git a/textproc/py-martel/Makefile b/textproc/py-martel/Makefile
index 635f6f56db5c..ce089c0ed05d 100644
--- a/textproc/py-martel/Makefile
+++ b/textproc/py-martel/Makefile
@@ -7,7 +7,7 @@
PORTNAME= martel
PORTVERSION= 0.5
-PORTREVISION= 3
+PORTREVISION= 4
PORTEPOCH= 1
CATEGORIES= textproc biology python
MASTER_SITES= http://www.biopython.org/~dalke/Martel/
@@ -19,30 +19,31 @@ MAINTAINER= wjv@FreeBSD.org
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/mx/TextTools/__init__.py:${PORTSDIR}/lang/py-mx-base
USE_PYTHON= yes
-PYTHON_VERSION= python2.1
MARTEL_DIR= ${PREFIX}/lib/${PYTHON_VERSION}/site-packages/Martel
-MARTEL_EGDIR= ${PREFIX}/share/examples/martel
-MARTEL_DOCDIR= ${PREFIX}/share/doc/martel
+EXAMPLESDIR= ${PREFIX}/share/examples/martel
do-build:
@ ${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}
@ ${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}
+pre-install:
+ @ ${SH} ${PKGREQ} INSTALL
+
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
post-install:
.if !defined(NOPORTDOCS)
- @ ${MKDIR} ${MARTEL_DOCDIR}
+ @ ${MKDIR} ${DOCSDIR}
.for docfile in README HISTORY doc/*
- @ ${INSTALL_MAN} ${WRKSRC}/${docfile} ${MARTEL_DOCDIR}
+ @ ${INSTALL_DATA} ${WRKSRC}/${docfile} ${DOCSDIR}
.endfor
+ @ ${MKDIR} ${EXAMPLESDIR}/builders
+ @ ${INSTALL_DATA} ${WRKSRC}/examples/* ${EXAMPLESDIR}
+ @ ${INSTALL_DATA} ${WRKSRC}/builders/* ${EXAMPLESDIR}/builders
.endif
.include <bsd.port.mk>