datetime_timezone: new perl module recipe

This commit is contained in:
Joachim Mairböck
2024-10-27 22:11:39 +01:00
parent f0151a22ff
commit 734f93fed4

View File

@@ -0,0 +1,69 @@
SUMMARY="Time zone object base class and factory"
DESCRIPTION="This class is the base class for all time zone objects. A time zone is represented \
internally as a set of observances, each of which describes the offset from GMT for a given time \
period.
Note that without the DateTime module, this module does not do much. It's primary interface is \
through a DateTime object, and most users will not need to directly use DateTime::TimeZone methods."
HOMEPAGE="https://metacpan.org/pod/DateTime::TimeZone"
COPYRIGHT="2024 by Dave Rolsky"
LICENSE="Artistic"
REVISION="1"
SOURCE_URI="https://cpan.metacpan.org/authors/id/D/DR/DROLSKY/DateTime-TimeZone-$portVersion.tar.gz"
CHECKSUM_SHA256="79ac1c34fb2129b1ad88e0c7090166b98f2a7fd658358f2e1ae7e9bac963cc0f"
SOURCE_DIR="DateTime-TimeZone-$portVersion"
ARCHITECTURES="any"
PROVIDES="
datetime_timezone = $portVersion
"
REQUIRES="
haiku
class_singleton
module_runtime
namespace_autoclean
params_validationcompiler
specio
try_tiny
vendor_perl
"
BUILD_REQUIRES="
haiku_devel
"
BUILD_PREREQUIRES="
cmd:make
cmd:perl
"
TEST_REQUIRES="
class_singleton
module_runtime
namespace_autoclean
params_validationcompiler
specio
test_fatal
test_requires
try_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
}