Files
haikuports/dev-perl/datetime_calendar_julian/datetime_calendar_julian-0.107.recipe
2025-12-25 18:09:30 +01:00

56 lines
1.1 KiB
Bash

SUMMARY="Dates in the Julian calendar"
DESCRIPTION="DateTime::Calendar::Julian implements the Julian Calendar. This module implements \
all methods of DateTime; see the DateTime(3) manpage for all methods."
HOMEPAGE="https://metacpan.org/pod/DateTime::Calendar::Juilian"
COPYRIGHT="2003 Eugene van der Pijll
2018-2022 Thomas R. Wyant, III"
LICENSE="Artistic"
REVISION="2"
SOURCE_URI="https://cpan.metacpan.org/authors/id/W/WY/WYANT/DateTime-Calendar-Julian-$portVersion.tar.gz"
CHECKSUM_SHA256="fcb2b424844bb13bcad46b1c7aa239b5a09bab2556f53bd1f27fad90c260d33d"
SOURCE_DIR="DateTime-Calendar-Julian-$portVersion"
ARCHITECTURES="any"
PROVIDES="
datetime_calendar_julian = $portVersion
"
REQUIRES="
haiku
datetime
vendor_perl
"
BUILD_REQUIRES="
haiku_devel
"
BUILD_PREREQUIRES="
cmd:make
cmd:perl
"
TEST_REQUIRES="
datetime
"
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
}