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

net/py-google: support staging

This commit is contained in:
William Grzybowski 2013-12-28 11:29:48 +00:00
parent 3b6da95ec3
commit 977d160a91
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=337859
2 changed files with 6 additions and 23 deletions

View File

@ -15,16 +15,13 @@ RUN_DEPENDS= ${PYXML}
USE_PYTHON= yes
USE_PYDISTUTILS= yes
PYDISTUTILS_PKGNAME= pygoogle
PYDISTUTILS_PKGVERSION= 0.5
PYDISTUTILS_AUTOPLIST= yes
.if !defined(NOPORTDOCS)
PORTDOCS= *
DOCSDIR= ${PREFIX}/share/doc/py-google
PORTEXAMPLES= *
EXAMPLESDIR= ${PREFIX}/share/examples/py-google
.endif
NO_STAGE= yes
post-patch:
# www/py-websvcs has an incompatible version of SOAP.py
@${MV} ${WRKSRC}/SOAP.py ${WRKSRC}/SOAPgoogle.py
@ -36,12 +33,9 @@ post-patch:
@${REINPLACE_CMD} -e 's,.*extra_path.*,,g' ${WRKSRC}/setup.py
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${EXAMPLESDIR}
@${INSTALL_SCRIPT} ${WRKSRC}/tests/*.py ${EXAMPLESDIR}
@${MKDIR} ${DOCSDIR}
@${CP} -R ${WRKSRC}/doc/ ${DOCSDIR}
.endif
@${CAT} ${PKGMESSAGE}
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_SCRIPT} ${WRKSRC}/tests/*.py ${STAGEDIR}${EXAMPLESDIR}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC}/doc/ && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
.include <bsd.port.mk>

View File

@ -1,11 +0,0 @@
%%PYTHON_SITELIBDIR%%/GoogleSOAPFacade.py
%%PYTHON_SITELIBDIR%%/GoogleSOAPFacade.pyc
%%PYTHON_SITELIBDIR%%/GoogleSOAPFacade.pyo
%%PYTHON_SITELIBDIR%%/SOAPgoogle.py
%%PYTHON_SITELIBDIR%%/SOAPgoogle.pyc
%%PYTHON_SITELIBDIR%%/SOAPgoogle.pyo
%%PYTHON_SITELIBDIR%%/google.py
%%PYTHON_SITELIBDIR%%/google.pyc
%%PYTHON_SITELIBDIR%%/google.pyo
%%PORTDOCS%%%%EXAMPLESDIR%%/googletest.py
%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%