Patching a perl port

Sergey Skvortsov skv at FreeBSD.org
Wed May 25 13:15:22 PDT 2005


Oliver Lehmann wrote:
> Sergey Skvortsov wrote:
> 
>>post-patch:
>> 	@${FIND} ${WRKSRC} -type f -name "*.orig" | ${XARGS} ${RM}
> 
> our find knows -delete ;)

It's my common pattern named as "do something with file" ;)

Also, I prefer (and humbly suggest) to patch p5-* ports by perl itself to
reduce garbage (avoid cvs Attics, save deficient inodes, ...) in ${FILESDIR}.

For this case:

post-patch:
 	@${PERL} -pi -e 's/very-ugly/regex/' ${WRKSRC}/lib/Smart/Comments.pm

-- 
Sergey Skvortsov
mailto: skv at FreeBSD.org


More information about the freebsd-ports mailing list