mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
try_tiny: new perl module recipe
This commit is contained in:
53
dev-perl/try_tiny/try_tiny-0.32.recipe
Normal file
53
dev-perl/try_tiny/try_tiny-0.32.recipe
Normal file
@@ -0,0 +1,53 @@
|
||||
SUMMARY="Minimal try/catch with proper preservation of \$@"
|
||||
DESCRIPTION="This module provides bare bones try/catch/finally statements that are designed to \
|
||||
minimize common mistakes with eval blocks, and NOTHING else."
|
||||
HOMEPAGE="https://metacpan.org/pod/Try::Tiny"
|
||||
COPYRIGHT="2009 by יובל קוג'מן (Yuval Kogman)"
|
||||
LICENSE="MIT"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://cpan.metacpan.org/authors/id/E/ET/ETHER/Try-Tiny-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="ef2d6cab0bad18e3ab1c4e6125cc5f695c7e459899f512451c8fa3ef83fa7fc0"
|
||||
SOURCE_DIR="Try-Tiny-$portVersion"
|
||||
|
||||
ARCHITECTURES="any"
|
||||
|
||||
PROVIDES="
|
||||
try_tiny = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku
|
||||
vendor_perl
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku_devel
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:make
|
||||
cmd:perl
|
||||
"
|
||||
|
||||
TEST_REQUIRES="
|
||||
capture_tiny
|
||||
"
|
||||
|
||||
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