mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-18 17:50:06 +02:00
61 lines
1.2 KiB
Bash
61 lines
1.2 KiB
Bash
SUMMARY="Provide the stuff missing in List::Util"
|
|
DESCRIPTION="List::SomeUtils provides some trivial but commonly needed functionality on lists \
|
|
which is not going to go into List::Util."
|
|
HOMEPAGE="https://metacpan.org/pod/List::SomeUtils"
|
|
COPYRIGHT="2011 Aaron Crane
|
|
2004 - 2010 by Tassilo von Parseval
|
|
2013 - 2015 by Jens Rehsack
|
|
2022 by Dave Rolsky"
|
|
LICENSE="Artistic"
|
|
REVISION="1"
|
|
SOURCE_URI="https://cpan.metacpan.org/authors/id/D/DR/DROLSKY/List-SomeUtils-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="fab30372e4c67bf5a46062da38d1d0c8756279feada866eb439fa29571a2dc7b"
|
|
SOURCE_DIR="List-SomeUtils-$portVersion"
|
|
|
|
ARCHITECTURES="any"
|
|
|
|
PROVIDES="
|
|
list_someutils = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku
|
|
list_someutils_xs
|
|
module_implementation
|
|
vendor_perl
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku_devel
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:make
|
|
cmd:perl
|
|
"
|
|
|
|
TEST_REQUIRES="
|
|
list_someutils_xs
|
|
module_implementation
|
|
test_leaktrace
|
|
"
|
|
|
|
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
|
|
}
|