aboutsummaryrefslogtreecommitdiff
path: root/www/py-qp
diff options
context:
space:
mode:
authorSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2012-06-18 16:33:24 +0000
committerSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2012-06-18 16:33:24 +0000
commit4ac54c9d250eff86c76460b88678997ddc114041 (patch)
tree544612698be9fd137d3b8ec04a09baedbf1f4c8e /www/py-qp
parentce8c6de6720370a8ff7abba160042e8332a71888 (diff)
downloadports-4ac54c9d250eff86c76460b88678997ddc114041.tar.gz
ports-4ac54c9d250eff86c76460b88678997ddc114041.zip
Notes
Diffstat (limited to 'www/py-qp')
-rw-r--r--www/py-qp/Makefile15
1 files changed, 9 insertions, 6 deletions
diff --git a/www/py-qp/Makefile b/www/py-qp/Makefile
index f5d23ee156a3..58f6bf3352db 100644
--- a/www/py-qp/Makefile
+++ b/www/py-qp/Makefile
@@ -20,20 +20,23 @@ BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}durus>=0:${PORTSDIR}/devel/py-durus \
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}durus>=0:${PORTSDIR}/devel/py-durus \
${PYTHON_PKGNAMEPREFIX}qpy>=1.7:${PORTSDIR}/www/py-qpy
+OPTIONS_DEFINE= DOCS EXAMPLES
+
MAKE_ENV= USE_DISTUTILS=yes
USE_PYTHON= 2.5-2.7
USE_PYDISTUTILS= yes
SUB_FILES= pkg-message
+.include <bsd.port.options.mk>
+
post-install:
-.if !defined(NOPORTDOCS)
- @${MKDIR} ${DOCSDIR}/
- @cd ${WRKSRC} && \
- ${INSTALL_DATA} CHANGES.txt LICENSE.txt README.txt ${DOCSDIR}/
+.if ${PORT_OPTIONS:MDOCS}
+ ${MKDIR} ${DOCSDIR}/
+ cd ${WRKSRC}/ && ${INSTALL_DATA} CHANGES.txt LICENSE.txt README.txt ${DOCSDIR}/
.endif
-.if !defined(NOPORTEXAMPLES)
- @cd ${WRKSRC} && ${PYTHON_CMD} ${PYSETUP} install_demo_sites ${EXAMPLESDIR}
+.if ${PORT_OPTIONS:MEXAMPLES}
+ cd ${WRKSRC}/ && ${PYTHON_CMD} ${PYSETUP} install_demo_sites ${EXAMPLESDIR}/
.endif
@${CAT} ${PKGMESSAGE}