summaryrefslogtreecommitdiff
path: root/textproc/py-martel
diff options
context:
space:
mode:
authorJames E. Housley <jeh@FreeBSD.org>2001-02-11 17:09:06 +0000
committerJames E. Housley <jeh@FreeBSD.org>2001-02-11 17:09:06 +0000
commita5f332b8feb6a962752bcbaa07f1ee8a3fa566ad (patch)
tree7fd0bb194abe392919fdbab386663de21699df0f /textproc/py-martel
parentThis is an updated of the hebrew/pine port to Pine 4.33, with Hebrew support (diff)
Cleanup to use NOPORTDOCS support in PLIST_SUB
PR: 24600 Submitted by: Johann Visagie <johann@egenetics.com> MAINTAINER
Diffstat (limited to 'textproc/py-martel')
-rw-r--r--textproc/py-martel/Makefile24
-rw-r--r--textproc/py-martel/pkg-plist6
2 files changed, 14 insertions, 16 deletions
diff --git a/textproc/py-martel/Makefile b/textproc/py-martel/Makefile
index a52ba3461d73..e9d8e6e18edb 100644
--- a/textproc/py-martel/Makefile
+++ b/textproc/py-martel/Makefile
@@ -19,31 +19,15 @@ 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_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}
-pre-install:
- @ ${CAT} ${PKG_PLIST} > ${PLIST}
-.if !defined(NOPORTDOCS)
- @ ${MKDIR} ${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 \
@@ -52,4 +36,12 @@ do-install:
@ ${INSTALL_DATA} ${WRKSRC}/examples/* ${MARTEL_EGDIR}
@ ${INSTALL_DATA} ${WRKSRC}/builders/* ${MARTEL_EGDIR}/builders
+post-install:
+.if !defined(NOPORTDOCS)
+ @ ${MKDIR} ${MARTEL_DOCDIR}
+.for docfile in README HISTORY doc/*
+ @ ${INSTALL_MAN} ${WRKSRC}/${docfile} ${MARTEL_DOCDIR}
+.endfor
+.endif
+
.include <bsd.port.mk>
diff --git a/textproc/py-martel/pkg-plist b/textproc/py-martel/pkg-plist
index b5934810dbcf..f4c8d1d84886 100644
--- a/textproc/py-martel/pkg-plist
+++ b/textproc/py-martel/pkg-plist
@@ -1,3 +1,8 @@
+%%PORTDOCS%%share/doc/martel/HISTORY
+%%PORTDOCS%%share/doc/martel/README
+%%PORTDOCS%%share/doc/martel/intro.txt
+%%PORTDOCS%%share/doc/martel/tech_description.txt
+%%PORTDOCS%%share/doc/martel/writing_a_format.txt
lib/%%PYTHON_VERSION%%/site-packages/Martel/Expression.py
lib/%%PYTHON_VERSION%%/site-packages/Martel/Expression.pyc
lib/%%PYTHON_VERSION%%/site-packages/Martel/Expression.pyo
@@ -172,3 +177,4 @@ share/examples/martel/toxml.pyo
@dirrm lib/%%PYTHON_VERSION%%/site-packages/Martel/test
@dirrm lib/%%PYTHON_VERSION%%/site-packages/Martel/formats
@dirrm lib/%%PYTHON_VERSION%%/site-packages/Martel
+%%PORTDOCS%%@dirrm share/doc/martel