ports/186063: [PATCH] www/validator: add 'USES=shebangfix' to adjust perl path

Yasuhiro KIMURA yasu at utahime.org
Fri Jan 24 00:30:01 UTC 2014


>Number:         186063
>Category:       ports
>Synopsis:       [PATCH] www/validator: add 'USES=shebangfix' to adjust perl path
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jan 24 00:30:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     Yasuhiro KIMURA
>Release:        FreeBSD 10.0-RELEASE amd64
>Organization:
>Environment:
System: FreeBSD xxxx 10.0-RELEASE FreeBSD 10.0-RELEASE #0 r260673: Mon Jan 20 13:37:55 JST 2014 xxxx amd64


	
>Description:
	
	- Add 'USES=shebangfix' to adjust perl path of scripts.
	- Support staging.
	- Bump PORTREVISION because scripts are changed.

>How-To-Repeat:
	
>Fix:

	

--- patch-validator begins here ---
Index: Makefile
===================================================================
--- Makefile	(revision 340866)
+++ Makefile	(working copy)
@@ -3,6 +3,7 @@
 
 PORTNAME=	validator
 PORTVERSION=	1.3
+PORTREVISION=	1
 CATEGORIES=	www
 MASTER_SITES=	http://validator.w3.org/dist/ \
 		http://www.cyberbotx.com/w3c-validator/
@@ -25,17 +26,17 @@
 		p5-URI>=0:${PORTSDIR}/net/p5-URI \
 		p5-XML-LibXML>=0:${PORTSDIR}/textproc/p5-XML-LibXML
 
-USES=		perl5
+USES=		perl5 shebangfix
 NO_BUILD=	yes
 USE_PERL5=	run
 
 SUB_FILES=	pkg-message validator.conf.sample
+SHEBANG_FILES=	httpd/cgi-bin/check httpd/cgi-bin/sendfeedback.pl
 
 OPTIONS_DEFINE=	HTML_TIDY
 OPTIONS_DEFAULT=HTML_TIDY
 HTML_TIDY_DESC=	Enable HTML Markup Cleaning
 
-NO_STAGE=	yes
 .include <bsd.port.pre.mk>
 
 .if ${PORT_OPTIONS:MHTML_TIDY}
@@ -52,14 +53,11 @@
 	@${CP} ${WRKDIR}/validator.conf.sample ${WRKSRC}/htdocs/config/
 
 do-install:
-	${MKDIR} ${PREFIX}/www/validator/htdocs
-	${MKDIR} ${PREFIX}/www/validator/httpd/cgi-bin
-	${MKDIR} ${PREFIX}/www/validator/share
-	(cd ${WRKSRC}/htdocs && ${COPYTREE_SHARE} \* ${PREFIX}/www/validator/htdocs/)
-	${INSTALL_SCRIPT} ${WRKSRC}/httpd/cgi-bin/* ${PREFIX}/www/validator/httpd/cgi-bin
-	(cd ${WRKSRC}/share && ${COPYTREE_SHARE} \* ${PREFIX}/www/validator/share/)
+	${MKDIR} ${STAGEDIR}${PREFIX}/www/validator/htdocs
+	${MKDIR} ${STAGEDIR}${PREFIX}/www/validator/httpd/cgi-bin
+	${MKDIR} ${STAGEDIR}${PREFIX}/www/validator/share
+	(cd ${WRKSRC}/htdocs && ${COPYTREE_SHARE} \* ${STAGEDIR}${PREFIX}/www/validator/htdocs/)
+	${INSTALL_SCRIPT} ${WRKSRC}/httpd/cgi-bin/* ${STAGEDIR}${PREFIX}/www/validator/httpd/cgi-bin
+	(cd ${WRKSRC}/share && ${COPYTREE_SHARE} \* ${STAGEDIR}${PREFIX}/www/validator/share/)
 
-post-install:
-	@${CAT} ${PKGMESSAGE}
-
 .include <bsd.port.post.mk>
--- patch-validator ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-ports-bugs mailing list