From b54cee39eecc973685799fb8e282e378a07d1c9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Mairb=C3=B6ck?= Date: Sat, 25 Jan 2025 14:54:50 +0100 Subject: [PATCH] http_date: new perl module recipe --- dev-perl/http_date/http_date-6.06.recipe | 55 ++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 dev-perl/http_date/http_date-6.06.recipe diff --git a/dev-perl/http_date/http_date-6.06.recipe b/dev-perl/http_date/http_date-6.06.recipe new file mode 100644 index 000000000..a8f0d8572 --- /dev/null +++ b/dev-perl/http_date/http_date-6.06.recipe @@ -0,0 +1,55 @@ +SUMMARY="Date conversion routines" +DESCRIPTION="This module provides functions that deal the date formats used by the HTTP protocol \ +(and then some more). Only the first two functions, time2str() and str2time(), are exported by \ +default." +HOMEPAGE="https://metacpan.org/pod/HTTP::Date" +COPYRIGHT="1995 by Gisle Aas" +LICENSE="Artistic" +REVISION="1" +SOURCE_URI="https://cpan.metacpan.org/authors/id/O/OA/OALDERS/HTTP-Date-$portVersion.tar.gz" +CHECKSUM_SHA256="7b685191c6acc3e773d1fc02c95ee1f9fae94f77783175f5e78c181cc92d2b52" +SOURCE_DIR="HTTP-Date-$portVersion" + +ARCHITECTURES="any" + +PROVIDES=" + http_date = $portVersion + " +REQUIRES=" + haiku + timedate + vendor_perl + " + +BUILD_REQUIRES=" + haiku_devel + " +BUILD_PREREQUIRES=" + cmd:make + cmd:perl + " + +TEST_REQUIRES=" + timedate +" + +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 +}