diff options
-rw-r--r-- | net/py-xmlrpc/Makefile | 23 | ||||
-rw-r--r-- | net/py-xmlrpc/pkg-plist | 19 |
2 files changed, 18 insertions, 24 deletions
diff --git a/net/py-xmlrpc/Makefile b/net/py-xmlrpc/Makefile index e2542b18a23f..c52b2922785b 100644 --- a/net/py-xmlrpc/Makefile +++ b/net/py-xmlrpc/Makefile @@ -16,15 +16,28 @@ DISTNAME= py-${PORTNAME}-${PORTVERSION} MAINTAINER= ports@FreeBSD.org COMMENT= A fast implementation of the xmlrpc spec for Python +LICENSE= LGPL21 # (or later) +LICENSE_FILE= ${WRKSRC}/COPYING + USE_PYTHON= yes USE_PYDISTUTILS= yes -PYDISTUTILS_PKGNAME= py-xmlrpc -EXAMPLESDIR= ${PREFIX}/share/examples/py-xmlrpc +PYDISTUTILS_PKGNAME= py-${PORTNAME} + +EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME} + +PORTEXAMPLES= * +PLIST_FILES= %%PYTHON_SITELIBDIR%%/_xmlrpc.so \ + %%PYTHON_SITELIBDIR%%/pyxmlrpclib.py \ + %%PYTHON_SITELIBDIR%%/pyxmlrpclib.pyc \ + %%PYTHON_SITELIBDIR%%/pyxmlrpclib.pyo \ + %%PYTHON_SITELIBDIR%%/xmlrpc.py \ + %%PYTHON_SITELIBDIR%%/xmlrpc.pyc \ + %%PYTHON_SITELIBDIR%%/xmlrpc.pyo -.if !defined(NOPORTDOCS) post-install: - ${MKDIR} ${EXAMPLESDIR} - ${TAR} -C ${WRKSRC}/examples -cf- . | ${TAR} -C ${EXAMPLESDIR} -xpf- +.if !defined(NOPORTEXAMPLES) + @${MKDIR} ${EXAMPLESDIR} + @(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${EXAMPLESDIR}) .endif .include <bsd.port.mk> diff --git a/net/py-xmlrpc/pkg-plist b/net/py-xmlrpc/pkg-plist deleted file mode 100644 index dfa388c91b36..000000000000 --- a/net/py-xmlrpc/pkg-plist +++ /dev/null @@ -1,19 +0,0 @@ -%%PYTHON_SITELIBDIR%%/_xmlrpc.so -%%PYTHON_SITELIBDIR%%/pyxmlrpclib.py -%%PYTHON_SITELIBDIR%%/pyxmlrpclib.pyc -%%PYTHON_SITELIBDIR%%/pyxmlrpclib.pyo -%%PYTHON_SITELIBDIR%%/xmlrpc.py -%%PYTHON_SITELIBDIR%%/xmlrpc.pyc -%%PYTHON_SITELIBDIR%%/xmlrpc.pyo -%%PORTDOCS%%share/examples/py-xmlrpc/crj/baseClient.py -%%PORTDOCS%%share/examples/py-xmlrpc/crj/baseControl.py -%%PORTDOCS%%share/examples/py-xmlrpc/crj/baseServer.py -%%PORTDOCS%%share/examples/py-xmlrpc/crj/exControl.py -%%PORTDOCS%%share/examples/py-xmlrpc/crj/exclient.py -%%PORTDOCS%%share/examples/py-xmlrpc/crj/exserver.py -%%PORTDOCS%%share/examples/py-xmlrpc/crj/killserver.py -%%PORTDOCS%%share/examples/py-xmlrpc/examples.py -%%PORTDOCS%%share/examples/py-xmlrpc/interop.py -%%PORTDOCS%%share/examples/py-xmlrpc/validate.py -%%PORTDOCS%%@dirrm share/examples/py-xmlrpc/crj -%%PORTDOCS%%@dirrm share/examples/py-xmlrpc |