locale_maketext_extract, add perl module (#9384)

This commit is contained in:
Schrijvers Luc
2023-09-08 13:32:19 +00:00
committed by GitHub
parent 673c776fd0
commit 6f08986b5e

View File

@@ -0,0 +1,44 @@
SUMMARY="Use other catalog formats in Maketext"
DESCRIPTION="This module can extract translatable strings from files, and write them back to PO \
files. It can also parse existing PO files and merge their contents with newly extracted strings.
A command-line utility, xgettext.pl, is installed with this module as well.
The format parsers are loaded as plugins, so it is possible to define your own parsers."
HOMEPAGE="https://metacpan.org/pod/Locale::Maketext::Extract"
COPYRIGHT="2014 by Audrey Tang"
LICENSE="MIT"
REVISION="1"
SOURCE_URI="https://cpan.metacpan.org/authors/id/D/DR/DRTECH/Locale-Maketext-Lexicon-$portVersion.tar.gz"
CHECKSUM_SHA256="b73f6b04a58d3f0e38ebf2115a4c1532f1a4eef6fac5c6a2a449e4e14c1ddc7c"
SOURCE_DIR="Locale-Maketext-Lexicon-$portVersion"
ARCHITECTURES="any"
PROVIDES="
locale_maketext_extract = $portVersion
cmd:xgettext.pl
"
REQUIRES="
haiku
vendor_perl
"
BUILD_REQUIRES="
haiku_devel
"
BUILD_PREREQUIRES="
cmd:make
cmd:perl
"
BUILD()
{
perl Makefile.PL PREFIX=$prefix
make
}
INSTALL()
{
make install DESTDIR="${DESTDIR}"
}