mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 04:00:05 +02:00
module_build: bump version, add tests, cleanup
Some tests are broken because it doesn't find a compiler (adding cmd:gcc to TEST_REQUIRES isn't sufficient it seems, and it would require $secondaryArchSuffix which isn't available for any arch recipes).
This commit is contained in:
@@ -8,9 +8,9 @@ very cross-platform way."
|
||||
HOMEPAGE="https://metacpan.org/pod/distribution/Module-Build/lib/Module/Build.pm"
|
||||
COPYRIGHT="2001-2006 Ken Williams"
|
||||
LICENSE="Artistic"
|
||||
REVISION="2"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://cpan.metacpan.org/authors/id/L/LE/LEONT/Module-Build-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="1fe491a6cda914b01bc8e592faa2b5404e9f35915ca15322f8f2a8d8f9008c18"
|
||||
CHECKSUM_SHA256="66aeac6127418be5e471ead3744648c766bd01482825c5b66652675f2bc86a8f"
|
||||
SOURCE_DIR="Module-Build-$portVersion"
|
||||
|
||||
ARCHITECTURES="any"
|
||||
@@ -20,6 +20,7 @@ PROVIDES="
|
||||
cmd:config_data
|
||||
"
|
||||
REQUIRES="
|
||||
haiku
|
||||
vendor_perl
|
||||
"
|
||||
|
||||
@@ -29,6 +30,10 @@ BUILD_REQUIRES="
|
||||
BUILD_PREREQUIRES="
|
||||
"
|
||||
|
||||
TEST_REQUIRES="
|
||||
cmd:make
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
export PERL_MM_USE_DEFAULT=1 # Don't ask questions and use the default values
|
||||
@@ -38,7 +43,12 @@ BUILD()
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
./Build install --installdirs vendor
|
||||
./Build 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()
|
||||
Reference in New Issue
Block a user