diff options
author | Patrick Li <pat@FreeBSD.org> | 2002-06-23 20:29:01 +0000 |
---|---|---|
committer | Patrick Li <pat@FreeBSD.org> | 2002-06-23 20:29:01 +0000 |
commit | 850379f68078a94d9766eaf2c890eac8479551e1 (patch) | |
tree | f7b7a328db9fec33a421566ba08f399a8d60f1b6 | |
parent | 20ac02a96c38b585dc00957bad7fed485f9e40ec (diff) | |
download | ports-850379f68078a94d9766eaf2c890eac8479551e1.tar.gz ports-850379f68078a94d9766eaf2c890eac8479551e1.zip |
PERL -> REINPLACE_CMD
PR: ports/39731, ports/39732, ports/39733, ports/39734, ports/39735
ports/39736, ports/39737, ports/39738, ports/39739 ports/39740
Submitted by: Scott Flatman <sf@dsinw.com>
Notes
Notes:
svn path=/head/; revision=61837
-rw-r--r-- | shells/flash/Makefile | 3 | ||||
-rw-r--r-- | shells/perlsh/Makefile | 7 | ||||
-rw-r--r-- | shells/psh/Makefile | 7 | ||||
-rw-r--r-- | sysutils/battstat-applet/Makefile | 5 | ||||
-rw-r--r-- | sysutils/e2fsprogs/Makefile | 3 | ||||
-rw-r--r-- | sysutils/gfslicer/Makefile | 5 | ||||
-rw-r--r-- | sysutils/httplog/Makefile | 5 | ||||
-rw-r--r-- | sysutils/logtool-devel/Makefile | 3 | ||||
-rw-r--r-- | sysutils/logtool/Makefile | 3 | ||||
-rw-r--r-- | sysutils/sloth/Makefile | 3 | ||||
-rw-r--r-- | sysutils/ttyload/Makefile | 3 | ||||
-rw-r--r-- | sysutils/wmmount/Makefile | 3 |
12 files changed, 31 insertions, 19 deletions
diff --git a/shells/flash/Makefile b/shells/flash/Makefile index ce3ac0ebc515..9251c0ff671f 100644 --- a/shells/flash/Makefile +++ b/shells/flash/Makefile @@ -22,6 +22,7 @@ LIB_DEPENDS= ncurses.5:${PORTSDIR}/devel/ncurses USE_GMAKE= yes GNU_CONFIGURE= yes +USE_REINPLACE= yes MAN1= flash.1 @@ -39,7 +40,7 @@ CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include -DHAVE_NCURSES_NCURSES_H" \ post-patch: .for file in ${SCRIPT} - @${PERL} -pi -e "s:/usr/slocal:${PREFIX}:g" ${WRKSRC}/orcasetup/${file} + @${REINPLACE_CMD} -e "s:/usr/slocal:${PREFIX}:g" ${WRKSRC}/orcasetup/${file} .endfor do-install: diff --git a/shells/perlsh/Makefile b/shells/perlsh/Makefile index 1138c9ec4c3e..67e24ce4c4e9 100644 --- a/shells/perlsh/Makefile +++ b/shells/perlsh/Makefile @@ -15,6 +15,7 @@ DISTNAME= psh-${PORTVERSION} MAINTAINER= ports@FreeBSD.org PERL_CONFIGURE= yes +USE_REINPLACE= yes MAN3PREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION} MAN3= Psh::Builtins.3 \ @@ -38,9 +39,9 @@ MAN3= Psh::Builtins.3 \ Psh::Util.3 pre-install: - ${PERL} -pi -e "s:/usr/local:${PREFIX}:g" ${WRKSRC}/Makefile; - ${PERL} -pi -e "s:/usr/local/man/man1:${MAN3PREFIX}/man/man1:g" ${WRKSRC}/Makefile; - ${PERL} -pi -e "s:/usr/local/lib/perl5/5.00503/man/man3:${MAN3PREFIX}/man/man3:g" ${WRKSRC}/Makefile; + ${REINPLACE_CMD} -e "s:/usr/local:${PREFIX}:g" ${WRKSRC}/Makefile; + ${REINPLACE_CMD} -e "s:/usr/local/man/man1:${MAN3PREFIX}/man/man1:g" ${WRKSRC}/Makefile; + ${REINPLACE_CMD} -e "s:/usr/local/lib/perl5/5.00503/man/man3:${MAN3PREFIX}/man/man3:g" ${WRKSRC}/Makefile; post-install: @${ECHO} "Updating /etc/shells" diff --git a/shells/psh/Makefile b/shells/psh/Makefile index 1138c9ec4c3e..67e24ce4c4e9 100644 --- a/shells/psh/Makefile +++ b/shells/psh/Makefile @@ -15,6 +15,7 @@ DISTNAME= psh-${PORTVERSION} MAINTAINER= ports@FreeBSD.org PERL_CONFIGURE= yes +USE_REINPLACE= yes MAN3PREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION} MAN3= Psh::Builtins.3 \ @@ -38,9 +39,9 @@ MAN3= Psh::Builtins.3 \ Psh::Util.3 pre-install: - ${PERL} -pi -e "s:/usr/local:${PREFIX}:g" ${WRKSRC}/Makefile; - ${PERL} -pi -e "s:/usr/local/man/man1:${MAN3PREFIX}/man/man1:g" ${WRKSRC}/Makefile; - ${PERL} -pi -e "s:/usr/local/lib/perl5/5.00503/man/man3:${MAN3PREFIX}/man/man3:g" ${WRKSRC}/Makefile; + ${REINPLACE_CMD} -e "s:/usr/local:${PREFIX}:g" ${WRKSRC}/Makefile; + ${REINPLACE_CMD} -e "s:/usr/local/man/man1:${MAN3PREFIX}/man/man1:g" ${WRKSRC}/Makefile; + ${REINPLACE_CMD} -e "s:/usr/local/lib/perl5/5.00503/man/man3:${MAN3PREFIX}/man/man3:g" ${WRKSRC}/Makefile; post-install: @${ECHO} "Updating /etc/shells" diff --git a/sysutils/battstat-applet/Makefile b/sysutils/battstat-applet/Makefile index bd4efc2208a9..99577f9a537b 100644 --- a/sysutils/battstat-applet/Makefile +++ b/sysutils/battstat-applet/Makefile @@ -15,6 +15,7 @@ MAINTAINER= ports@FreeBSD.org WRKSRC= ${WRKDIR}/${DISTNAME} +USE_REINPLACE= yes USE_X_PREFIX= yes USE_GMAKE= yes USE_GNOME= yes @@ -23,9 +24,9 @@ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ LIBS="-L${LOCALBASE}/lib" pre-patch: - @${PERL} -pi -e 's|-lpthread|${PTHREAD_LIBS}|g ; \ + @${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g ; \ s|DATADIRNAME=lib|DATADIRNAME=share|g' ${WRKSRC}/configure - @find ${WRKSRC} -name "Makefile.in" | xargs ${PERL} -pi -e \ + @${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \ 's|\$$\(datadir\)/gnome/|\$$\(datadir\)/|g ; \ s|\$$\(datadir\)/locale|\$$\(prefix\)/share/locale|g' diff --git a/sysutils/e2fsprogs/Makefile b/sysutils/e2fsprogs/Makefile index 6009877c9c47..936380d3b15c 100644 --- a/sysutils/e2fsprogs/Makefile +++ b/sysutils/e2fsprogs/Makefile @@ -13,6 +13,7 @@ MASTER_SITE_SUBDIR= ${PORTNAME} MAINTAINER= ports@FreeBSD.org +USE_REINPLACE= yes USE_GMAKE= yes INSTALLS_SHLIB= yes GNU_CONFIGURE= yes @@ -26,7 +27,7 @@ MAN8= badblocks.8 debugfs.8 dumpe2fs.8 e2fsck.8 e2image.8 e2label.8 fsck.8 \ mke2fs.8 mklost+found.8 resize2fs.8 tune2fs.8 post-patch: - @find ${WRKSRC} -name "*.[ch]" | xargs ${PERL} -pi -e \ + @${FIND} ${WRKSRC} -name "*.[ch]" | ${XARGS} ${REINPLACE_CMD} -e \ 's|LIST_HEAD|LIN_LST_HEAD|g ; \ s|et/com_err.h|com_err.h|g ; s|<malloc.h>|<stdlib.h>|' diff --git a/sysutils/gfslicer/Makefile b/sysutils/gfslicer/Makefile index 7265bcc44e4e..da1cafd06d5c 100644 --- a/sysutils/gfslicer/Makefile +++ b/sysutils/gfslicer/Makefile @@ -15,6 +15,7 @@ MAINTAINER= ports@FreeBSD.org BUILD_DEPENDS= ${LOCALBASE}/share/automake14/automake/install-sh:${PORTSDIR}/devel/automake14 +USE_REINPLACE= yes USE_X_PREFIX= yes USE_GNOME= yes USE_GMAKE= yes @@ -30,11 +31,11 @@ post-extract: @${RM} -f ${WRKSRC}/config.cache post-patch: - @${PERL} -pi -e 's|-lpthread|${PTHREAD_LIBS}|g ; \ + @${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g ; \ s|DATADIRNAME=lib|DATADIRNAME=share|g ; \ s|USE_INCLUDED_LIBINTL=yes|#USE_INCLUDED_LIBINTL=yes|g ; \ s|\$$\(top_builddir\)/intl/libintl.a|-lintl|g' ${WRKSRC}/configure - @${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${PERL} -pi -e \ + @${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \ 's|\$$\(datadir\)/gnome/|\$$\(datadir\)/|g ; \ s|\$$\(datadir\)/locale|\$$\(prefix\)/share/locale|g' diff --git a/sysutils/httplog/Makefile b/sysutils/httplog/Makefile index 6b3fde25a324..a26c094df99d 100644 --- a/sysutils/httplog/Makefile +++ b/sysutils/httplog/Makefile @@ -17,13 +17,14 @@ MAN8= httplog.8 DOCS= ChangeLog README +USE_REINPLACE= yes HAS_CONFIGURE= yes CONFIGURE_ARGS= --prefix=${PREFIX} post-patch: (cd ${WRKSRC} && \ - ${PERL} -pi -e "s@<wait.h>@<sys/wait.h>@" httplog.c && \ - ${PERL} -pi -e \ + ${REINPLACE_CMD} -e "s@<wait.h>@<sys/wait.h>@" httplog.c && \ + ${REINPLACE_CMD} -e \ "s@/var/lib/apache/bin/httplog@${PREFIX}/sbin/httplog@" \ httplog.8) diff --git a/sysutils/logtool-devel/Makefile b/sysutils/logtool-devel/Makefile index 7c388b630e2c..d15e3270245f 100644 --- a/sysutils/logtool-devel/Makefile +++ b/sysutils/logtool-devel/Makefile @@ -15,6 +15,7 @@ MAINTAINER= ports@FreeBSD.org LIB_DEPENDS= gnugetopt.1:${PORTSDIR}/devel/libgnugetopt +USE_REINPLACE= yes GNU_CONFIGURE= yes CONFIGURE_ARGS= --prefix=${PREFIX} --sysconfdir=${PREFIX}/etc/logtool @@ -23,7 +24,7 @@ ALL_TARGET= build MAN1= logtool.1 post-patch: - @${PERL} -pi -e "s,%%CFLAGS%%,${CFLAGS},g" ${WRKSRC}/configure + @${REINPLACE_CMD} -e "s,%%CFLAGS%%,${CFLAGS},g" ${WRKSRC}/configure post-install: ${INSTALL_MAN} ${WRKSRC}/doc/logtool.1 ${PREFIX}/man/man1 diff --git a/sysutils/logtool/Makefile b/sysutils/logtool/Makefile index 7c388b630e2c..d15e3270245f 100644 --- a/sysutils/logtool/Makefile +++ b/sysutils/logtool/Makefile @@ -15,6 +15,7 @@ MAINTAINER= ports@FreeBSD.org LIB_DEPENDS= gnugetopt.1:${PORTSDIR}/devel/libgnugetopt +USE_REINPLACE= yes GNU_CONFIGURE= yes CONFIGURE_ARGS= --prefix=${PREFIX} --sysconfdir=${PREFIX}/etc/logtool @@ -23,7 +24,7 @@ ALL_TARGET= build MAN1= logtool.1 post-patch: - @${PERL} -pi -e "s,%%CFLAGS%%,${CFLAGS},g" ${WRKSRC}/configure + @${REINPLACE_CMD} -e "s,%%CFLAGS%%,${CFLAGS},g" ${WRKSRC}/configure post-install: ${INSTALL_MAN} ${WRKSRC}/doc/logtool.1 ${PREFIX}/man/man1 diff --git a/sysutils/sloth/Makefile b/sysutils/sloth/Makefile index b2c79385ac44..663da5dee3d6 100644 --- a/sysutils/sloth/Makefile +++ b/sysutils/sloth/Makefile @@ -14,11 +14,12 @@ MASTER_SITES= ftp://ftp.namodn.com/pub/projects/ \ MAINTAINER= ports@FreeBSD.org +USE_REINPLACE= yes GNU_CONFIGURE= yes MAN1= sloth.1 post-patch: - @${PERL} -pi -e "s,wait.h,sys/wait.h,g" ${WRKSRC}/configure + @${REINPLACE_CMD} -e "s,wait.h,sys/wait.h,g" ${WRKSRC}/configure .include <bsd.port.mk> diff --git a/sysutils/ttyload/Makefile b/sysutils/ttyload/Makefile index 6f7c2dda5b70..dbe79f68bdf2 100644 --- a/sysutils/ttyload/Makefile +++ b/sysutils/ttyload/Makefile @@ -12,10 +12,11 @@ MASTER_SITES= http://www.daveltd.com/src/util/ttyload/ MAINTAINER= ports@FreeBSD.org +USE_REINPLACE= yes ALL_TARGET= default post-patch: - @${PERL} -pi -e "s,^CC,#CC,g ; \ + @${REINPLACE_CMD} -e "s,^CC,#CC,g ; \ s,^DEBUG,#DEBUG,g ; \ s,^CFLAGS\t=,CFLAGS+=,g" ${WRKSRC}/Makefile diff --git a/sysutils/wmmount/Makefile b/sysutils/wmmount/Makefile index a8d5b42723ce..9f7bc482e0ad 100644 --- a/sysutils/wmmount/Makefile +++ b/sysutils/wmmount/Makefile @@ -18,10 +18,11 @@ LIB_DEPENDS= gnugetopt.1:${PORTSDIR}/devel/libgnugetopt USE_IMAKE= yes USE_XPM= yes +USE_REINPLACE= yes post-patch: .for file in system.wmmount.eg system.wmmount.sh - @${PERL} -pi -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/config/${file} + @${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/config/${file} .endfor .if exists(/etc/fstab) @${SH} ${WRKSRC}/config/system.wmmount.sh > ${WRKSRC}/system.wmmount |