diff options
author | ehaupt <ehaupt@FreeBSD.org> | 2014-03-18 22:50:50 +0800 |
---|---|---|
committer | ehaupt <ehaupt@FreeBSD.org> | 2014-03-18 22:50:50 +0800 |
commit | d808114a1d81f2efd1a2e319f63ad04fb5d8a35c (patch) | |
tree | 01c3d8b13c2354329903556322abeabbcfe764aa /mail | |
parent | 8459cdb944f64687a2db77e69b769abe1e58d445 (diff) | |
download | freebsd-ports-graphics-d808114a1d81f2efd1a2e319f63ad04fb5d8a35c.tar.gz freebsd-ports-graphics-d808114a1d81f2efd1a2e319f63ad04fb5d8a35c.tar.zst freebsd-ports-graphics-d808114a1d81f2efd1a2e319f63ad04fb5d8a35c.zip |
- Support staging
- Define EXAMPLES option
Diffstat (limited to 'mail')
-rw-r--r-- | mail/rss2email/Makefile | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/mail/rss2email/Makefile b/mail/rss2email/Makefile index bc5824a9bc9..120f67d51cc 100644 --- a/mail/rss2email/Makefile +++ b/mail/rss2email/Makefile @@ -18,7 +18,8 @@ PLIST_FILES= bin/r2e %%DATADIR%%/${PORTNAME}.py PLIST_DIRS= %%DATADIR%% PORTEXAMPLES= config.py.example -NO_STAGE= yes +OPTIONS_DEFINE= EXAMPLES + post-patch: @${REINPLACE_CMD} -e 's|@PYTHONCMD@|${PYTHON_CMD}|;s|@DATADIR@|${DATADIR}|'\ ${WRKSRC}/r2e @@ -26,12 +27,10 @@ post-patch: ${WRKSRC}/rss2email.py do-install: - @${INSTALL} -d ${DATADIR}/ - @${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}.py ${DATADIR}/ - @${INSTALL_SCRIPT} ${WRKSRC}/r2e ${PREFIX}/bin/ -.ifndef NOPORTEXAMPLES - @${INSTALL} -d ${EXAMPLESDIR}/ - @${INSTALL_DATA} ${WRKSRC}/config.py.example ${EXAMPLESDIR}/ -.endif + @${MKDIR} ${STAGEDIR}${DATADIR} + ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}.py ${STAGEDIR}${DATADIR} + ${INSTALL_SCRIPT} ${WRKSRC}/r2e ${STAGEDIR}${PREFIX}/bin + @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/config.py.example ${STAGEDIR}${EXAMPLESDIR} .include <bsd.port.mk> |