1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00

net/py-xmlrpclib: support staging

This commit is contained in:
William Grzybowski 2013-12-28 11:47:30 +00:00
parent 4ecc6c4639
commit 685dd9b8b0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=337868
2 changed files with 18 additions and 21 deletions

View File

@ -8,31 +8,33 @@ MASTER_SITES= http://effbot.org/media/downloads/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= ports@FreeBSD.org MAINTAINER= ports@FreeBSD.org
COMMENT= A Python implementation of the XML-RPC protocol COMMENT= Python implementation of the XML-RPC protocol
USE_PYTHON= yes USE_PYTHON= yes
USE_ZIP= yes USE_ZIP= yes
XRL_DOCDIR= ${PREFIX}/share/doc/py-xmlrpclib DOCSDIR= ${PREFIX}/share/doc/py-xmlrpclib
XRL_EGDIR= ${PREFIX}/share/examples/py-xmlrpclib EXAMPLESDIR= ${PREFIX}/share/examples/py-xmlrpclib
PORTDOCS= *
PORTEXAMPLES= *
NO_STAGE= yes
do-build: do-build:
@ ${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${WRKSRC} ${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py \
@ ${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py ${WRKSRC} -d ${PYTHONPREFIX_SITELIBDIR} \
-f ${WRKSRC}
${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py \
-d ${PYTHONPREFIX_SITELIBDIR} \
-f ${WRKSRC}
do-install: do-install:
@ ${INSTALL_DATA} ${WRKSRC}/xmlrpclib.py* \ @${MKDIR} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
${PREFIX}/lib/${PYTHON_VERSION}/site-packages ${INSTALL_DATA} ${WRKSRC}/xmlrpclib.py* \
@ ${MKDIR} ${XRL_EGDIR} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
.for egfile in xmlrpcserver.py xmlrpc_handler.py .for egfile in xmlrpcserver.py xmlrpc_handler.py
@ ${INSTALL_DATA} ${WRKSRC}/${egfile} ${XRL_EGDIR} ${INSTALL_DATA} ${WRKSRC}/${egfile} ${STAGEDIR}${EXAMPLESDIR}
.endfor .endfor
@${MKDIR} ${STAGEDIR}${DOCSDIR}
post-install: ${INSTALL_MAN} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
.if !defined(NOPORTDOCS)
@ ${MKDIR} ${XRL_DOCDIR}
@ ${INSTALL_MAN} ${WRKSRC}/README ${XRL_DOCDIR}
.endif
.include <bsd.port.mk> .include <bsd.port.mk>

View File

@ -1,8 +1,3 @@
%%PORTDOCS%%share/doc/py-xmlrpclib/README
%%PYTHON_SITELIBDIR%%/xmlrpclib.py %%PYTHON_SITELIBDIR%%/xmlrpclib.py
%%PYTHON_SITELIBDIR%%/xmlrpclib.pyc %%PYTHON_SITELIBDIR%%/xmlrpclib.pyc
%%PYTHON_SITELIBDIR%%/xmlrpclib.pyo %%PYTHON_SITELIBDIR%%/xmlrpclib.pyo
share/examples/py-xmlrpclib/xmlrpc_handler.py
share/examples/py-xmlrpclib/xmlrpcserver.py
@dirrm share/examples/py-xmlrpclib
%%PORTDOCS%%@dirrm share/doc/py-xmlrpclib