aboutsummaryrefslogtreecommitdiffstats
path: root/textproc
diff options
context:
space:
mode:
authorjeh <jeh@FreeBSD.org>2001-02-12 01:09:06 +0800
committerjeh <jeh@FreeBSD.org>2001-02-12 01:09:06 +0800
commit4f142942ca33868e2e5107034543990a67f7f939 (patch)
treedab2590465ca3705c6208c08f1d03e32f4088cbc /textproc
parent15c579b11aa9f3fa9f05109c8a31dcb9041e602a (diff)
downloadfreebsd-ports-gnome-4f142942ca33868e2e5107034543990a67f7f939.tar.gz
freebsd-ports-gnome-4f142942ca33868e2e5107034543990a67f7f939.tar.zst
freebsd-ports-gnome-4f142942ca33868e2e5107034543990a67f7f939.zip
Cleanup to use NOPORTDOCS support in PLIST_SUB
PR: 24600 Submitted by: Johann Visagie <johann@egenetics.com> MAINTAINER
Diffstat (limited to 'textproc')
-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