aboutsummaryrefslogtreecommitdiff
path: root/www/nanoblogger
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2014-02-17 14:46:28 +0000
committerMartin Wilke <miwi@FreeBSD.org>2014-02-17 14:46:28 +0000
commit8ef6ddd7fd9eb8a07469c42a630562d57750eca7 (patch)
treea6cf5fe7fdb516b50c3a27b631f07824d750098f /www/nanoblogger
parentc2b58f52ede41695f3f9237b798f7869f61962be (diff)
- Stage support
Notes
Notes: svn path=/head/; revision=344764
Diffstat (limited to 'www/nanoblogger')
-rw-r--r--www/nanoblogger/Makefile28
1 files changed, 12 insertions, 16 deletions
diff --git a/www/nanoblogger/Makefile b/www/nanoblogger/Makefile
index c68f5b99aebc..80c5a8d3f750 100644
--- a/www/nanoblogger/Makefile
+++ b/www/nanoblogger/Makefile
@@ -16,7 +16,6 @@ NO_BUILD= yes
SUB_FILES= pkg-message
-NO_STAGE= yes
post-patch:
@${REINPLACE_CMD} -e "s,%%PREFIX%%,${PREFIX},g" ${WRKSRC}/nb
@${REINPLACE_CMD} -e "s,%%LOCALBASE%%,${LOCALBASE},g" ${WRKSRC}/nb
@@ -26,28 +25,25 @@ post-patch:
@${RM} ${WRKSRC}/plugins/entry/format/*.orig
do-install:
- @${INSTALL_SCRIPT} ${WRKSRC}/nb ${PREFIX}/bin
- @${INSTALL_DATA} ${WRKSRC}/nb.conf ${PREFIX}/etc/nb.conf.sample
- @${MKDIR} ${DATADIR}
+ @${INSTALL_SCRIPT} ${WRKSRC}/nb ${STAGEDIR}${PREFIX}/bin
+ @${INSTALL_DATA} ${WRKSRC}/nb.conf ${STAGEDIR}${PREFIX}/etc/nb.conf.sample
+ @${MKDIR} ${STAGEDIR}${DATADIR}
.for data in default lang lib moods plugins
- @${MKDIR} ${DATADIR}/${data} && \
+ @${MKDIR} ${STAGEDIR}${DATADIR}/${data} && \
( cd ${WRKSRC}/${data} && \
- ${COPYTREE_SHARE} \* ${DATADIR}/${data} "! -name *.orig" )
+ ${COPYTREE_SHARE} \* ${STAGEDIR}${DATADIR}/${data} "! -name *.orig" )
.endfor
- @${CP} ${WRKSRC}/welcome-to-nb.txt ${DATADIR}
+ @${CP} ${WRKSRC}/welcome-to-nb.txt ${STAGEDIR}${DATADIR}
post-install:
- @if [ ! -f ${PREFIX}/etc/nb.conf ]; then \
- ${CP} -p ${PREFIX}/etc/nb.conf.sample ${PREFIX}/etc/nb.conf; \
+ @if [ ! -f ${STAGEDIR}${PREFIX}/etc/nb.conf ]; then \
+ ${CP} -p ${STAGEDIR}${PREFIX}/etc/nb.conf.sample ${STAGEDIR}${PREFIX}/etc/nb.conf; \
fi
-.if !defined(NOPORTDOCS)
- @${MKDIR} ${DOCSDIR}
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}
.for doc in COPYING ChangeLog README TODO copyright
- @${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
+ @${INSTALL_DATA} ${WRKSRC}/${doc} ${STAGEDIR}${DOCSDIR}
.endfor
- @${MKDIR} ${DOCSDIR}/html
- @${INSTALL_DATA} ${WRKSRC}/docs/nanoblogger.html ${DOCSDIR}/html
-.endif
- @${CAT} ${PKGMESSAGE}
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}/html
+ @${INSTALL_DATA} ${WRKSRC}/docs/nanoblogger.html ${STAGEDIR}${DOCSDIR}/html
.include <bsd.port.mk>