aboutsummaryrefslogtreecommitdiffstats
path: root/net/py-xmlrpc/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'net/py-xmlrpc/Makefile')
-rw-r--r--net/py-xmlrpc/Makefile15
1 files changed, 10 insertions, 5 deletions
diff --git a/net/py-xmlrpc/Makefile b/net/py-xmlrpc/Makefile
index e113746ebee2..46e457988aac 100644
--- a/net/py-xmlrpc/Makefile
+++ b/net/py-xmlrpc/Makefile
@@ -6,10 +6,10 @@
#
PORTNAME= xmlrpc
-PORTVERSION= 0.8.2
+PORTVERSION= 0.8.6
CATEGORIES= net python
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
-MASTER_SITE_SUBDIR= ${PKGNAMEPREFIX}${PORTNAME}
+MASTER_SITE_SUBDIR= ${PKGNAMEPREFIX}${PORTNAME}
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= ${PKGNAMEPREFIX}${PORTNAME}-${PORTVERSION}
@@ -17,10 +17,11 @@ MAINTAINER= perky@python.or.kr
BUILD_DEPENDS= ${PYDISTUTILS}
-WRKSRC= ${WRKDIR}/${PORTNAME}
-PLIST_SUB+= PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR:S/^${LOCALBASE}\///g}
-
USE_PYTHON= yes
+
+PLIST_SUB+= PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR:S/^${LOCALBASE}\///g} \
+ SHARE_SUBDIR=${SHARE_SUBDIR}
+SHARE_SUBDIR= ${PKGNAMEPREFIX}${PORTNAME}
SETUP_CMD= cd ${WRKSRC} && ${PYTHON_CMD} setup.py
do-build:
@@ -28,5 +29,9 @@ do-build:
do-install:
${SETUP_CMD} install
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${PREFIX}/share/examples/${SHARE_SUBDIR}
+ cd ${WRKSRC} && ${INSTALL_DATA} doc/example/* ${PREFIX}/share/examples/${SHARE_SUBDIR}
+.endif
.include <bsd.port.mk>