xml_parser-2.44.recipe revision 9e4d3c8c
1SUMMARY="A perl module for parsing XML documents"
2DESCRIPTION="XML-Parser - A perl module for parsing XML documents."
3HOMEPAGE="https://metacpan.org/release/TODDR/XML-Parser-2.44"
4COPYRIGHT="1998-2000 Larry Wall and Clark Cooper"
5LICENSE="Artistic"
6REVISION="11"
7SOURCE_URI="https://cpan.metacpan.org/authors/id/T/TO/TODDR/XML-Parser-$portVersion.tar.gz"
8CHECKSUM_SHA256="1ae9d07ee9c35326b3d9aad56eae71a6730a73a116b9fe9e8a4758b7cc033216"
9SOURCE_DIR="XML-Parser-$portVersion"
10
11ARCHITECTURES="x86 x86_gcc2 x86_64"
12
13PROVIDES="
14	xml_parser = $portVersion
15	"
16REQUIRES="
17	haiku
18	lib:libexpat
19	vendor_perl
20	"
21
22BUILD_REQUIRES="
23	haiku_devel
24	devel:libexpat
25	cmd:perl
26	"
27BUILD_PREREQUIRES="
28	cmd:gcc
29	cmd:make
30	"
31
32# TODO: Remove hardcoded paths. The following shows how to get the the file path:
33#find /boot/common/lib/perl5 -type f -name unixish.h | grep -FzZ BePC-haiku/CORE/unixish.h
34
35BUILD()
36{
37	perl Makefile.PL PREFIX=$prefix
38	sed -i 's/-fstack-protector//g' Expat/Makefile
39	make
40}
41
42INSTALL()
43{
44	make install DESTDIR="${DESTDIR}"
45}
46