aboutsummaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2015-12-22 05:08:15 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2015-12-22 05:08:15 +0800
commitaf1168427c4e99d3a71844292a01fc80cc8c5175 (patch)
treea7cdce96d2f3e4a1cf995a1de7390da9fba2f5c6 /graphics
parentabcca2aa38f9847253fe5dcb622693fc7f563c1e (diff)
downloadfreebsd-ports-gnome-af1168427c4e99d3a71844292a01fc80cc8c5175.tar.gz
freebsd-ports-gnome-af1168427c4e99d3a71844292a01fc80cc8c5175.tar.zst
freebsd-ports-gnome-af1168427c4e99d3a71844292a01fc80cc8c5175.zip
- Switch to options helpers
- Modernize plist Approved by: portmgr blanket
Diffstat (limited to 'graphics')
-rw-r--r--graphics/php5-swfed/Makefile19
-rw-r--r--graphics/php5-swfed/pkg-plist7
2 files changed, 18 insertions, 8 deletions
diff --git a/graphics/php5-swfed/Makefile b/graphics/php5-swfed/Makefile
index 5199ecebafcb..a67a2c945f41 100644
--- a/graphics/php5-swfed/Makefile
+++ b/graphics/php5-swfed/Makefile
@@ -24,7 +24,7 @@ DEFAULT_PHP_VER= 5
USE_PHP= zlib
USE_PHPEXT= yes
-WRKSRC= ${WRKDIR}/${DISTNAME}/src
+WRKSRC= ${WRKDIR}/${DISTNAME}/src
CONFIGURE_ARGS= --with-png-dir=${LOCALBASE} --with-gif-dir=${LOCALBASE}
PLIST_SUB= WWWOWN=${WWWOWN} WWWGRP=${WWWGRP}
@@ -35,16 +35,23 @@ PORTEXAMPLES= *
OPTIONS_DEFINE= DOCS EXAMPLES
post-install:
+ @${MKDIR} ${STAGEDIR}${WWWDIR}
+ ${CP} -R ${WRKDIR}/${DISTNAME}/www/ ${STAGEDIR}${WWWDIR}
+
+post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/doc/${PORTDOCS} ${STAGEDIR}${DOCSDIR}
+
+post-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/sample/${PORTEXAMPLES} ${STAGEDIR}${EXAMPLESDIR}
- @${MKDIR} ${STAGEDIR}${WWWDIR}
- ${CP} -R ${WRKDIR}/${DISTNAME}/www/ ${STAGEDIR}${WWWDIR}
x-generate-plist: stage
- ${FIND} ${STAGEDIR}${WWWDIR} -type f | ${SORT} | ${SED} -e 's,${STAGEDIR}${WWWDIR},%%WWWDIR%%,g' > pkg-plist.new
- ${FIND} ${STAGEDIR}${WWWDIR} -type d -depth | ${SORT} -r | ${SED} -e 's,${STAGEDIR}${WWWDIR},@dirrm %%WWWDIR%%,g' >> pkg-plist.new
- ${ECHO} '@exec chown -R %%WWWOWN%%:%%WWWGRP%% %D/%%WWWDIR%%' >> pkg-plist.new
+ ${ECHO_CMD} '@owner %%WWWOWN%%' > pkg-plist.new
+ ${ECHO_CMD} '@group %%WWWGRP%%' >> pkg-plist.new
+ ${FIND} ${STAGEDIR}${WWWDIR} -type f | ${SORT} | ${SED} -e 's,${STAGEDIR}${WWWDIR},%%WWWDIR%%,g' >> pkg-plist.new
+ ${FIND} ${STAGEDIR}${WWWDIR} -type d -depth | ${SORT} -r | ${SED} -e 's,${STAGEDIR}${WWWDIR},@dir %%WWWDIR%%,g' >> pkg-plist.new
+ ${ECHO_CMD} '@owner' >> pkg-plist.new
+ ${ECHO_CMD} '@group' >> pkg-plist.new
.include <bsd.port.mk>
diff --git a/graphics/php5-swfed/pkg-plist b/graphics/php5-swfed/pkg-plist
index c9665077a6b3..a7b6fb8b62ae 100644
--- a/graphics/php5-swfed/pkg-plist
+++ b/graphics/php5-swfed/pkg-plist
@@ -1,3 +1,5 @@
+@owner %%WWWOWN%%
+@group %%WWWGRP%%
%%WWWDIR%%/define.php
%%WWWDIR%%/index.php
%%WWWDIR%%/shapetpl.swf
@@ -5,5 +7,6 @@
%%WWWDIR%%/swfimagelist.php
%%WWWDIR%%/swfimagereplace.php
%%WWWDIR%%/swfshape.php
-@dirrm %%WWWDIR%%
-@exec chown -R %%WWWOWN%%:%%WWWGRP%% %D/%%WWWDIR%%
+@dir %%WWWDIR%%
+@owner
+@group