http_date: new perl module recipe

This commit is contained in:
Joachim Mairböck
2025-01-25 14:54:50 +01:00
parent 26a9e3f51b
commit b54cee39ee

View File

@@ -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
}