mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 12:10:06 +02:00
56 lines
1.1 KiB
Bash
56 lines
1.1 KiB
Bash
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="2"
|
|
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
|
|
}
|