aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraz <az@FreeBSD.org>2013-07-26 01:45:09 +0800
committeraz <az@FreeBSD.org>2013-07-26 01:45:09 +0800
commita17aea5b36965f8ed6ecc0ca55f360944e3f46a8 (patch)
tree17b7739cec5c8bd24318f8970c77d5508f40b335
parent9bd11f4a568c740d3e38c88bf815647016ecdef7 (diff)
downloadfreebsd-ports-gnome-a17aea5b36965f8ed6ecc0ca55f360944e3f46a8.tar.gz
freebsd-ports-gnome-a17aea5b36965f8ed6ecc0ca55f360944e3f46a8.tar.zst
freebsd-ports-gnome-a17aea5b36965f8ed6ecc0ca55f360944e3f46a8.zip
- switch simple inline replacement from perl to sed
and remove where is no need in this anymore. - trim Makefile header Approved by: bapt@ (portmrg@)
-rw-r--r--devel/p5-Search-Binary/Makefile9
-rw-r--r--devel/p5-Storable/Makefile2
-rw-r--r--devel/p5-Test-SubCalls/Makefile9
-rw-r--r--devel/p5-Test-YAML-Valid/Makefile3
-rw-r--r--devel/p5-prefork/Makefile9
-rw-r--r--dns/sleuth/Makefile12
-rw-r--r--finance/ledgersmb/Makefile13
-rw-r--r--finance/ledgersmb/files/pkg-message.in (renamed from finance/ledgersmb/pkg-message)0
-rw-r--r--finance/p5-Business-OnlinePayment-PaymenTech/Makefile3
-rw-r--r--finance/sql-ledger/Makefile6
-rw-r--r--ftp/ftplocate/Makefile23
-rw-r--r--ftp/ftpmirror/Makefile8
12 files changed, 29 insertions, 68 deletions
diff --git a/devel/p5-Search-Binary/Makefile b/devel/p5-Search-Binary/Makefile
index f2709e7c238b..24a0f46fab68 100644
--- a/devel/p5-Search-Binary/Makefile
+++ b/devel/p5-Search-Binary/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: devel/p5-Search-Binary
-# Date created: 03 January 2001
-# Whom: Anton Berezin <tobez@tobez.org>
-#
+# Created by: Anton Berezin <tobez@tobez.org>
# $FreeBSD$
-#
PORTNAME= Search-Binary
PORTVERSION= 0.95
@@ -19,6 +15,7 @@ PERL_CONFIGURE= yes
MAN3= Search::Binary.3
pre-patch:
- @${PERL} -pi -e 's|Seach|Search|' ${WRKSRC}/Binary.pm
+ @${REINPLACE_CMD} -i '' -e 's|Seach|Search|' \
+ ${WRKSRC}/Binary.pm
.include <bsd.port.mk>
diff --git a/devel/p5-Storable/Makefile b/devel/p5-Storable/Makefile
index 335b01d25faa..b18e0ef7c017 100644
--- a/devel/p5-Storable/Makefile
+++ b/devel/p5-Storable/Makefile
@@ -15,6 +15,6 @@ PERL_CONFIGURE= yes
MAN3= Storable.3
post-patch:
- @${PERL} -pi -e '$$_="" if /MAN3PODS|INSTALLDIRS/' ${WRKSRC}/Makefile.PL
+ @${REINPLACE_CMD} -i '' -e 's|INSTALLDIRS|' ${WRKSRC}/Makefile.PL
.include <bsd.port.mk>
diff --git a/devel/p5-Test-SubCalls/Makefile b/devel/p5-Test-SubCalls/Makefile
index 307aae76e090..ee8e6a2d08af 100644
--- a/devel/p5-Test-SubCalls/Makefile
+++ b/devel/p5-Test-SubCalls/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: devel/p5-Test-SubCalls
-# Date created: 08 October 2005
-# Whom: Lars Thegler <lth@FreeBSD.org>
-#
+# Created by: Lars Thegler <lth@FreeBSD.org>
# $FreeBSD$
-#
PORTNAME= Test-SubCalls
PORTVERSION= 1.09
@@ -23,7 +19,4 @@ PERL_CONFIGURE= yes
MAN3= Test::SubCalls.3
-post-patch:
- @${PERL} -pi -e '$$_="" if m/Test::More/' ${WRKSRC}/Makefile.PL
-
.include <bsd.port.mk>
diff --git a/devel/p5-Test-YAML-Valid/Makefile b/devel/p5-Test-YAML-Valid/Makefile
index 693e140434a3..38e26c38f7d0 100644
--- a/devel/p5-Test-YAML-Valid/Makefile
+++ b/devel/p5-Test-YAML-Valid/Makefile
@@ -22,7 +22,8 @@ OPTIONS_DEFINE= YAMLSYCK
YAMLSYCK_DESC= Use YAML::Syck for testing
post-patch:
- ${PERL} -pi -e '$$_="" if /auto_install/' ${WRKSRC}/Makefile.PL
+ @${REINPLACE_CMD} -i '' -e '/auto_install.*/d' \
+ ${WRKSRC}/Makefile.PL
.include <bsd.port.options.mk>
diff --git a/devel/p5-prefork/Makefile b/devel/p5-prefork/Makefile
index 890f72740ff8..cc7987cf663c 100644
--- a/devel/p5-prefork/Makefile
+++ b/devel/p5-prefork/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: prefork
-# Date created: 14 November 2004
-# Whom: Sergey Skvortsov <skv@protey.ru>
-#
+# Created by: Sergey Skvortsov <skv@protey.ru>
# $FreeBSD$
-#
PORTNAME= prefork
PORTVERSION= 1.04
@@ -22,7 +18,4 @@ PERL_CONFIGURE= yes
MAN3= prefork.3
-post-patch:
- @${PERL} -pi -e 's/^auto_install.*$$//' ${WRKSRC}/Makefile.PL
-
.include <bsd.port.mk>
diff --git a/dns/sleuth/Makefile b/dns/sleuth/Makefile
index e40a43baa46b..81b582cdee5d 100644
--- a/dns/sleuth/Makefile
+++ b/dns/sleuth/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: sleuth
-# Date created: Jun 15, 2001
-# Whom: Mark Pulford <mark@kyne.com.au>
-#
+# Created by: Mark Pulford <mark@kyne.com.au>
# $FreeBSD$
-#
PORTNAME= sleuth
PORTVERSION= 1.4.4
@@ -16,12 +12,14 @@ COMMENT= A tool for checking DNS zones
RUN_DEPENDS= p5-Net-DNS>=0:${PORTSDIR}/dns/p5-Net-DNS
USE_PERL5= yes
+USES= shebangfix
+SHEBANG_FILES= sleuth
PLIST_FILES= bin/sleuth etc/sleuth.conf.sample
post-patch:
- ${PERL} -pi -e "s|/etc/sleuth.conf|${PREFIX}/etc/sleuth.conf|g; \
- s|#!/usr/bin/perl|#!${PERL}|g;" ${WRKSRC}/sleuth
+ @${REINPLACE_CMD} -i '' -e 's|/etc/sleuth.conf|${PREFIX}/etc/sleuth.conf|' \
+ ${WRKSRC}/sleuth
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/sleuth ${PREFIX}/bin
diff --git a/finance/ledgersmb/Makefile b/finance/ledgersmb/Makefile
index 5787ee9cb4e9..acbed1ab34b1 100644
--- a/finance/ledgersmb/Makefile
+++ b/finance/ledgersmb/Makefile
@@ -17,16 +17,9 @@ NO_BUILD= yes
USE_PERL5= yes
WRKSRC= ${WRKDIR}/${PORTNAME}
PKGMESSAGE= ${WRKDIR}/pkg-message
-
-post-patch:
- @${PERL} -pi -e 's|/usr/bin/perl|${PERL}|' \
- `${FIND} ${WRKSRC} -name \*.pl`
- @${PERL} -pe 's|%%PREFIX%%|${PREFIX}|g' \
- ${FILESDIR}/${PORTNAME}-httpd.conf.in \
- > ${WRKDIR}/${PORTNAME}-httpd.conf
- @${PERL} -pe 's|%%PREFIX%%|${PREFIX}|g' \
- ${PKGDIR}/pkg-message \
- > ${PKGMESSAGE}
+USES= shebangfix
+SHEBANG_FILES= *.pl locale/*/*.pl bin/*/*.pl utils/*/*.pl
+SUB_FILES= ${PORTNAME}-httpd.conf.in pkg-message.in
do-install:
@cd ${WRKDIR} ; \
diff --git a/finance/ledgersmb/pkg-message b/finance/ledgersmb/files/pkg-message.in
index 485c368fc764..485c368fc764 100644
--- a/finance/ledgersmb/pkg-message
+++ b/finance/ledgersmb/files/pkg-message.in
diff --git a/finance/p5-Business-OnlinePayment-PaymenTech/Makefile b/finance/p5-Business-OnlinePayment-PaymenTech/Makefile
index 97946d719d63..619d7cbd04bd 100644
--- a/finance/p5-Business-OnlinePayment-PaymenTech/Makefile
+++ b/finance/p5-Business-OnlinePayment-PaymenTech/Makefile
@@ -20,7 +20,4 @@ PERL_CONFIGURE= yes
MAN3= Business::OnlinePayment::PaymenTech.3
-post-extract:
- @${PERL} -i.bak -ne 'print unless /^(test_requires|auto_install|recommends|configure_requires)/' ${WRKSRC}/Makefile.PL
-
.include <bsd.port.mk>
diff --git a/finance/sql-ledger/Makefile b/finance/sql-ledger/Makefile
index 71ded90bd28f..6317027aab8a 100644
--- a/finance/sql-ledger/Makefile
+++ b/finance/sql-ledger/Makefile
@@ -18,10 +18,8 @@ NO_BUILD= yes
USE_PERL5= yes
WRKSRC= ${WRKDIR}/${PORTNAME}
SUB_FILES= pkg-message sql-ledger-httpd.conf
-
-post-patch:
- @${PERL} -pi -e 's|/usr/bin/perl|${PERL}|' \
- `${FIND} ${WRKSRC} -name \*.pl`
+USES= shebangfix
+SHEBANG_FILES= *.pl locale/*/*.pl bin/*/*.pl
do-install:
@cd ${WRKDIR} ; \
diff --git a/ftp/ftplocate/Makefile b/ftp/ftplocate/Makefile
index 8c719ee7a02f..e2f1c423c875 100644
--- a/ftp/ftplocate/Makefile
+++ b/ftp/ftplocate/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: Ftplocate
-# Date created: 7 December 1999
-# Whom: tung@turtle.ee.ncku.edu.tw
-#
+# Created by: tung@turtle.ee.ncku.edu.tw
# $FreeBSD$
-#
PORTNAME= ftplocate
PORTVERSION= 2.02
@@ -19,19 +15,14 @@ RUN_DEPENDS= glimpse:${PORTSDIR}/textproc/glimpse \
USE_PERL5= yes
NO_BUILD= yes
-PL_FILES= install.pl bin/dcollect.pl bin/dindex.pl bin/dsearch.pl \
- bin/flcollect.pl bin/flfilter.pl bin/flhistory.pl \
- bin/flindex.pl bin/flmap.pl bin/flsearch.pl \
- bin/flserv.pl bin/flsummary.pl bin/fltop.pl \
- bin/fltrain.pl bin/flcatsite.pl template/ftplocate
+USES= shebangfix
+SHEBANG_FILES= bin/*.pl template/ftplocate
post-extract:
-.for f in ${PL_FILES}
- @${PERL} -pi -e 's,/usr/bin/perl,${PERL},' ${WRKSRC}/${f}
-.endfor
- @${PERL} -pi -e 's,(/usr/local/www|/usr/local/apache/share),${PREFIX}/www,g' ${WRKSRC}/install.pl
- @${PERL} -pi -e 's,/usr/local/bin/ftplocate,${PREFIX}/bin/ftplocate,g' ${WRKSRC}/install.pl
- @${PERL} -pi -e 's,htdocs,data,g' ${WRKSRC}/install.pl
+ @${REINPLACE_CMD} -i '' -e 's|/usr/local/www|${PREFIX}/www|' \
+ -e 's|/usr/local/apache/share|${PREFIX}/www|' ${WRKSRC}/install.pl
+ @${REINPLACE_CMD} -i '' -e 's|/usr/local/bin/ftplocate|${PREFIX}/bin/ftplocate|' \
+ -e 's|htdocs|data|' -e 's|/usr/bin/perl|${PERL}|' ${WRKSRC}/install.pl
do-install:
@${MKDIR} ${PREFIX}/www/data ${PREFIX}/www/cgi-bin
diff --git a/ftp/ftpmirror/Makefile b/ftp/ftpmirror/Makefile
index 92d6f5270f54..e0f2da9378b7 100644
--- a/ftp/ftpmirror/Makefile
+++ b/ftp/ftpmirror/Makefile
@@ -18,15 +18,15 @@ USE_PERL5= yes
GNU_CONFIGURE= yes
MAKE_JOBS_SAFE= yes
+USES= shebangfix
+SHEBANG_FILES= ftpmirror rotate
+
CONFIGURE_ENV+= PERL="${PERL}" INSTALL_PROGRAM="${INSTALL_SCRIPT}"
PORTDOCS= README.jis RELEASE.jis
post-configure:
- @${PERL} -i.bak -pe 's,%%PREFIX%%,${PREFIX},g' ${WRKSRC}/Fan/Fan.pm
-.for f in ftpmirror rotate
- @${PERL} -i.bak -pe 's,^#!.*$$,#!${PERL}, if $$. == 1' ${WRKSRC}/${f}
-.endfor
+ @${REINPLACE_CMD} -i '' -e 's|%%PREFIX%%|${PREFIX}|' ${WRKSRC}/Fan/Fan.pm
.include <bsd.port.pre.mk>