0
0
Fork 0
haikuports/dev-perl/xml_parser/xml_parser-2.44.recipe

46 lines
1012 B
Bash

SUMMARY="A perl module for parsing XML documents"
DESCRIPTION="XML-Parser - A perl module for parsing XML documents."
HOMEPAGE="https://metacpan.org/release/TODDR/XML-Parser-2.44"
COPYRIGHT="1998-2000 Larry Wall and Clark Cooper"
LICENSE="Artistic"
REVISION="12"
SOURCE_URI="https://cpan.metacpan.org/authors/id/T/TO/TODDR/XML-Parser-$portVersion.tar.gz"
CHECKSUM_SHA256="1ae9d07ee9c35326b3d9aad56eae71a6730a73a116b9fe9e8a4758b7cc033216"
SOURCE_DIR="XML-Parser-$portVersion"
ARCHITECTURES="all"
PROVIDES="
xml_parser = $portVersion
"
REQUIRES="
haiku
lib:libexpat
vendor_perl
"
BUILD_REQUIRES="
haiku_devel
devel:libexpat
cmd:perl
"
BUILD_PREREQUIRES="
cmd:gcc
cmd:make
"
# 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 install DESTDIR="${DESTDIR}"
}