From 118173526dad9549d65a48b3917d3fec77f47d5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Mairb=C3=B6ck?= Date: Sat, 30 Nov 2024 16:01:10 +0100 Subject: [PATCH] datetime_calendar_julian: new perl module recipe --- .../datetime_calendar_julian-0.107.recipe | 55 +++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 dev-perl/datetime_calendar_julian/datetime_calendar_julian-0.107.recipe diff --git a/dev-perl/datetime_calendar_julian/datetime_calendar_julian-0.107.recipe b/dev-perl/datetime_calendar_julian/datetime_calendar_julian-0.107.recipe new file mode 100644 index 000000000..e6baa9f9b --- /dev/null +++ b/dev-perl/datetime_calendar_julian/datetime_calendar_julian-0.107.recipe @@ -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 +}