mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-24 04:33:24 +00:00
net/py-xmlrpclib: support staging
This commit is contained in:
parent
4ecc6c4639
commit
685dd9b8b0
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=337868
@ -8,31 +8,33 @@ MASTER_SITES= http://effbot.org/media/downloads/
|
||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
||||
|
||||
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_ZIP= yes
|
||||
|
||||
XRL_DOCDIR= ${PREFIX}/share/doc/py-xmlrpclib
|
||||
XRL_EGDIR= ${PREFIX}/share/examples/py-xmlrpclib
|
||||
DOCSDIR= ${PREFIX}/share/doc/py-xmlrpclib
|
||||
EXAMPLESDIR= ${PREFIX}/share/examples/py-xmlrpclib
|
||||
PORTDOCS= *
|
||||
PORTEXAMPLES= *
|
||||
|
||||
NO_STAGE= yes
|
||||
do-build:
|
||||
@ ${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}
|
||||
@ ${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}
|
||||
${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py \
|
||||
-d ${PYTHONPREFIX_SITELIBDIR} \
|
||||
-f ${WRKSRC}
|
||||
${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py \
|
||||
-d ${PYTHONPREFIX_SITELIBDIR} \
|
||||
-f ${WRKSRC}
|
||||
|
||||
do-install:
|
||||
@ ${INSTALL_DATA} ${WRKSRC}/xmlrpclib.py* \
|
||||
${PREFIX}/lib/${PYTHON_VERSION}/site-packages
|
||||
@ ${MKDIR} ${XRL_EGDIR}
|
||||
@${MKDIR} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/xmlrpclib.py* \
|
||||
${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
|
||||
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
||||
.for egfile in xmlrpcserver.py xmlrpc_handler.py
|
||||
@ ${INSTALL_DATA} ${WRKSRC}/${egfile} ${XRL_EGDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/${egfile} ${STAGEDIR}${EXAMPLESDIR}
|
||||
.endfor
|
||||
|
||||
post-install:
|
||||
.if !defined(NOPORTDOCS)
|
||||
@ ${MKDIR} ${XRL_DOCDIR}
|
||||
@ ${INSTALL_MAN} ${WRKSRC}/README ${XRL_DOCDIR}
|
||||
.endif
|
||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
${INSTALL_MAN} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,8 +1,3 @@
|
||||
%%PORTDOCS%%share/doc/py-xmlrpclib/README
|
||||
%%PYTHON_SITELIBDIR%%/xmlrpclib.py
|
||||
%%PYTHON_SITELIBDIR%%/xmlrpclib.pyc
|
||||
%%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
|
||||
|
Loading…
Reference in New Issue
Block a user