html_tagset: new perl module recipe

This commit is contained in:
Joachim Mairböck
2025-12-24 15:40:54 +01:00
parent 9ba9ef3761
commit d89f6facaf

View File

@@ -0,0 +1,53 @@
SUMMARY="Data tables useful in parsing HTML"
DESCRIPTION="This module contains several data tables useful in various kinds of HTML parsing \
operations.
Note that all tag names used are lowercase."
HOMEPAGE="https://metacpan.org/pod/HTML::Tagset"
COPYRIGHT="1995-2000 Gisle Aas.
2000-2005 Sean M. Burke.
2005-2024 Andy Lester"
LICENSE="Artistic v2.0"
REVISION="1"
SOURCE_URI="https://cpan.metacpan.org/authors/id/P/PE/PETDANCE/HTML-Tagset-$portVersion.tar.gz"
CHECKSUM_SHA256="eb89e145a608ed1f8f141a57472ee5f69e67592a432dcd2e8b1dbb445f2b230b"
SOURCE_DIR="HTML-Tagset-$portVersion"
ARCHITECTURES="any"
PROVIDES="
html_tagset = $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
}