summaryrefslogtreecommitdiffstats
path: root/editors
diff options
context:
space:
mode:
authorijliao <ijliao@FreeBSD.org>2002-06-21 15:52:35 +0000
committerijliao <ijliao@FreeBSD.org>2002-06-21 15:52:35 +0000
commit41375a7fa3ba02e9cf4d8448e52eb7e6aaf3a4ed (patch)
tree9b2d8b8ded963952c33061446db191c200e97854 /editors
parentc0abd785464496b58bf62d2eee5e0dfa620721cd (diff)
downloadFreeBSD-ports-41375a7fa3ba02e9cf4d8448e52eb7e6aaf3a4ed.zip
FreeBSD-ports-41375a7fa3ba02e9cf4d8448e52eb7e6aaf3a4ed.tar.gz
Replace ${PERL} with ${REINPLACE_CMD}
PR: 39591 Submitted by: Oliver Braun <obraun@informatik.unibw-muenchen.de>
Diffstat (limited to 'editors')
-rw-r--r--editors/beav/Makefile7
-rw-r--r--editors/elvis/Makefile3
-rw-r--r--editors/em/Makefile3
-rw-r--r--editors/gmanedit/Makefile10
-rw-r--r--editors/lfhex/Makefile3
-rw-r--r--editors/poedit/Makefile9
-rw-r--r--editors/tamago-emacs21/Makefile3
-rw-r--r--editors/tamago/Makefile3
-rw-r--r--editors/ted/Makefile3
-rw-r--r--editors/uemacs/Makefile3
10 files changed, 29 insertions, 18 deletions
diff --git a/editors/beav/Makefile b/editors/beav/Makefile
index 4305b51..c644e7e 100644
--- a/editors/beav/Makefile
+++ b/editors/beav/Makefile
@@ -15,15 +15,16 @@ MAINTAINER= ports@FreeBSD.org
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:R}
+USE_REINPLACE= yes
ALL_TARGET= beav
MAN1= beav.1
post-patch:
- @${PERL} -pi -e 's|^CFLAGS=|CFLAGS+=-DUNIX -DBSD #|g ; \
+ @${REINPLACE_CMD} -e 's|^CFLAGS=|CFLAGS+=-DUNIX -DBSD #|g ; \
s|^CC=|CC?=|g ; \
- s|^\(|\$$\(|g' ${WRKSRC}/Makefile
- @${PERL} -pi -e 's|/usr/doc/beav|${DOCSDIR}|g' ${WRKSRC}/beav.1
+ s|^(|\$$(|g' ${WRKSRC}/Makefile
+ @${REINPLACE_CMD} -e 's|/usr/doc/beav|${DOCSDIR}|g' ${WRKSRC}/beav.1
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/beav ${PREFIX}/bin/beav
diff --git a/editors/elvis/Makefile b/editors/elvis/Makefile
index 949b2ef..fd18643 100644
--- a/editors/elvis/Makefile
+++ b/editors/elvis/Makefile
@@ -15,6 +15,7 @@ DISTNAME= ${PORTNAME}-2.1_4
MAINTAINER= ports@FreeBSD.org
+USE_REINPLACE= yes
HAS_CONFIGURE= yes
CONFIGURE_ARGS= --bindir=${PREFIX}/bin --datadir=${PREFIX}/share/elvis
MAN1= elvis.1 elvtags.1 ref.1
@@ -30,7 +31,7 @@ pre-fetch:
.endif
pre-configure:
- @${PERL} -pi -e 's|%%X11BASE%%|${X11BASE}|g' ${WRKSRC}/configure
+ @${REINPLACE_CMD} -e 's|%%X11BASE%%|${X11BASE}|g' ${WRKSRC}/configure
do-install:
.for file in elvis elvtags ref
diff --git a/editors/em/Makefile b/editors/em/Makefile
index 45ffd86..a215b70 100644
--- a/editors/em/Makefile
+++ b/editors/em/Makefile
@@ -14,10 +14,11 @@ DISTNAME= ${PORTNAME}-${PORTVERSION}-lt
MAINTAINER= ports@FreeBSD.org
+USE_REINPLACE= yes
MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}" DEFINES=""
pre-patch:
- @${PERL} -pi -e 's|/usr/local|${PREFIX}|g' ${WRKSRC}/epath.h
+ @${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|g' ${WRKSRC}/epath.h
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/em ${PREFIX}/bin/em
diff --git a/editors/gmanedit/Makefile b/editors/gmanedit/Makefile
index d7ddc38..ba80cec 100644
--- a/editors/gmanedit/Makefile
+++ b/editors/gmanedit/Makefile
@@ -14,6 +14,7 @@ MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= ports@FreeBSD.org
+USE_REINPLACE= yes
USE_BZIP2= yes
USE_X_PREFIX= yes
USE_GMAKE= yes
@@ -28,10 +29,11 @@ post-extract:
@${RM} -rf ${WRKSRC}/config.cache
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 \
- 's|\$\(datadir\)/gnome/|\$\(datadir\)/|g ; \
- s|\$\(datadir\)/locale|\$\(prefix\)/share/locale|g'
+ @find ${WRKSRC} -name "Makefile.in" | xargs ${REINPLACE_CMD} -e \
+ 's|\$(datadir)/gnome/|\$(datadir)/|g'
+ @find ${WRKSRC} -name "Makefile.in" | xargs ${REINPLACE_CMD} -e \
+ 's|\$(datadir)/locale|\$(prefix)/share/locale|g'
.include <bsd.port.mk>
diff --git a/editors/lfhex/Makefile b/editors/lfhex/Makefile
index 895a49a..8eae840 100644
--- a/editors/lfhex/Makefile
+++ b/editors/lfhex/Makefile
@@ -15,13 +15,14 @@ MAINTAINER= ports@FreeBSD.org
LIB_DEPENDS= gnugetopt:${PORTSDIR}/devel/libgnugetopt
+USE_REINPLACE= yes
USE_QT_VER= 2
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-qt-moc=${MOC}
USE_GMAKE= yes
post-patch:
- @${PERL} -pi -e "s,%%LOCALBASE%%,${LOCALBASE},g ; \
+ @${REINPLACE_CMD} -e "s,%%LOCALBASE%%,${LOCALBASE},g ; \
s,%%X11BASE%%,${X11BASE},g" ${WRKSRC}/src/Makefile.in
.include <bsd.port.mk>
diff --git a/editors/poedit/Makefile b/editors/poedit/Makefile
index a941d5a..cbb8d2d 100644
--- a/editors/poedit/Makefile
+++ b/editors/poedit/Makefile
@@ -23,6 +23,7 @@ LIB_DEPENDS= intl.2:${PORTSDIR}/devel/gettext \
db3:${PORTSDIR}/databases/db3
PATCH_DIST_ARGS= -d ${PATCH_WRKSRC} -E ${PATCH_DIST_STRIP} -p1
+USE_REINPLACE= yes
USE_X_PREFIX= yes
WANT_GNOME= yes
GNU_CONFIGURE= yes
@@ -42,10 +43,10 @@ CONFIGURE_ARGS+= --without-gnome
.endif
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 \
- 's|\$\(datadir\)/gnome/|\$\(datadir\)/|g ; \
- s|\$\(datadir\)/locale|\$\(prefix\)/share/locale|g'
+ @${FIND} ${WRKSRC} -name "Makefile.in*" | ${XARGS} ${REINPLACE_CMD} -e \
+ 's|\$$(datadir)/gnome/|\$$(datadir)/|g ; \
+ s|\$$(datadir)/locale|\$$(prefix)/share/locale|g'
.include <bsd.port.post.mk>
diff --git a/editors/tamago-emacs21/Makefile b/editors/tamago-emacs21/Makefile
index 374bfd11..e642ee3 100644
--- a/editors/tamago-emacs21/Makefile
+++ b/editors/tamago-emacs21/Makefile
@@ -22,6 +22,7 @@ MAINTAINER= ports@FreeBSD.org
BUILD_DEPENDS= emacs-${EMACS_VER}:${PORTSDIR}/editors/${EMACS_PORT_NAME}
RUN_DEPENDS= emacs-${EMACS_VER}:${PORTSDIR}/editors/${EMACS_PORT_NAME}
+USE_REINPLACE= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
@@ -31,7 +32,7 @@ ELISPDIR= ${PREFIX}/${EMACS_LIBDIR_WITH_VER}/site-lisp
PLIST_SUB= ELISPDIR="${EMACS_LIBDIR_WITH_VER}/site-lisp"
pre-configure:
- @${PERL} -pi -e 's|emacs/site-lisp|${EMACS_NAME}/${EMACS_VER}/site-lisp|g' \
+ @${REINPLACE_CMD} -e 's|emacs/site-lisp|${EMACS_NAME}/${EMACS_VER}/site-lisp|g' \
${WRKSRC}/configure
.include <bsd.port.mk>
diff --git a/editors/tamago/Makefile b/editors/tamago/Makefile
index 374bfd11..e642ee3 100644
--- a/editors/tamago/Makefile
+++ b/editors/tamago/Makefile
@@ -22,6 +22,7 @@ MAINTAINER= ports@FreeBSD.org
BUILD_DEPENDS= emacs-${EMACS_VER}:${PORTSDIR}/editors/${EMACS_PORT_NAME}
RUN_DEPENDS= emacs-${EMACS_VER}:${PORTSDIR}/editors/${EMACS_PORT_NAME}
+USE_REINPLACE= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
@@ -31,7 +32,7 @@ ELISPDIR= ${PREFIX}/${EMACS_LIBDIR_WITH_VER}/site-lisp
PLIST_SUB= ELISPDIR="${EMACS_LIBDIR_WITH_VER}/site-lisp"
pre-configure:
- @${PERL} -pi -e 's|emacs/site-lisp|${EMACS_NAME}/${EMACS_VER}/site-lisp|g' \
+ @${REINPLACE_CMD} -e 's|emacs/site-lisp|${EMACS_NAME}/${EMACS_VER}/site-lisp|g' \
${WRKSRC}/configure
.include <bsd.port.mk>
diff --git a/editors/ted/Makefile b/editors/ted/Makefile
index 868d172..0c0cc4a 100644
--- a/editors/ted/Makefile
+++ b/editors/ted/Makefile
@@ -20,6 +20,7 @@ LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png \
WRKSRC= ${WRKDIR}/Ted-${PORTVERSION}
+USE_REINPLACE= yes
USE_X_PREFIX= yes
USE_MOTIF= yes
GNU_CONFIGURE= yes
@@ -41,7 +42,7 @@ post-patch:
-e 's,/usr/local/ind,${INDDIR},' \
-e 's,/usr/local/info,${INFODIR},' \
Ted.ad.sample >Ted
- ${PERL} -pi -e 's|/usr/apps|${LOCALBASE}|g' ${WRKSRC}/bitmap/configure
+ ${REINPLACE_CMD} -e 's|/usr/apps|${LOCALBASE}|g' ${WRKSRC}/bitmap/configure
post-configure:
.for dir in appFrame appUtil bitmap ind libreg
diff --git a/editors/uemacs/Makefile b/editors/uemacs/Makefile
index 720bd416..f9658e0 100644
--- a/editors/uemacs/Makefile
+++ b/editors/uemacs/Makefile
@@ -13,11 +13,12 @@ DISTNAME= ue400dev
MAINTAINER= ports@FreeBSD.org
+USE_REINPLACE= yes
NO_WRKSUBDIR= yes
USE_ZIP= yes
EXTRACT_BEFORE_ARGS= -Laq
post-patch:
- @${PERL} -pi -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/src/*.c
+ @${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/src/*.c
.include <bsd.port.mk>
OpenPOWER on IntegriCloud