svn commit: r308260 - head/net-mgmt/p5-Net-IP

Eitan Adler eadler at FreeBSD.org
Tue Dec 4 18:15:11 UTC 2012


Author: eadler
Date: Tue Dec  4 18:15:10 2012
New Revision: 308260
URL: http://svnweb.freebsd.org/changeset/ports/308260

Log:
  Simplify post-patch target
  
  Submitted by:	sunpoet
  Feature safe:	yes

Modified:
  head/net-mgmt/p5-Net-IP/Makefile

Modified: head/net-mgmt/p5-Net-IP/Makefile
==============================================================================
--- head/net-mgmt/p5-Net-IP/Makefile	Tue Dec  4 18:09:53 2012	(r308259)
+++ head/net-mgmt/p5-Net-IP/Makefile	Tue Dec  4 18:15:10 2012	(r308260)
@@ -18,11 +18,7 @@ post-configure:
 	${PERL} -pi -e 's/-I\S+PERL\S+ //g if m{PERL_DL_NONLAZY}' ${WRKSRC}/Makefile
 
 post-patch:
-	@${CP} ${WRKSRC}/IP.pm ${WRKSRC}/IP.pm.presed
-	@${SED} -e "1853s#\\s+#\s*#g" ${WRKSRC}/IP.pm.presed > \
-		${WRKSRC}/IP.pm
-	@${CP} ${WRKSRC}/ipcount ${WRKSRC}/ipcount.presed
-	@${SED} -e "76s#count#count   = 0#" ${WRKSRC}/ipcount.presed > \
-		${WRKSRC}/ipcount
+	${REINPLACE_CMD} "1853s#\\s+#\s*#g" ${WRKSRC}/IP.pm
+	${REINPLACE_CMD} "76s#count#count   = 0#" ${WRKSRC}/ipcount
 
 .include <bsd.port.mk>


More information about the svn-ports-all mailing list