1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

textproc/py-rxp: support staging and use auto plist

This commit is contained in:
William Grzybowski 2013-12-30 12:00:10 +00:00
parent 848a3b0d46
commit 8d18ea737a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=338095
2 changed files with 8 additions and 30 deletions

View File

@ -16,20 +16,16 @@ COMMENT= Fast validating XML parser for Python
NO_WRKSUBDIR= yes
USE_PYTHON= yes
USE_PYDISTUTILS= yes
PYDISTUTILS_PKGNAME= pyRXP
PYDISTUTILS_PKGVERSION= 0.5
PYDISTUTILS_AUTOPLIST= yes
EXAMPLESDIR= ${PREFIX}/share/examples/py-rxp
DOCSDIR= ${PREFIX}/share/doc/py-rxp
EXAMPLESDIR= ${PREFIX}/share/examples/py-rxp
PORTDOCS= *
PORTEXAMPLES= *
NO_STAGE= yes
.include <bsd.port.pre.mk>
.if !defined(NOPORTDOCS)
post-install:
@${MKDIR} ${EXAMPLESDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/docs/* ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/examples/* ${EXAMPLESDIR}
.endif
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/docs/* ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/examples/* ${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View File

@ -1,18 +0,0 @@
%%PYTHON_SITELIBDIR%%/pyRXP.so
%%PORTDOCS%%%%DOCSDIR%%/PyRXP_Documentation.rml
%%PORTDOCS%%%%DOCSDIR%%/replogo.gif
%%PORTDOCS%%@dirrm %%DOCSDIR%%
%%PORTDOCS%%%%EXAMPLESDIR%%/00readme.txt
%%PORTDOCS%%%%EXAMPLESDIR%%/benchmarks.py
%%PORTDOCS%%%%EXAMPLESDIR%%/expattree.py
%%PORTDOCS%%%%EXAMPLESDIR%%/hamlet.xml
%%PORTDOCS%%%%EXAMPLESDIR%%/play.dtd
%%PORTDOCS%%%%EXAMPLESDIR%%/rml_a.dtd
%%PORTDOCS%%%%EXAMPLESDIR%%/rml_a.xml
%%PORTDOCS%%%%EXAMPLESDIR%%/sample1.xml
%%PORTDOCS%%%%EXAMPLESDIR%%/sample2.xml
%%PORTDOCS%%%%EXAMPLESDIR%%/sample3.xml
%%PORTDOCS%%%%EXAMPLESDIR%%/sample4.xml
%%PORTDOCS%%%%EXAMPLESDIR%%/tinydtd.dtd
%%PORTDOCS%%%%EXAMPLESDIR%%/xmlutils.py
%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%