From 57a028c2fe415f112fab9d7c667f0d402bb98004 Mon Sep 17 00:00:00 2001 From: Akinori MUSHA Date: Sun, 3 Nov 2002 23:56:03 +0000 Subject: USE_REINPLACE instead of perl. --- textproc/gdome2/Makefile | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) (limited to 'textproc') diff --git a/textproc/gdome2/Makefile b/textproc/gdome2/Makefile index 772015a84d74..2201a5105dde 100644 --- a/textproc/gdome2/Makefile +++ b/textproc/gdome2/Makefile @@ -16,6 +16,7 @@ LIB_DEPENDS= xml2.5:${PORTSDIR}/textproc/libxml2 USE_GNOMENG= yes USE_GNOME= glib12 +USE_REINPLACE= yes USE_LIBTOOL= yes CONFIGURE_ENV= GLIB_CONFIG="${GLIB_CONFIG}" CPPFLAGS="-I${LOCALBASE}/include" PLIST_SUB= DOCSDIR="share/doc/${DISTNAME}" @@ -24,15 +25,19 @@ INSTALLS_SHLIB= yes MAN1= gdome-config.1 post-patch: - @${PERL} -i -pe 's,^(HTML_DIR *= *).*,$$1\$$(prefix)/share/doc,' ${WRKSRC}/gtk-doc/Makefile.in - @${FIND} ${WRKSRC} -type f | ${XARGS} ${PERL} -i -pe \ - 's,,,; \ - s,,,; \ - s,,,; \ - s,,,; \ - s,,,; \ - s,,,; \ - s,,,; \ - s,,,' + @${REINPLACE_CMD} -E -e \ + 's,^(HTML_DIR *= *).*,\1\$$(prefix)/share/doc,' \ + ${WRKSRC}/gtk-doc/Makefile.in + @${FIND} ${WRKSRC} -type f -and \ + '(' -name '*.[ch]' -or -name '*.xml' ')' | \ + ${XARGS} ${REINPLACE_CMD} -e ' \ + s,,,; \ + s,,,; \ + s,,,; \ + s,,,; \ + s,,,; \ + s,,,; \ + s,,,; \ + s,,,' .include -- cgit v1.2.3