svn commit: r360153 - head/www/wadcomblog
Vanilla I. Shu
vanilla at FreeBSD.org
Wed Jul 2 08:07:15 UTC 2014
Author: vanilla
Date: Wed Jul 2 08:07:14 2014
New Revision: 360153
URL: http://svnweb.freebsd.org/changeset/ports/360153
QAT: https://qat.redports.org/buildarchive/r360153/
Log:
1: Stagify.
2: use options helper.
Approved by: portmgr@ (blanket approval)
Modified:
head/www/wadcomblog/Makefile
Modified: head/www/wadcomblog/Makefile
==============================================================================
--- head/www/wadcomblog/Makefile Wed Jul 2 08:04:10 2014 (r360152)
+++ head/www/wadcomblog/Makefile Wed Jul 2 08:07:14 2014 (r360153)
@@ -12,19 +12,21 @@ COMMENT= Simple open-source static blog
USE_PYTHON= yes
USE_PYDISTUTILS= yes
+OPTIONS_DEFINE= DOCS EXAMPLES
+
+.include <bsd.port.options.mk>
-NO_STAGE= yes
post-install:
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
@${ECHO_MSG} "installing additional documentation to ${DOCSDIR}"
- @${MKDIR} ${DOCSDIR}
- @${INSTALL_MAN} ${WRKSRC}/README ${DOCSDIR}
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ @${INSTALL_MAN} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
.endif
-.if !defined(NOPORTEXAMPLES)
+.if ${PORT_OPTIONS:MEXAMPLES}
@${ECHO_MSG} "installing additional examples to ${EXAMPLESDIR}"
- @${MKDIR} ${EXAMPLESDIR}
- @(cd ${WRKSRC}/sample/ && ${COPYTREE_SHARE} \* ${EXAMPLESDIR})
+ @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+ @(cd ${WRKSRC}/sample/ && ${COPYTREE_SHARE} \* ${STAGEDIR}${EXAMPLESDIR})
.endif
.include <bsd.port.mk>
More information about the svn-ports-head
mailing list