SUMMARY="Patches text with given patch" DESCRIPTION="Text::Patch combines source text with given diff (difference) data. Diff data is \ produced by Text::Diff module or by the standard diff utility (man diff, see -u option)." HOMEPAGE="https://metacpan.org/pod/Text::Patch" COPYRIGHT="2007-2010 by Vladi Belperchinov-Shabanski" LICENSE="Artistic" REVISION="3" SOURCE_URI="https://cpan.metacpan.org/authors/id/C/CA/CADE/Text-Patch-$portVersion.tar.gz" CHECKSUM_SHA256="eaf18e61ba6a3e143846a7cc66f08ce58a0c4fbda92acb31aede25cb3b5c3dcc" SOURCE_DIR="Text-Patch-$portVersion" ARCHITECTURES="any" PROVIDES=" text_patch = $portVersion " REQUIRES=" haiku vendor_perl " BUILD_REQUIRES=" haiku_devel text_diff " BUILD_PREREQUIRES=" cmd:make cmd:perl " TEST_REQUIRES=" algorithm_diff " BUILD() { perl Makefile.PL PREFIX=$prefix make } INSTALL() { make pure_install # remove architecture-specific files cd $prefix rm -r $(perl -V:vendorarch | cut -d\' -f2 | cut -d/ -f5-) # cut extracts the quoted string and strips the prefix (which is perl's and not ours) } TEST() { make test }