PERL -> REINPLACE_CMD

PR:		39262, 39263, 39264, 39265, 39266, 39267
Submitted by:	Oliver Braun <obraun@informatik.unibw-muenchen.de>
This commit is contained in:
Hye-Shik Chang 2002-06-27 13:32:14 +00:00
parent a66ad54130
commit 873be20ff6
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=62101
6 changed files with 17 additions and 10 deletions

View file

@ -34,6 +34,7 @@ CONFIGURE_ARGS+=--nointeractive
.endif
MAKE_ARGS+= OPTIMIZER="" -EOPTIMIZER
USE_REINPLACE= yes
HAS_CONFIGURE= yes
CONFIGURE_ENV= ENVOPTS="${CFLAGS}"
@ -73,7 +74,7 @@ post-install:
.if ${LOCALBASE} != /usr/local
post-patch:
${PERL} -pi -e 's^/usr/local^${LOCALBASE}^g' \
${REINPLACE_CMD} -e 's^/usr/local^${LOCALBASE}^g' \
`find work/hylafax-4.1 -type f -print0 | \
xargs -0 fgrep -l --mmap /usr/local`
.endif

View file

@ -13,13 +13,14 @@ MASTER_SITES= http://www.global-owl.com/ecgi/download/
MAINTAINER= ports@freebsd.org
USE_GMAKE= yes
USE_REINPLACE= yes
INSTALLS_SHLIB= yes
HEADER_FILES= ecgi.h ecgitk.h include/memfile.h
pre-patch:
@${PERL} -pi -e 's,<malloc.h>,<stdlib.h>,' ${WRKSRC}/src/memfile.c
@${REINPLACE_CMD} -e 's,<malloc.h>,<stdlib.h>,' ${WRKSRC}/src/memfile.c
do-install:
@${INSTALL_DATA} ${WRKSRC}/libecgi.a ${PREFIX}/lib

View file

@ -15,10 +15,12 @@ MAINTAINER= ports@freebsd.org
RUN_DEPENDS= wish8.3:${PORTSDIR}/x11-toolkits/tk83
USE_REINPLACE= yes
NO_BUILD= yes
REINPLACE_ARGS= -i.bak -E
post-patch:
@${PERL} -pi \
@${REINPLACE_CMD} \
-e 's,docs\s+"([^"]+)",docs "file:${PREFIX}/share/doc/tkcon/index.html\\n\1",' ${WRKSRC}/tkcon.tcl
do-install:

View file

@ -17,6 +17,7 @@ MAINTAINER= ports@freebsd.org
LIB_DEPENDS= tcl83:${PORTSDIR}/lang/tcl83
WRKSRC= ${WRKDIR}/${DISTNAME}/itcl
USE_REINPLACE= yes
INSTALLS_SHLIB= yes
PKGINSTALL= ${PORTSDIR}/lang/tcl83/pkg-install.tclsh
PKGDEINSTALL= ${PORTSDIR}/lang/tcl83/pkg-deinstall.tclsh
@ -47,7 +48,7 @@ post-extract:
${RM} ${WRKSRC}/pkgIndex.tcl
post-patch:
${PERL} -pi \
${REINPLACE_CMD} \
-e 's,package require Itcl,load [glob \
${WRKSRC}/${ITCL_LIB}.${SHLIB_MAJOR}*],;' \
${WRKSRC}/tests/*.test

View file

@ -18,6 +18,7 @@ MAINTAINER= ports@freebsd.org
LIB_DEPENDS= tk83.1:${PORTSDIR}/x11-toolkits/tk83 \
itcl${MAJOR}${MINOR}.1:${PORTSDIR}/lang/itcl
USE_REINPLACE= yes
WRKSRC= ${WRKDIR}/itcl${MAJOR}.${MINOR}/itk
INSTALLS_SHLIB= yes
MAKE_ENV+= ${PLIST_SUB} \
@ -44,11 +45,11 @@ post-extract:
${RM} ${WRKSRC}/pkgIndex.tcl
post-patch:
${PERL} -pi \
${REINPLACE_CMD} \
-e 's,package require Itk,load \
[glob ${WRKSRC}/${ITK_LIB_FILE}*],;' \
-e 's,return$$,exit,' ${WRKSRC}/tests/*
${PERL} -pi \
${REINPLACE_CMD} \
-e 's,\@itk_LIB_FILE\@,${ITK_LIB_FILE},' \
${WRKSRC}/pkgIndex.tcl.in

View file

@ -18,6 +18,7 @@ LIB_DEPENDS= iconv.3:${PORTSDIR}/converters/libiconv
USE_X_PREFIX= yes
USE_GTK= yes
USE_REINPLACE= yes
WANT_GNOME= yes
GNU_CONFIGURE= yes
CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
@ -40,18 +41,18 @@ CONFIGURE_ARGS+= --without-gnome
.endif
post-patch:
@${PERL} -pi -e 's|gtk-config --prefix|\$$GTK_CONFIG --prefix|g ; \
@${REINPLACE_CMD} -e 's|gtk-config --prefix|\$$GTK_CONFIG --prefix|g ; \
s|libgdk.la|libgdk12.so|g ; \
s|libgdk.so|libgdk12.so|g ; \
s|GDK_DLOPEN_NAME=.*$$|GDK_DLOPEN_NAME="libgdk12.so"|g' \
${WRKSRC}/configure
@find ${WRKSRC} -name "Makefile.in" | xargs ${PERL} -pi -e \
@find ${WRKSRC} -name "Makefile.in" | xargs ${REINPLACE_CMD} -e \
's|src capplet|src \@BUILD_CAPPLET_TRUE\@capplet|g ; \
s|DESTDIR\)\$$\(datadir|DESTDIR\)\$$\(pkgdatadir|g ; \
s|DESTDIR)\$$(datadir|DESTDIR\)\$$\(pkgdatadir|g ; \
s|/gnome/apps/|/apps/|g ; \
s|la_LDFLAGS =.*$$|la_LDFLAGS = -module -avoid-version|g'
.for file in gdkxft_sysinstall.in gdkxft.c generate.pl
@${PERL} -pi -e 's|<regex.h>|<gnuregex.h>|g ; \
@${REINPLACE_CMD} -e 's|<regex.h>|<gnuregex.h>|g ; \
s|gtk-config |${GTK_CONFIG:T} |g' ${WRKSRC}/src/${file}
.endfor