mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
http_date: new perl module recipe
This commit is contained in:
55
dev-perl/http_date/http_date-6.06.recipe
Normal file
55
dev-perl/http_date/http_date-6.06.recipe
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user