textproc/py-ltxml: support staging and minor changes
This commit is contained in:
parent
ae002a252a
commit
848a3b0d46
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=338094
2 changed files with 7 additions and 18 deletions
|
@ -17,12 +17,14 @@ RUN_DEPENDS:= ${BUILD_DEPENDS}
|
|||
|
||||
USE_PYTHON= yes
|
||||
USE_PYDISTUTILS= yes
|
||||
PYDISTUTILS_PKGNAME= PyLTXML
|
||||
PYDISTUTILS_AUTOPLIST= yes
|
||||
USE_LDCONFIG= yes
|
||||
|
||||
DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME}
|
||||
EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME}
|
||||
PORTDOCS= *
|
||||
PORTEXAMPLES= *
|
||||
|
||||
NO_STAGE= yes
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${ARCH} == "amd64" || ${ARCH} == "ia64"
|
||||
|
@ -33,10 +35,8 @@ post-patch:
|
|||
@${REINPLACE_CMD} -e 's|/group/ltg/projects/lcontrib9|${LOCALBASE}|' ${WRKSRC}/setup.py
|
||||
|
||||
post-install:
|
||||
.if !defined(NOPORTDOCS)
|
||||
${MKDIR} ${DOCSDIR} ${EXAMPLESDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/00README ${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/example/* ${EXAMPLESDIR}
|
||||
.endif
|
||||
${MKDIR} ${STAGEDIR}${DOCSDIR} ${STAGEDIR}${EXAMPLESDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/00README ${STAGEDIR}${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/example/* ${STAGEDIR}${EXAMPLESDIR}
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
|
|
@ -1,11 +0,0 @@
|
|||
%%PORTDOCS%%share/doc/py-ltxml/00README
|
||||
%%PORTDOCS%%share/examples/py-ltxml/gscore.dtd
|
||||
%%PORTDOCS%%share/examples/py-ltxml/simple.py
|
||||
%%PORTDOCS%%share/examples/py-ltxml/small.xml
|
||||
%%PYTHON_SITELIBDIR%%/PyLTXML/LTXMLinter.so
|
||||
%%PYTHON_SITELIBDIR%%/PyLTXML/__init__.py
|
||||
%%PYTHON_SITELIBDIR%%/PyLTXML/__init__.pyc
|
||||
%%PYTHON_SITELIBDIR%%/PyLTXML/__init__.pyo
|
||||
@dirrm %%PYTHON_SITELIBDIR%%/PyLTXML
|
||||
%%PORTDOCS%%@dirrm share/examples/py-ltxml
|
||||
%%PORTDOCS%%@dirrm share/doc/py-ltxml
|
Loading…
Reference in a new issue