aboutsummaryrefslogtreecommitdiff
path: root/www
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
parentce8c6de6720370a8ff7abba160042e8332a71888 (diff)
downloadports-4ac54c9d250eff86c76460b88678997ddc114041.tar.gz
ports-4ac54c9d250eff86c76460b88678997ddc114041.zip
Notes
Diffstat (limited to 'www')
-rw-r--r--www/py-qp/Makefile15
-rw-r--r--www/py-qpy/Makefile11
2 files changed, 16 insertions, 10 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}
diff --git a/www/py-qpy/Makefile b/www/py-qpy/Makefile
index c83cbacf8809..c188b7500171 100644
--- a/www/py-qpy/Makefile
+++ b/www/py-qpy/Makefile
@@ -15,15 +15,18 @@ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Generating safely-quoted html text from python code
+OPTIONS_DEFINE= DOCS
+
MAKE_ENV= USE_DISTUTILS=yes
USE_PYTHON= 2.5+
USE_PYDISTUTILS= yes
+.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
.include <bsd.port.mk>