mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
text_patch: add tests, cleanup
Tests require algorithm_diff (see previous commit).
This commit is contained in:
@@ -1,12 +1,10 @@
|
||||
SUMMARY="Get information about a class and its structure"
|
||||
DESCRIPTION="Class::Inspector allows you to get information about a loaded class. Most or all of \
|
||||
this information can be found in other ways, but they aren't always very friendly, and usually \
|
||||
involve a relatively high level of Perl wizardry, or strange and unusual looking code. \
|
||||
Class::Inspector attempts to provide an easier, more friendly interface to this information."
|
||||
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="2002-2019 by Adam Kennedy"
|
||||
COPYRIGHT="2007-2010 by Vladi Belperchinov-Shabanski"
|
||||
LICENSE="Artistic"
|
||||
REVISION="1"
|
||||
REVISION="2"
|
||||
SOURCE_URI="https://cpan.metacpan.org/authors/id/C/CA/CADE/Text-Patch-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="eaf18e61ba6a3e143846a7cc66f08ce58a0c4fbda92acb31aede25cb3b5c3dcc"
|
||||
SOURCE_DIR="Text-Patch-$portVersion"
|
||||
@@ -30,6 +28,10 @@ BUILD_PREREQUIRES="
|
||||
cmd:perl
|
||||
"
|
||||
|
||||
TEST_REQUIRES="
|
||||
algorithm_diff
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
perl Makefile.PL PREFIX=$prefix
|
||||
@@ -38,5 +40,15 @@ BUILD()
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install DESTDIR="${DESTDIR}"
|
||||
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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user