aboutsummaryrefslogtreecommitdiff
path: root/net/py-xmlrpc
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2012-03-25 03:55:41 +0000
committerMartin Wilke <miwi@FreeBSD.org>2012-03-25 03:55:41 +0000
commitf4c7946cd7ba36056dfd63634d2e9d710f4fa286 (patch)
tree33043153719faee4ed6e9ce505302def8535219c /net/py-xmlrpc
parent09c45560d5bf0027f22c5546348b09cbb2e55316 (diff)
downloadports-f4c7946cd7ba36056dfd63634d2e9d710f4fa286.tar.gz
ports-f4c7946cd7ba36056dfd63634d2e9d710f4fa286.zip
Notes
Diffstat (limited to 'net/py-xmlrpc')
-rw-r--r--net/py-xmlrpc/Makefile23
-rw-r--r--net/py-xmlrpc/pkg-plist19
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