svn commit: r400032 - head/www/webgrind

Dmitry Marakasov amdmi3 at FreeBSD.org
Fri Oct 23 16:18:47 UTC 2015


Author: amdmi3
Date: Fri Oct 23 16:18:45 2015
New Revision: 400032
URL: https://svnweb.freebsd.org/changeset/ports/400032

Log:
  - Add NO_ARCH
  - Switch to options helpers
  - Silence post-patch
  - Switch to plist owner/perm handling, fixing build from non-root
  
  PR:		203565
  Submitted by:	amdmi3
  Approved by:	maintainer timeout (lwhsu, 2 weeks)

Modified:
  head/www/webgrind/Makefile
  head/www/webgrind/pkg-plist

Modified: head/www/webgrind/Makefile
==============================================================================
--- head/www/webgrind/Makefile	Fri Oct 23 16:02:38 2015	(r400031)
+++ head/www/webgrind/Makefile	Fri Oct 23 16:18:45 2015	(r400032)
@@ -21,22 +21,20 @@ SNAPSHOT=	20140207
 USE_PHP=	yes
 
 NO_BUILD=	yes
+NO_ARCH=	yes
 
-.include <bsd.port.options.mk>
+PLIST_SUB=	WWWOWN="${WWWOWN}" WWWGRP="${WWWGRP}"
 
-.if ${PORT_OPTIONS:MCALLGRAPH}
-USES+=		python
-RUN_DEPENDS+=	dot:${PORTSDIR}/graphics/graphviz
-.endif
+CALLGRAPH_USES=		python
+CALLGRAPH_RUN_DEPENDS=	dot:${PORTSDIR}/graphics/graphviz
 
-post-patch:
-	${REINPLACE_CMD} -e 's,/usr/bin/python,/usr/local/bin/python,' ${WRKSRC}/config.php
+post-patch-CALLGRAPH-on:
+	@${REINPLACE_CMD} -e 's,/usr/bin/python,${PYTHON_CMD},' ${WRKSRC}/config.php
 
 do-install:
 	@${MKDIR} ${STAGEDIR}${WWWDIR}
 	(cd ${WRKSRC}/ && ${COPYTREE_SHARE} "*" ${STAGEDIR}${WWWDIR} "! -name *.bak")
 
-	@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${STAGEDIR}${WWWDIR}
 	@${FIND} ${STAGEDIR}${WWWDIR} -type f -exec ${CHMOD} 0444 {} \;
 	@${FIND} ${STAGEDIR}${WWWDIR} -type d -exec ${CHMOD} 0755 {} \;
 

Modified: head/www/webgrind/pkg-plist
==============================================================================
--- head/www/webgrind/pkg-plist	Fri Oct 23 16:02:38 2015	(r400031)
+++ head/www/webgrind/pkg-plist	Fri Oct 23 16:18:45 2015	(r400032)
@@ -1,3 +1,5 @@
+ at owner %%WWWOWN%%
+ at group %%WWWGRP%%
 %%WWWDIR%%/README.md
 %%WWWDIR%%/config.php
 %%WWWDIR%%/img/asc.gif
@@ -38,9 +40,11 @@
 %%WWWDIR%%/styles/style.css
 %%WWWDIR%%/templates/fileviewer.phtml
 %%WWWDIR%%/templates/index.phtml
- at dirrm %%WWWDIR%%/templates
- at dirrm %%WWWDIR%%/styles
- at dirrm %%WWWDIR%%/library
- at dirrm %%WWWDIR%%/js
- at dirrm %%WWWDIR%%/img
- at dirrm %%WWWDIR%%
+ at dir %%WWWDIR%%/templates
+ at dir %%WWWDIR%%/styles
+ at dir %%WWWDIR%%/library
+ at dir %%WWWDIR%%/js
+ at dir %%WWWDIR%%/img
+ at dir %%WWWDIR%%
+ at owner
+ at group


More information about the svn-ports-all mailing list