mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
63 lines
1.2 KiB
Bash
63 lines
1.2 KiB
Bash
SUMMARY="Routines for manipulating stashes"
|
|
DESCRIPTION="Manipulating stashes (Perl's symbol tables) is occasionally necessary, but \
|
|
incredibly messy, and easy to get wrong. This module hides all of that behind a simple API."
|
|
HOMEPAGE="https://metacpan.org/pod/Package::Stash"
|
|
COPYRIGHT="2022 by Jesse Luehrs"
|
|
LICENSE="Artistic"
|
|
REVISION="1"
|
|
SOURCE_URI="https://cpan.metacpan.org/authors/id/E/ET/ETHER/Package-Stash-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="5a9722c6d9cb29ee133e5f7b08a5362762a0b5633ff5170642a5b0686e95e066"
|
|
SOURCE_DIR="Package-Stash-$portVersion"
|
|
|
|
ARCHITECTURES="any"
|
|
|
|
PROVIDES="
|
|
package_stash = $portVersion
|
|
cmd:package_stash_conflicts
|
|
"
|
|
REQUIRES="
|
|
haiku
|
|
dist_checkconflicts
|
|
module_implementation
|
|
package_stash_xs
|
|
vendor_perl
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku_devel
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:make
|
|
cmd:perl
|
|
"
|
|
|
|
TEST_REQUIRES="
|
|
cpan_meta_check
|
|
dist_checkconflicts
|
|
module_implementation
|
|
package_stash_xs
|
|
test_fatal
|
|
test_needs
|
|
variable_magic
|
|
"
|
|
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
|
|
}
|