mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
exception_class: new perl module package
This is required for some tests of other packages.
This commit is contained in:
60
dev-perl/exception_class/exception_class-1.45.recipe
Normal file
60
dev-perl/exception_class/exception_class-1.45.recipe
Normal file
@@ -0,0 +1,60 @@
|
||||
SUMMARY="A module that allows you to declare real exception classes in Perl"
|
||||
DESCRIPTION="Exception::Class allows you to declare exception hierarchies in your modules in a \
|
||||
\"Java-esque\" manner.
|
||||
|
||||
It features a simple interface allowing programmers to 'declare' exception classes at compile \
|
||||
time. It also has a base exception class, Exception::Class::Base, that can be easily extended.
|
||||
|
||||
It is designed to make structured exception handling simpler and better by encouraging people to \
|
||||
use hierarchies of exceptions in their applications, as opposed to a single catch-all exception \
|
||||
class."
|
||||
HOMEPAGE="https://metacpan.org/pod/Exception::Class"
|
||||
COPYRIGHT="2021 by Dave Rolsky"
|
||||
LICENSE="Artistic"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://cpan.metacpan.org/authors/id/D/DR/DROLSKY/Exception-Class-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="5482a77ef027ca1f9f39e1f48c558356e954936fc8fbbdee6c811c512701b249"
|
||||
SOURCE_DIR="Exception-Class-$portVersion"
|
||||
|
||||
ARCHITECTURES="any"
|
||||
|
||||
PROVIDES="
|
||||
exception_class = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku
|
||||
class_data_inheritable
|
||||
devel_stacktrace
|
||||
vendor_perl
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku_devel
|
||||
class_data_inheritable
|
||||
devel_stacktrace
|
||||
"
|
||||
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