Files
haikuports/dev-perl/xml_parser/xml_parser-2.47.recipe

57 lines
1.2 KiB
Bash

SUMMARY="A perl module for parsing XML documents"
DESCRIPTION="XML-Parser - A perl module for parsing XML documents."
HOMEPAGE="https://metacpan.org/pod/XML::Parser"
COPYRIGHT="1998-2000 Larry Wall and Clark Cooper"
LICENSE="Artistic"
REVISION="1"
SOURCE_URI="https://cpan.metacpan.org/authors/id/T/TO/TODDR/XML-Parser-$portVersion.tar.gz"
CHECKSUM_SHA256="ad4aae643ec784f489b956abe952432871a622d4e2b5c619e8855accbfc4d1d8"
SOURCE_DIR="XML-Parser-$portVersion"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
xml_parser$secondaryArchSuffix = $portVersion
"
if [ -n "$secondaryArchSuffix" ]; then
PROVIDES+="
xml_parser = $portVersion
"
fi
REQUIRES="
haiku$secondaryArchSuffix
lib:libexpat$secondaryArchSuffix
vendor_perl
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libexpat$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:gcc$secondaryArchSuffix
cmd:make
cmd:perl
"
# TODO: Remove hardcoded paths. The following shows how to get the the file path:
#find /boot/common/lib/perl5 -type f -name unixish.h | grep -FzZ BePC-haiku/CORE/unixish.h
BUILD()
{
perl Makefile.PL PREFIX=$prefix
sed -i 's/-fstack-protector//g' Expat/Makefile
make
}
INSTALL()
{
make pure_install
}
TEST()
{
make test
}