summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenrik Brix Andersen <brix@FreeBSD.org>2014-04-19 18:40:51 +0000
committerHenrik Brix Andersen <brix@FreeBSD.org>2014-04-19 18:40:51 +0000
commit87cfd323d0ad5a23637b072ea13910c8a1b74d75 (patch)
tree425458101fceb551fa42c39c4ea5d9d8c6e3bfc8
parentUpdate to 2.15.1. (diff)
- Add stage support
- Honor PORT_OPTIONS:MDOCS - Remove BROKEN
Notes
Notes: svn path=/head/; revision=351605
-rw-r--r--www/p5-Apache-Gallery/Makefile31
1 files changed, 15 insertions, 16 deletions
diff --git a/www/p5-Apache-Gallery/Makefile b/www/p5-Apache-Gallery/Makefile
index 919f5081fccb..24194145cbd4 100644
--- a/www/p5-Apache-Gallery/Makefile
+++ b/www/p5-Apache-Gallery/Makefile
@@ -3,7 +3,7 @@
PORTNAME= Apache-Gallery
PORTVERSION= 1.0.2
-PORTREVISION= 1
+PORTREVISION= 2
PORTEPOCH= 3
CATEGORIES= www perl5
MASTER_SITES= http://apachegallery.dk/download/ \
@@ -15,7 +15,6 @@ COMMENT= Apache::Gallery - mod_perl handler to create an image gallery
LICENSE= ART10
-BROKEN= not staged
BUILD_DEPENDS= p5-URI>=0:${PORTSDIR}/net/p5-URI \
p5-Text-Template>=0:${PORTSDIR}/textproc/p5-Text-Template \
p5-Image-Info>=0:${PORTSDIR}/graphics/p5-Image-Info \
@@ -36,29 +35,29 @@ DOC_FILES= INSTALL LICENSE README TODO UPGRADE
SUB_FILES+= pkg-message
-NO_STAGE= yes
+.include <bsd.port.pre.mk>
+
post-patch:
@${CP} ${WRKSRC}/templates/bright/navdirectory.tpl ${WRKSRC}/templates/default
@${CP} ${WRKSRC}/templates/bright/navdirectory.tpl ${WRKSRC}/templates/new
post-install:
- @${MKDIR} ${PREFIX}/www/icons/gallery/
+ @${MKDIR} ${STAGEDIR}/${PREFIX}/www/icons/gallery/
${INSTALL_DATA} ${WRKSRC}/htdocs/* \
- ${PREFIX}/www/icons/gallery/
- @${MKDIR} ${DATADIR}/templates/bright
- @${MKDIR} ${DATADIR}/templates/default
- @${MKDIR} ${DATADIR}/templates/new
+ ${STAGEDIR}/${PREFIX}/www/icons/gallery/
+ @${MKDIR} ${STAGEDIR}/${DATADIR}/templates/bright
+ @${MKDIR} ${STAGEDIR}/${DATADIR}/templates/default
+ @${MKDIR} ${STAGEDIR}/${DATADIR}/templates/new
${INSTALL_DATA} ${WRKSRC}/templates/bright/* \
- ${DATADIR}/templates/bright/
+ ${STAGEDIR}/${DATADIR}/templates/bright/
${INSTALL_DATA} ${WRKSRC}/templates/default/* \
- ${DATADIR}/templates/default/
+ ${STAGEDIR}/${DATADIR}/templates/default/
${INSTALL_DATA} ${WRKSRC}/templates/new/* \
- ${DATADIR}/templates/new/
-
-.if !defined(NOPORTDOCS)
- @${MKDIR} ${DOCSDIR}/
+ ${STAGEDIR}/${DATADIR}/templates/new/
+.if ${PORT_OPTIONS:MDOCS}
+ @${MKDIR} ${STAGEDIR}/${DOCSDIR}/
.for file in ${DOC_FILES}
- @${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}/
+ @${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}/${DOCSDIR}/
.endfor
.endif
@@ -66,4 +65,4 @@ post-install:
@${CAT} ${PKGMESSAGE}
.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>