mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 03:30:05 +02:00
file_sharedir: add tests, cleanup
Some tests are broken due to missing dependencies.
This commit is contained in:
@@ -5,7 +5,7 @@ gets a little tricky, and make it more available to the larger Perl community."
|
||||
HOMEPAGE="https://metacpan.org/pod/File::ShareDir"
|
||||
COPYRIGHT="2005 - 2011 Adam Kennedy"
|
||||
LICENSE="Artistic"
|
||||
REVISION="2"
|
||||
REVISION="3"
|
||||
SOURCE_URI="https://cpan.metacpan.org/authors/id/R/RE/REHSACK/File-ShareDir-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="3bb2a20ba35df958dc0a4f2306fc05d903d8b8c4de3c8beefce17739d281c958"
|
||||
SOURCE_DIR="File-ShareDir-$portVersion"
|
||||
@@ -18,6 +18,7 @@ PROVIDES="
|
||||
REQUIRES="
|
||||
haiku
|
||||
class_inspector
|
||||
# file_sharedir_install # missing (tests check for this)
|
||||
vendor_perl
|
||||
"
|
||||
|
||||
@@ -29,6 +30,11 @@ BUILD_PREREQUIRES="
|
||||
cmd:perl
|
||||
"
|
||||
|
||||
TEST_REQUIRES="
|
||||
class_inspector
|
||||
# file_sharedir_install # missing
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
perl Makefile.PL PREFIX=$prefix
|
||||
@@ -37,5 +43,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