From corecode@corecode.ath.cx  Wed Jan 29 16:14:22 2003
Return-Path: <corecode@corecode.ath.cx>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id DFE4537B401
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 29 Jan 2003 16:14:22 -0800 (PST)
Received: from mailout05.sul.t-online.com (mailout05.sul.t-online.com [194.25.134.82])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 0383D43F3F
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 29 Jan 2003 16:14:22 -0800 (PST)
	(envelope-from corecode@corecode.ath.cx)
Received: from fwd07.sul.t-online.de 
	by mailout05.sul.t-online.com with smtp 
	id 18e2LV-0007kR-05; Thu, 30 Jan 2003 01:14:21 +0100
Received: from pride.uni.stoert.net (320050403952-0001@[80.128.123.145]) by fmrl07.sul.t-online.com
	with esmtp id 18e2LO-18NQ3sC; Thu, 30 Jan 2003 01:14:14 +0100
Received: from terrorfish.uni.stoert.net (terrorfish.uni.stoert.net [10.150.180.178])
	by pride.uni.stoert.net (Postfix) with ESMTP
	id 621D312F05D; Thu, 30 Jan 2003 01:14:12 +0100 (CET)
Received: from terrorfish.uni.stoert.net (localhost [127.0.0.1])
	by terrorfish.uni.stoert.net (8.12.6/8.12.6) with ESMTP id h0U0Ex2g013420;
	Thu, 30 Jan 2003 01:14:59 +0100 (CET)
	(envelope-from corecode@terrorfish.uni.stoert.net)
Received: (from corecode@localhost)
	by terrorfish.uni.stoert.net (8.12.6/8.12.6/Submit) id h0U0EwYo013419;
	Thu, 30 Jan 2003 01:14:58 +0100 (CET)
	(envelope-from corecode)
Message-Id: <200301300014.h0U0EwYo013419@terrorfish.uni.stoert.net>
Date: Thu, 30 Jan 2003 01:14:58 +0100 (CET)
From: "Simon 'portlint' Schubert" <corecode@corecode.ath.cx>
Reply-To: "Simon 'portlint' Schubert" <corecode@corecode.ath.cx>
To: FreeBSD-gnats-submit@freebsd.org
Cc: anders@hack.org, dyeske@yahoo.com
Subject: unPERLify ports/cad
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         47653
>Category:       ports
>Synopsis:       unPERLify ports/cad
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jan 29 16:20:15 PST 2003
>Closed-Date:    Sun Aug 03 11:55:51 PDT 2003
>Last-Modified:  Sun Aug 03 11:55:51 PDT 2003
>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:
State-Changed-From-To: open->closed 
State-Changed-By: oliver 
State-Changed-When: Sun Aug 3 11:55:41 PDT 2003 
State-Changed-Why:  
Committed, Thanks 

http://www.freebsd.org/cgi/query-pr.cgi?pr=47653 
>Unformatted:
