Files
haikuports/dev-perl/devel_stacktrace/devel_stacktrace-2.05.recipe
2025-12-25 15:03:15 +01:00

57 lines
1.4 KiB
Bash

SUMMARY="An object representing a stack trace"
DESCRIPTION="The Devel::StackTrace module contains two classes, Devel::StackTrace and \
Devel::StackTrace::Frame. These objects encapsulate the information that can retrieved via \
Perl's caller function, as well as providing a simple interface to this data.
The Devel::StackTrace object contains a set of Devel::StackTrace::Frame objects, one for each \
level of the stack. The frames contain all the data available from caller.
This code was created to support my Exception::Class::Base class (part of Exception::Class) but \
may be useful in other contexts."
HOMEPAGE="https://metacpan.org/pod/Devel::StackTrace"
COPYRIGHT="2000-2024 by David Rolsky"
LICENSE="Artistic"
REVISION="3"
SOURCE_URI="https://cpan.metacpan.org/authors/id/D/DR/DROLSKY/Devel-StackTrace-$portVersion.tar.gz"
CHECKSUM_SHA256="63cb6196e986a7e578c4d28b3c780e7194835bfc78b68eeb8f00599d4444888c"
SOURCE_DIR="Devel-StackTrace-$portVersion"
ARCHITECTURES="any"
PROVIDES="
devel_stacktrace = $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
}