mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 03:30:05 +02:00
54 lines
1.4 KiB
Bash
54 lines
1.4 KiB
Bash
SUMMARY="Higher-order list utility functions"
|
|
DESCRIPTION="This module provides a number of list utility functions, all of which take an \
|
|
initial code block to control their behaviour. They are variations on similar core perl or \
|
|
List::Util functions of similar names, but which use the block to control their behaviour. For \
|
|
example, the core Perl function sort takes a list of values and returns them, sorted into order \
|
|
by their string value. The \"sort_by\" function sorts them according to the string value returned \
|
|
by the extra function, when given each value."
|
|
HOMEPAGE="https://metacpan.org/pod/List::UtilsBy"
|
|
COPYRIGHT="2022 by Paul Evans"
|
|
LICENSE="Artistic"
|
|
REVISION="2"
|
|
SOURCE_URI="https://cpan.metacpan.org/authors/id/P/PE/PEVANS/List-UtilsBy-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="fff1281fd469fe982b1a58044becfd970f313bff3a26e1c7b2b3f4c0a5ed71e0"
|
|
SOURCE_DIR="List-UtilsBy-$portVersion"
|
|
|
|
ARCHITECTURES="any"
|
|
|
|
PROVIDES="
|
|
list_utilsby = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku
|
|
vendor_perl
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku_devel
|
|
module_build
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:perl
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
perl Build.PL --prefix $prefix
|
|
./Build
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
./Build 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()
|
|
{
|
|
./Build test
|
|
}
|