mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 04:00:05 +02:00
sub_exporter_progressive: new perl module recipe
This commit is contained in:
@@ -0,0 +1,56 @@
|
||||
SUMMARY="Only use Sub::Exporter if you need it"
|
||||
DESCRIPTION="Sub::Exporter is an incredibly powerful module, but with that power comes great \
|
||||
responsibility, er- as well as some runtime penalties. This module is a Sub::Exporter wrapper \
|
||||
that will let your users just use Exporter if all they are doing is picking exports, but use \
|
||||
Sub::Exporter if your users try to use Sub::Exporter's more advanced features, like renaming \
|
||||
exports, if they try to use them.
|
||||
|
||||
Note that this module will export @EXPORT, @EXPORT_OK and %EXPORT_TAGS package variables for \
|
||||
Exporter to work. Additionally, if your package uses advanced Sub::Exporter features like \
|
||||
currying, this module will only ever use Sub::Exporter, so you might as well use it directly."
|
||||
HOMEPAGE="https://metacpan.org/pod/Sub::Exporter::Progressive"
|
||||
COPYRIGHT="2016 by Arthur Axel \"fREW\" Schmidt"
|
||||
LICENSE="Artistic"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://cpan.metacpan.org/authors/id/F/FR/FREW/Sub-Exporter-Progressive-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="d535b7954d64da1ac1305b1fadf98202769e3599376854b2ced90c382beac056"
|
||||
SOURCE_DIR="Sub-Exporter-Progressive-$portVersion"
|
||||
|
||||
ARCHITECTURES="any"
|
||||
|
||||
PROVIDES="
|
||||
sub_exporter_progressive = $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
|
||||
}
|
||||
Reference in New Issue
Block a user