mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 04:00:05 +02:00
xml_libxml_simple: new perl module recipe
This commit is contained in:
54
dev-perl/xml_libxml_simple/xml_libxml_simple-1.01.recipe
Normal file
54
dev-perl/xml_libxml_simple/xml_libxml_simple-1.01.recipe
Normal file
@@ -0,0 +1,54 @@
|
||||
SUMMARY="XML::LibXML clone of XML::Simple::XMLin()"
|
||||
DESCRIPTION="This module is a blunt rewrite of XML::Simple (by Grant McLean) to use the \
|
||||
XML::LibXML parser for XML structures, where the original uses plain Perl or SAX parsers."
|
||||
HOMEPAGE="https://metacpan.org/pod/XML::LibXML::Simple"
|
||||
COPYRIGHT="2008-2020 by Mark Overmeer"
|
||||
LICENSE="Artistic"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://cpan.metacpan.org/authors/id/M/MA/MARKOV/XML-LibXML-Simple-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="cd98c8104b70d7672bfa26b4513b78adf2b4b9220e586aa8beb1a508500365a6"
|
||||
SOURCE_DIR="XML-LibXML-Simple-$portVersion"
|
||||
|
||||
ARCHITECTURES="any"
|
||||
|
||||
PROVIDES="
|
||||
xml_libxml_simple = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku
|
||||
vendor_perl
|
||||
xml_libxml
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku_devel
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:make
|
||||
cmd:perl
|
||||
"
|
||||
|
||||
TEST_REQUIRES="
|
||||
xml_libxml
|
||||
"
|
||||
|
||||
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