- switch simple inline replacement from perl to sed

and remove where is no need in this anymore.
- trim Makefile header

Approved by:  bapt@ (portmrg@)
This commit is contained in:
Andrej Zverev 2013-07-26 10:46:37 +00:00
parent dc88faa4b2
commit b9cf423050
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=323711
18 changed files with 43 additions and 93 deletions

View File

@ -1,9 +1,5 @@
# New ports collection makefile for: sysutils/p5-Filesys-SmbClient
# Date created: August 10, 2003
# Whom: Erwin Lansing <erwin@FreeBSD.org>
#
# Created by: Erwin Lansing <erwin@FreeBSD.org>
# $FreeBSD$
#
PORTNAME= Filesys-SmbClient
PORTVERSION= 3.2
@ -22,7 +18,7 @@ PERL_CONFIGURE= yes
MAN3= Filesys::SmbClient.3
post-patch:
${PERL} -pi -e 's!%%LOCALBASE%%!${LOCALBASE}!g' \
@${REINPLACE_CMD} -i '' -e 's!%%LOCALBASE%%!${LOCALBASE}!g' \
${WRKSRC}/Makefile.PL
.include <bsd.port.mk>

View File

@ -58,7 +58,4 @@ BUILD_DEPENDS+= p5-DBD-Pg>=2:${PORTSDIR}/databases/p5-DBD-Pg
RUN_DEPENDS+= p5-DBD-Pg>=2:${PORTSDIR}/databases/p5-DBD-Pg
.endif
post-patch:
@${PERL} -pi -e 's/CPAN/ExtUtils/' ${WRKSRC}/Makefile.PL
.include <bsd.port.mk>

View File

@ -1,9 +1,5 @@
# New ports collection makefile for: Net-Google
# Date created: 04 June 2002
# Whom: Sergey Skvortsov <skv@protey.ru>
#
# Created by: Sergey Skvortsov <skv@protey.ru>
# $FreeBSD$
#
PORTNAME= Net-Google
PORTVERSION= 1.0.1
@ -24,6 +20,6 @@ MAN3= Net::Google.3 Net::Google::Cache.3 Net::Google::Response.3 \
Net::Google::Spelling.3 Net::Google::tool.3
post-patch:
@${PERL} -pi -e 's/CPAN/ExtUtils/' ${WRKSRC}/Makefile.PL
@${REINPLACE_CMD} -i '' -e 's/CPAN/ExtUtils/g' ${WRKSRC}/Makefile.PL
.include <bsd.port.mk>

View File

@ -1,9 +1,5 @@
# New ports collection makefile for: Net-SNPP
# Date created: 6 Jun 2002
# Whom: devin@spamcop.net
#
# Created by: devin@spamcop.net
# $FreeBSD$
#
PORTNAME= Net-SNPP
PORTVERSION= 1.17
@ -20,8 +16,7 @@ MAN3= Net::SNPP.3 \
Net::SNPP::Server.3
post-patch:
@${PERL} -pi -e '$$_="" if /warnings/;' \
@${REINPLACE_CMD} -i '' -e '/warnings/d' \
${WRKSRC}/lib/Net/SNPP/Server.pm
@${RM} ${WRKSRC}/lib/Net/SNPP/Server.pm.orig
.include <bsd.port.mk>

View File

@ -42,6 +42,6 @@ MAN3= App::Twirc.3 \
POE::Component::Server::Twirc.3
post-patch:
@${PERL} -pi -e '$$_="" if m/auto_install/' ${WRKSRC}/Makefile.PL
@${REINPLACE_CMD} -i '' -e '/auto_install/d' ${WRKSRC}/Makefile.PL
.include <bsd.port.mk>

View File

@ -1,9 +1,5 @@
# New ports collection makefile for: p5-PlRPC
# Date Created: 27 Feb 2000
# Whom: Vanilla I. Shu <vanilla@FreeBSD.org>
#
# Created by: Vanilla I. Shu <vanilla@FreeBSD.org>
# $FreeBSD$
#
PORTNAME= PlRPC
PORTVERSION= 0.2020
@ -28,6 +24,7 @@ MAN3= Bundle::PlRPC.3 \
post-patch:
@${FIND} ${WRKSRC} -name ".svn" | ${XARGS} ${RM} -rf
@${PERL} -pi -e 's/perldoc -t/echo perldoc -t/' ${WRKSRC}/Makefile.PL
@${REINPLACE_CMD} -i '' -e 's/perldoc -t/echo perldoc -t/' \
${WRKSRC}/Makefile.PL
.include <bsd.port.mk>

View File

@ -1,9 +1,5 @@
# New ports collection makefile for: p5-Samba-LDAP
# Date created: 2006-09-18
# Whom: Gea-Suan Lin <gslin@gslin.org>
#
# Created by: Gea-Suan Lin <gslin@gslin.org>
# $FreeBSD$
#
PORTNAME= Samba-LDAP
PORTVERSION= 0.05
@ -35,6 +31,6 @@ MAN3= Samba::LDAP.3 Samba::LDAP::Base.3 Samba::LDAP::Config.3 \
Samba::LDAP::User.3
post-patch:
${PERL} -pi -e '$$_ = "" if m|auto_install|' ${WRKSRC}/Makefile.PL
@${REINPLACE_CMD} -i '' -e '/auto_install/d' ${WRKSRC}/Makefile.PL
.include <bsd.port.mk>

View File

@ -47,6 +47,6 @@ TEST_DEPENDS+= p5-Test-Simple>=0.98:${PORTSDIR}/devel/p5-Test-Simple
.endif
post-patch:
@${PERL} -pi -e "s/lib => 'zmq',//" ${WRKSRC}/Makefile.PL
@${REINPLACE_CMD} -i '' -e "s/lib => 'zmq',//" ${WRKSRC}/Makefile.PL
.include <bsd.port.post.mk>

View File

@ -22,7 +22,8 @@ CONFLICTS= tridiavnc-[0-9]* vnc-[0-9]*
WRKSRC= ${WRKDIR}/vnc_unixsrc
USES= imake
USES= imake shebangfix
SHEBANG_FILES= vncserver
CFLAGS+= -Wno-return-type
USE_GCC= yes
USE_BZIP2= yes
@ -61,11 +62,11 @@ IGNORE= vnc has already been installed, please uninstall it first
post-patch:
.for file in vncviewer/Imakefile Xvnc/config/cf/vnclibs.def
@${PERL} -pi -e "s,%%LOCALBASE%%,${PREFIX},g" ${WRKSRC}/${file}
@${REINPLACE_CMD} -i '' -e "s|%%LOCALBASE%%|${PREFIX}|g" ${WRKSRC}/${file}
.endfor
@${PERL} -pi -e "s,/usr/local/vnc/classes,${DATADIR}/classes,g ; \
s,^#!/usr/bin/perl,#!${PERL},g" ${WRKSRC}/vncserver
@${PERL} -pi -e "s,%%CC%%,${CC},g ; \
@${REINPLACE_CMD} -i '' -e "s|/usr/local/vnc/classes|${DATADIR}/classes|g" \
${WRKSRC}/vncserver
@${REINPLACE_CMD} -i '' -e "s|%%CC%%|${CC}|g ; \
s|%%CFLAGS%%|${CFLAGS}|g" ${WRKSRC}/Xvnc/config/cf/FreeBSD.cf
do-install:

View File

@ -1,9 +1,5 @@
# New ports collection makefile for: tridiavnc
# Date created: 14 June 2001
# Whom: dwcjr
#
# Created by: dwcjr
# $FreeBSD$
#
PORTNAME= tridiavnc
PORTVERSION= 1.4
@ -21,7 +17,8 @@ LICENSE= GPLv2
USE_PERL5= yes
WRKSRC= ${WRKDIR}/unix/vnc_unixsrc
USES= imake
USES= imake shebangfix
SHEBANG_FILES= vncserver
USE_XORG= ice sm x11 xaw xext xmu xt xpm
ALL_TARGET= World
NO_INSTALL_MANPAGES= yes
@ -47,10 +44,10 @@ PLIST_SUB+= XVNC=""
post-patch:
.for file in vncviewer/Imakefile Xvnc/config/cf/vnclibs.def Xvnc/config/cf/Imake.tmpl
@${PERL} -pi -e "s,%%PREFIX%%,${PREFIX},g" ${WRKSRC}/${file}
${REINPLACE_CMD} -i '' -e 's|%%PREFIX%%|${PREFIX}|' ${WRKSRC}/${file}
.endfor
@${PERL} -pi -e "s,/usr/local/vnc/classes,${DATADIR}/classes,g ; \
s,^#!/usr/bin/perl,#!${PERL},g" ${WRKSRC}/vncserver
${REINPLACE_CMD} -i '' -e 's|/usr/local/vnc/classes|${DATADIR}/classes|' \
${WRKSRC}/vncserver
# We have to frob a few things, and we want our own permissions, so it's easier
# to do the install ourselves.

View File

@ -17,7 +17,4 @@ PERL_CONFIGURE= yes
MAN3= News::Newsrc.3
pre-patch:
@${PERL} -pi -e '$$_ = "" if /^use 5.6/' ${WRKSRC}/Newsrc.pm
.include <bsd.port.mk>

View File

@ -1,9 +1,5 @@
# New ports collection makefile for: portcheckout
# Date created: 1 November 1998
# Whom: wosch
#
# Created by: wosch
# $FreeBSD$
#
PORTNAME= portcheckout
PORTVERSION= 2.0
@ -15,11 +11,10 @@ MAINTAINER= wosch@FreeBSD.org
COMMENT= Checkout and build ports and all depending ports
USE_PERL5= yes
USES= shebangfix
SHEBANG_FILES= portcheckout.pl
MAN1= portcheckout.1
MANCOMPRESSED= maybe
PLIST_FILES= bin/portcheckout
post-patch:
${PERL} -pi -e 's^\#\!${PREFIX}/bin/perl^#!${PERL5}^' ${WRKSRC}/portcheckout.pl
.include <bsd.port.mk>

View File

@ -18,11 +18,11 @@ NO_WRKSUBDIR= yes
PLIST= ${WRKDIR}/pkg-plist
USE_PERL5_BUILD=yes
USE_ZIP= yes
USE_DOS2UNIX= yes
post-extract:
${RM} ${WRKDIR}/*exe
${PERL} -pi -e "s:\r::g" ${WRKDIR}/*
${PERL} -pi -e "s:ommited:omitted:g" ${WRKDIR}/util.c
${REINPLACE_CMD} -i '' -e 's|ommited|omitted|' ${WRKDIR}/util.c
do-build:
cd ${WRKDIR} && ${CC} ${CFLAGS} -DMPU8086 *.c -o lc_CLI

View File

@ -1,9 +1,5 @@
# New ports collection makefile for: p5-Digest-MD5-M4p
# Date created: 27 June 2004
# Whom: Lars Thegler <lth@FreeBSD.org>
#
# Created by: Lars Thegler <lth@FreeBSD.org>
# $FreeBSD$
#
PORTNAME= Digest-MD5-M4p
PORTVERSION= 0.01
@ -19,7 +15,4 @@ PERL_CONFIGURE= yes
MAN3= Digest::MD5::M4p.3
post-extract:
@${PERL} -pi -e 's/\r//g' ${WRKSRC}/M4p.xs
.include <bsd.port.mk>

View File

@ -1,10 +1,5 @@
# ex:ts=8
# Ports collection makefile for: sig2dot
# Date created: Aug 8, 2002
# Whom: ijliao
#
# Created by: ijliao
# $FreeBSD$
#
PORTNAME= sig2dot
PORTVERSION= 0.35
@ -25,9 +20,8 @@ EXTRACT_BEFORE_ARGS=
EXTRACT_AFTER_ARGS= ${WRKDIR}
NO_WRKSUBDIR= yes
NO_BUILD= yes
post-patch:
@${PERL} -pi -e "s|/usr/bin/perl|${PERL}|g" ${WRKSRC}/sig2dot.pl
USES= shebangfix
SHEBANG_FILES= sig2dot.pl
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/sig2dot.pl ${PREFIX}/bin/sig2dot

View File

@ -12,10 +12,8 @@ COMMENT= A Snort reporting tool that can produce text or HTML from logs
USE_PERL5= yes
MAN1= snort-rep.1
post-patch:
@${PERL} -pi -e "s|#!/usr/bin/perl|#!${PERL}|" \
${WRKSRC}/snort-rep ${WRKSRC}/snort-rep-mail
USES= shebangfix
SHEBANG_FILES= snort-rep snort-rep-mail
do-build:
cd ${BUILD_WRKSRC} ; pod2man --lax snort-rep > snort-rep.1

View File

@ -23,8 +23,8 @@ post-extract:
@ (cd ${WRKDIR}; tar xpf T1.2.tar)
post-patch:
@${PERL} -pi -e 's|/secureplace/bin|${PREFIX}/bin|g;' \
-e 's|/usr/man|${PREFIX}/man|g;' ${WRKSRC}/Makefile
@${REINPLACE_CMD} -i '' -e 's|/secureplace/bin|${PREFIX}/bin|' \
-e 's|/usr/man|${PREFIX}/man|' ${WRKSRC}/Makefile
${FIND} ${WRKSRC} -type f | ${XARGS} ${REINPLACE_CMD} -e \
's|bs_ntohl|ntohl|g;s|bs_htonl|htonl|g'

View File

@ -1,9 +1,5 @@
# New ports collection makefile for: colorize
# Date created: 12 June 2001
# Whom: petef@FreeBSD.org
#
# Created by: petef@FreeBSD.org
# $FreeBSD$
#
PORTNAME= colorize
PORTVERSION= 0.3.4
@ -22,13 +18,15 @@ WRKSRC= ${WRKDIR}/${DISTNAME:S/_/-/}
NO_BUILD= yes
USE_PERL5= yes
SUB_FILES= pkg-message
USES= shebangfix
SHEBANG_FILES= colorize
MAN1= colorize.1
MANCOMPRESSED= yes
post-patch:
@${PERL} -pi -e "s|/etc/colorizerc|${PREFIX}/etc/colorizerc|; \
s|#!/usr/bin/perl|#!${PERL}|g" ${WRKSRC}/colorize
@${REINPLACE_CMD} -i '' -e 's|/etc/colorizerc|${PREFIX}/etc/colorizerc|' \
${WRKSRC}/colorize
do-install:
@${INSTALL_SCRIPT} ${WRKSRC}/colorize ${PREFIX}/bin