mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 12:10:06 +02:00
timedate: new perl module recipe
This commit is contained in:
53
dev-perl/timedate/timedate-2.33.recipe
Normal file
53
dev-perl/timedate/timedate-2.33.recipe
Normal file
@@ -0,0 +1,53 @@
|
||||
SUMMARY="Miscellaneous timezone manipulations routines"
|
||||
DESCRIPTION="This is the perl5 TimeDate distribution. It requires perl version 5.003 or later.
|
||||
This distribution replaces my earlier GetDate distribution, which was only a date parser. The \
|
||||
date parser contained in this distribution is far superior to the yacc based parser, and a *lot* \
|
||||
faster.
|
||||
The parser contained here will only parse absolute dates, if you want a date parser that can \
|
||||
parse relative dates then take a look at the Time modules by David Muir on CPAN."
|
||||
HOMEPAGE="https://metacpan.org/dist/TimeDate"
|
||||
COPYRIGHT="1995-2009 Graham Barr"
|
||||
LICENSE="Artistic"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://cpan.metacpan.org/authors/id/A/AT/ATOOMIC/TimeDate-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="c0b69c4b039de6f501b0d9f13ec58c86b040c1f7e9b27ef249651c143d605eb2"
|
||||
SOURCE_DIR="TimeDate-$portVersion"
|
||||
|
||||
ARCHITECTURES="any"
|
||||
|
||||
PROVIDES="
|
||||
timedate = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku
|
||||
vendor_perl
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku_devel
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:make
|
||||
cmd:perl
|
||||
"
|
||||
|
||||
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