datetime_locale: new perl module recipe

This commit is contained in:
Joachim Mairböck
2024-10-27 21:39:37 +01:00
parent ee42d48744
commit c5e4efa744

View File

@@ -0,0 +1,68 @@
SUMMARY="Localization support for DateTime.pm"
DESCRIPTION="DateTime::Locale is primarily a factory for the various locale subclasses. It also \
provides some functions for getting information on all the available locales."
HOMEPAGE="https://metacpan.org/pod/DateTime::Locale"
COPYRIGHT="2003 - 2024 by Dave Rolsky"
LICENSE="Artistic"
REVISION="1"
SOURCE_URI="https://cpan.metacpan.org/authors/id/D/DR/DROLSKY/DateTime-Locale-$portVersion.tar.gz"
CHECKSUM_SHA256="6c859c17cf274749dfc2c6aaf6bf4b492b605fabdddd23712efbbd5caf601de1"
SOURCE_DIR="DateTime-Locale-$portVersion"
ARCHITECTURES="any"
PROVIDES="
datetime_locale = $portVersion
"
REQUIRES="
haiku
dist_checkconflicts
file_sharedir
namespace_autoclean
params_validationcompiler
specio
vendor_perl
"
BUILD_REQUIRES="
haiku_devel
file_sharedir_install
"
BUILD_PREREQUIRES="
cmd:make
cmd:perl
"
TEST_REQUIRES="
cpan_meta_check
dist_checkconflicts
file_sharedir
ipc_system_simple
namespace_autoclean
params_validationcompiler
path_tiny
specio
test_file_sharedir
test2_plugin_nowarnings
"
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
}