>Number: 47653
>Category: ports
>Synopsis: unPERLify ports/cad
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Wed Jan 29 16:20:15 PST 2003
>Closed-Date:
>Last-Modified:
>Originator: Simon 'portlint' Schubert
>Release: FreeBSD 5.0-CURRENT i386
>Organization:
>Environment:
System: FreeBSD terrorfish.uni.stoert.net 5.0-CURRENT FreeBSD 5.0-CURRENT #43: Thu Jan 23 17:46:13 CET 2003 corecode@terrorfish.uni.stoert.net:/usr/obj/athlon/usr/src/sys/TERRORFISH i386
>Description:
unPERLify
find -> ${FIND}, xargs -> ${XARGS}
>How-To-Repeat:
>Fix:
Index: leocad/Makefile
===================================================================
RCS file: /home/ncvs/ports/cad/leocad/Makefile,v
retrieving revision 1.3
diff -u -r1.3 Makefile
--- leocad/Makefile 25 Nov 2002 02:11:13 -0000 1.3
+++ leocad/Makefile 29 Jan 2003 21:51:31 -0000
@@ -26,6 +26,7 @@
USE_GNOME= gtk12
USE_MESA= yes
USE_X_PREFIX= yes
+USE_REINPLACE= yes
MAKE_ENV+= CXX=${CXX}
@@ -33,7 +34,7 @@
@unzip -q -o ${DISTDIR}/pieces.zip -d ${WRKDIR}/pieces
post-patch:
- @${PERL} -pi -e 's,%%LOCALBASE%%,${LOCALBASE},g; \
+ @${REINPLACE_CMD} -e 's,%%LOCALBASE%%,${LOCALBASE},g; \
s,%%PTHREAD_CFLAGS%%,${PTHREAD_CFLAGS},; \
s,%%PTHREAD_LIBS%%,${PTHREAD_LIBS},' ${WRKSRC}/config.mk
Index: oregano/Makefile
===================================================================
RCS file: /home/ncvs/ports/cad/oregano/Makefile,v
retrieving revision 1.5
diff -u -r1.5 Makefile
--- oregano/Makefile 22 Jan 2002 16:31:58 -0000 1.5
+++ oregano/Makefile 29 Jan 2003 21:55:24 -0000
@@ -14,16 +14,17 @@
USE_GMAKE= yes
USE_X_PREFIX= yes
+USE_REINPLACE= yes
USE_GNOME= yes
GNU_CONFIGURE= yes
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 \
- 's|\$\(datadir\)/gnome/|\$\(datadir\)/|g ; \
- s|\$\(datadir\)/locale|\$\(prefix\)/share/locale|g'
+ @${FIND} ${WRKSRC} -name "Makefile.in*" | ${XARGS} ${REINPLACE_CMD} -e \
+ 's|\(\$$(datadir)/\)gnome/|\1|g ; \
+ s|\$$(datadir)/locale|$$(prefix)/share/locale|g'
.include <bsd.port.mk>
>Release-Note:
>Audit-Trail:
>Unformatted:
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports-bugs" in the body of the message