datetime_calendar_julian: new perl module recipe

This commit is contained in:
Joachim Mairböck
2024-11-30 16:01:10 +01:00
parent f5525c8937
commit 118173526d

View File

@@ -0,0 +1,55 @@
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="1"
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
}