Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 May 2013 09:39:36 +0000 (UTC)
From:      Emanuel Haupt <ehaupt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r317595 - in head/textproc: align xmldiff xmlprpr xslint
Message-ID:  <201305070939.r479dacK032230@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ehaupt
Date: Tue May  7 09:39:35 2013
New Revision: 317595
URL: http://svnweb.freebsd.org/changeset/ports/317595

Log:
  - Convert to use shebangfix USES flag
  - Trim header
  - Use new options framework for DOCS

Modified:
  head/textproc/align/Makefile
  head/textproc/xmldiff/Makefile
  head/textproc/xmlprpr/Makefile
  head/textproc/xslint/Makefile

Modified: head/textproc/align/Makefile
==============================================================================
--- head/textproc/align/Makefile	Tue May  7 09:30:51 2013	(r317594)
+++ head/textproc/align/Makefile	Tue May  7 09:39:35 2013	(r317595)
@@ -14,14 +14,12 @@ LICENSE=	GPLv2 # (or later)
 
 NO_BUILD=	yes
 
+USES=		shebangfix
 USE_PERL5_RUN=	yes
 
-PLIST_FILES=	bin/align bin/width
+SHEBANG_FILES=	align width
 
-post-patch:
-.for i in align width
-	@${REINPLACE_CMD} -e 's|/usr/bin/perl|${PERL}|' ${WRKSRC}/${i}
-.endfor
+PLIST_FILES=	bin/align bin/width
 
 do-install:
 .for i in align width

Modified: head/textproc/xmldiff/Makefile
==============================================================================
--- head/textproc/xmldiff/Makefile	Tue May  7 09:30:51 2013	(r317594)
+++ head/textproc/xmldiff/Makefile	Tue May  7 09:39:35 2013	(r317595)
@@ -1,9 +1,5 @@
-# New ports collection makefile for:	xmldiff
-# Date created:		Sun Oct  9 10:33:37 EDT 2005
-# Whom:			Paul Chvostek <paul+ports@it.ca>
-#
+# Created by: Paul Chvostek <paul+ports@it.ca>
 # $FreeBSD$
-#
 
 PORTNAME=	xmldiff
 PORTVERSION=	0.01
@@ -18,17 +14,18 @@ COMMENT=	Display meaningful differences 
 
 RUN_DEPENDS=	xmlprpr:${PORTSDIR}/textproc/xmlprpr
 
+USES=		shebangfix
 USE_PERL5=	yes
 NO_BUILD=	yes
+
+SHEBANG_FILES=	xmldiff.pl
+
 PLIST_FILES=	bin/xmldiff
 
 do-extract:
 	@${MKDIR} ${WRKSRC}
 	@${CP} -f ${_DISTDIR}/${_DISTFILES} ${WRKSRC}
 
-post-patch:
-	@${REINPLACE_CMD} -e '1s:/usr/bin/perl:${PERL}:' ${WRKSRC}/xmldiff.pl
-
 do-install:
 	${INSTALL_SCRIPT} ${WRKSRC}/xmldiff.pl ${PREFIX}/bin/xmldiff
 

Modified: head/textproc/xmlprpr/Makefile
==============================================================================
--- head/textproc/xmlprpr/Makefile	Tue May  7 09:30:51 2013	(r317594)
+++ head/textproc/xmlprpr/Makefile	Tue May  7 09:39:35 2013	(r317595)
@@ -1,9 +1,5 @@
-# New ports collection makefile for:	xmlprpr
-# Date created:		Sun Oct  9 10:33:37 EDT 2005
-# Whom:			Paul Chvostek <paul+ports@it.ca>
-#
+# Created by: Paul Chvostek <paul+ports@it.ca>
 # $FreeBSD$
-#
 
 PORTNAME=	xmlprpr
 PORTVERSION=	1.32
@@ -16,18 +12,19 @@ DISTFILES=	xmlpp.pl
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	An XML pretty printer
 
+USES=		shebangfix
 USE_PERL5=	yes
 NO_WRKSUBDIR=	yes
 NO_BUILD=	yes
+
+SHEBANG_FILES=	xmlpp.pl
+
 PLIST_FILES=	bin/xmlprpr
 
 do-extract:
 	@${MKDIR} ${WRKSRC}
 	@${CP} -f ${_DISTDIR}/${_DISTFILES} ${WRKSRC}
 
-post-patch:
-	@${REINPLACE_CMD} -e '1s:/usr/bin/perl:${PERL}:' ${WRKSRC}/xmlpp.pl
-
 do-install:
 	${INSTALL_SCRIPT} ${WRKSRC}/xmlpp.pl ${PREFIX}/bin/xmlprpr
 

Modified: head/textproc/xslint/Makefile
==============================================================================
--- head/textproc/xslint/Makefile	Tue May  7 09:30:51 2013	(r317594)
+++ head/textproc/xslint/Makefile	Tue May  7 09:39:35 2013	(r317595)
@@ -1,9 +1,5 @@
-# New ports collection makefile for:	xslint
-# Date created:			11 August 2001
-# Whom:				Alex Kapranoff <kapr@crosswinds.net>
-#
+# Created by: Alex Kapranoff <kapr@crosswinds.net>
 # $FreeBSD$
-#
 
 PORTNAME=	xslint
 PORTVERSION=	005
@@ -16,25 +12,27 @@ COMMENT=	XSL(T) stylesheet checker
 
 RUN_DEPENDS=	p5-XML-DOM>=0:${PORTSDIR}/textproc/p5-XML-DOM
 
+USES=		shebangfix
 USE_ZIP=	yes
 USE_PERL5_RUN=	yes
 
 WRKSRC=		${WRKDIR}/${PORTNAME}-0.05
 NO_BUILD=	yes
 
+SHEBANG_FILES=	xslint.pl
+
 PLIST_FILES=	bin/xslint
 PORTDOCS=	README xslint.html xslint.xml
 
-post-patch:
-	@${REINPLACE_CMD} -e 's,/usr/bin/perl,${PERL},' ${WRKSRC}/${PORTNAME}.pl
+.include <bsd.port.options.mk>
 
 do-install:
 	${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}.pl ${PREFIX}/bin/${PORTNAME}
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
 	@${MKDIR} ${DOCSDIR}
-.	for i in ${PORTDOCS}
-	  ${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
-.	endfor
+.for i in ${PORTDOCS}
+	${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
+.endfor
 .endif
 
 .include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201305070939.r479dacK032230>