Files
haikuports/dev-perl/datetime/datetime-1.65.recipe
2025-03-14 20:13:54 +01:00

80 lines
1.8 KiB
Bash

SUMMARY="A date and time object for Perl"
DESCRIPTION="DateTime is a class for the representation of date/time combinations, and is part of \
the Perl DateTime project.
It represents the Gregorian calendar, extended backwards in time before its creation (in 1582). \
This is sometimes known as the \"proleptic Gregorian calendar\". In this calendar, the first day \
of the calendar (the epoch), is the first day of year 1, which corresponds to the date which was \
(incorrectly) believed to be the birth of Jesus Christ.
The calendar represented does have a year 0, and in that way differs from how dates are often \
written using \"BCE/CE\" or \"BC/AD\".
For infinite datetimes, please see the DateTime::Infinite module."
HOMEPAGE="https://metacpan.org/pod/DateTime"
COPYRIGHT="2003 - 2023 by Dave Rolsky"
LICENSE="Artistic"
REVISION="1"
SOURCE_URI="https://cpan.metacpan.org/authors/id/D/DR/DROLSKY/DateTime-$portVersion.tar.gz"
CHECKSUM_SHA256="0bfda7ff0253fb3d88cf4bdb5a14afb8cea24d147975d5bdf3c88b40e7ab140e"
SOURCE_DIR="DateTime-$portVersion"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
datetime$secondaryArchSuffix = $portVersion
"
if [ -n "$secondaryArchSuffix" ]; then
PROVIDES+="
datetime = $portVersion
"
fi
REQUIRES="
haiku$secondaryArchSuffix
datetime_locale
datetime_timezone
dist_checkconflicts
namespace_autoclean
params_validationcompiler
specio
try_tiny
vendor_perl
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:gcc$secondaryArchSuffix
cmd:make
cmd:perl
"
TEST_REQUIRES="
cpan_meta_check
datetime_locale
datetime_timezone
dist_checkconflicts
namespace_autoclean
params_validationcompiler
specio
test_fatal
test_warnings
test_without_module
try_tiny
"
BUILD()
{
perl Makefile.PL PREFIX=$prefix
make
}
INSTALL()
{
make pure_install
}
TEST()
{
make test
}