![](https://secure.gravatar.com/avatar/df8330968b6df8cd1c1942c5fb4b720c.jpg?s=120&d=mm&r=g)
commit 672a251e643a68145082b1fd3a4bd28c64e2f3cd Author: Danny Rawlins <monster.romster@gmail.com> Date: Tue Oct 22 23:59:16 2019 +1100 p5-text-patch: initial import diff --git a/p5-text-patch/.footprint b/p5-text-patch/.footprint new file mode 100644 index 00000000..16d562c8 --- /dev/null +++ b/p5-text-patch/.footprint @@ -0,0 +1,11 @@ +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/lib/ +drwxr-xr-x root/root usr/lib/perl5/ +drwxr-xr-x root/root usr/lib/perl5/site_perl/ +drwxr-xr-x root/root usr/lib/perl5/site_perl/5.28/ +drwxr-xr-x root/root usr/lib/perl5/site_perl/5.28/Text/ +-r--r--r-- root/root usr/lib/perl5/site_perl/5.28/Text/Patch.pm +drwxr-xr-x root/root usr/share/ +drwxr-xr-x root/root usr/share/man/ +drwxr-xr-x root/root usr/share/man/man3/ +-r--r--r-- root/root usr/share/man/man3/Text::Patch.3pm.gz diff --git a/p5-text-patch/.signature b/p5-text-patch/.signature new file mode 100644 index 00000000..090f9722 --- /dev/null +++ b/p5-text-patch/.signature @@ -0,0 +1,5 @@ +untrusted comment: verify with /etc/ports/contrib.pub +RWSagIOpLGJF34ru/OI6pOoRzyDbp4SDDX8PyD/bsBcrvzw3zbKH2Ah9RS0d2QFL9Ff0OB5w3D1RqZ8Xnyc25uRbM8lDP8gPags= +SHA256 (Pkgfile) = ffde27b0a9c601956a1773d2720d39e4cd9b41f03b4f00358cdd7685c61d9ce3 +SHA256 (.footprint) = d42259dbafd68739c58f8e8db6da23fd078d58491527a3603acb06d64a048a8a +SHA256 (Text-Patch-1.8.tar.gz) = eaf18e61ba6a3e143846a7cc66f08ce58a0c4fbda92acb31aede25cb3b5c3dcc diff --git a/p5-text-patch/Pkgfile b/p5-text-patch/Pkgfile new file mode 100644 index 00000000..49870612 --- /dev/null +++ b/p5-text-patch/Pkgfile @@ -0,0 +1,22 @@ +# Description: Patches text with given patch +# URL: https://metacpan.org/release/Text-Patch +# Maintainer: Danny Rawlins, crux at romster dot me +# Depends on: p5-text-diff + +name=p5-text-patch +_realname=Text-Patch +_author=CADE +version=1.8 +release=1 +source=(https://cpan.metacpan.org/authors/id/${_author::1}/${_author::2}/$_author/$_realname-$version.tar.gz) + +build() { + cd $_realname-$version + + perl Makefile.PL INSTALLDIRS=vendor + make + make DESTDIR="$PKG" install + + find $PKG \( -name '.packlist' -o -name '*.pod' \) -delete + find $PKG -depth -empty -delete +}