mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 11:40:06 +02:00
file_slurp: cleanup, add tests
This commit is contained in:
@@ -5,7 +5,7 @@ contents and to be very efficient. There is also a sub to read in all the files
|
||||
HOMEPAGE="https://metacpan.org/pod/File::Slurp"
|
||||
COPYRIGHT="2003-2022 Uri Guttman"
|
||||
LICENSE="Artistic"
|
||||
REVISION="1"
|
||||
REVISION="2"
|
||||
SOURCE_URI="https://cpan.metacpan.org/authors/id/C/CA/CAPOEIRAB/File-Slurp-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="4c3c21992a9d42be3a79dd74a3c83d27d38057269d65509a2f555ea0fb2bc5b0"
|
||||
SOURCE_DIR="File-Slurp-$portVersion"
|
||||
@@ -36,5 +36,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