mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 11:40:06 +02:00
54 lines
1.4 KiB
Bash
54 lines
1.4 KiB
Bash
SUMMARY="An exporter with the features of Sub::Exporter but only core dependencies"
|
|
DESCRIPTION="Exporter::Tiny supports many of Sub::Exporter's external-facing features including \
|
|
renaming imported functions with the -as, -prefix and -suffix options; explicit destinations with \
|
|
the into option; and alternative installers with the installer option. But it's written in only \
|
|
about 40% as many lines of code and with zero non-core dependencies.
|
|
Its internal-facing interface is closer to Exporter.pm, with configuration done through the \
|
|
@EXPORT, @EXPORT_OK and %EXPORT_TAGS package variables."
|
|
HOMEPAGE="https://metacpan.org/pod/Exporter::Tiny"
|
|
COPYRIGHT="2013-2014, 2017, 2022-2023 by Toby Inkster"
|
|
LICENSE="Artistic"
|
|
REVISION="1"
|
|
SOURCE_URI="https://cpan.metacpan.org/authors/id/T/TO/TOBYINK/Exporter-Tiny-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="6f295e2cbffb1dbc15bdb9dadc341671c1e0cd2bdf2d312b17526273c322638d"
|
|
SOURCE_DIR="Exporter-Tiny-$portVersion"
|
|
|
|
ARCHITECTURES="any"
|
|
|
|
PROVIDES="
|
|
exporter_tiny = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku
|
|
vendor_perl
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku_devel
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:make
|
|
cmd:perl
|
|
"
|
|
|
|
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
|
|
}
|