From 5d2eb9c1c1c7a397d84397936caba2b8388104f8 Mon Sep 17 00:00:00 2001 From: Jerome Duval Date: Thu, 18 May 2017 22:18:09 +0200 Subject: [PATCH] xml_parser: add recipe for version 2.44. * depends on vendor_perl. --- dev-perl/xml_parser/xml_parser-2.36.recipe | 5 ++- dev-perl/xml_parser/xml_parser-2.44.recipe | 45 ++++++++++++++++++++++ 2 files changed, 48 insertions(+), 2 deletions(-) create mode 100644 dev-perl/xml_parser/xml_parser-2.44.recipe diff --git a/dev-perl/xml_parser/xml_parser-2.36.recipe b/dev-perl/xml_parser/xml_parser-2.36.recipe index 9006478b5..44339a311 100644 --- a/dev-perl/xml_parser/xml_parser-2.36.recipe +++ b/dev-perl/xml_parser/xml_parser-2.36.recipe @@ -3,7 +3,7 @@ DESCRIPTION="XML-Parser - A perl module for parsing XML documents." HOMEPAGE="http://search.cpan.org/~msergeant/XML-Parser-2.36/" COPYRIGHT="1998-2000 Larry Wall and Clark Cooper" LICENSE="Artistic" -REVISION="1" +REVISION="2" SOURCE_URI="http://search.cpan.org/CPAN/authors/id/M/MS/MSERGEANT/XML-Parser-2.36.tar.gz" CHECKSUM_SHA256="9fd529867402456bd826fe0e5588d35b3a2e27e586a2fd838d1352b71c2ed73f" SOURCE_DIR="XML-Parser-2.36" @@ -16,7 +16,7 @@ PROVIDES=" REQUIRES=" haiku lib:libexpat - perl + vendor_perl " BUILD_REQUIRES=" @@ -35,6 +35,7 @@ BUILD_PREREQUIRES=" BUILD() { perl Makefile.PL PREFIX=$prefix + sed -i 's/-fstack-protector//g' Expat/Makefile make } diff --git a/dev-perl/xml_parser/xml_parser-2.44.recipe b/dev-perl/xml_parser/xml_parser-2.44.recipe new file mode 100644 index 000000000..5fc54606d --- /dev/null +++ b/dev-perl/xml_parser/xml_parser-2.44.recipe @@ -0,0 +1,45 @@ +SUMMARY="A perl module for parsing XML documents" +DESCRIPTION="XML-Parser - A perl module for parsing XML documents." +HOMEPAGE="http://search.cpan.org/~toddr/XML-Parser-2.44/" +COPYRIGHT="1998-2000 Larry Wall and Clark Cooper" +LICENSE="Artistic" +REVISION="1" +SOURCE_URI="http://search.cpan.org/CPAN/authors/id/T/TO/TODDR/XML-Parser-$portVersion.tar.gz" +CHECKSUM_SHA256="1ae9d07ee9c35326b3d9aad56eae71a6730a73a116b9fe9e8a4758b7cc033216" +SOURCE_DIR="XML-Parser-$portVersion" + +ARCHITECTURES="x86 x86_gcc2 x86_64" + +PROVIDES=" + xml_parser = $portVersion + " +REQUIRES=" + haiku + lib:libexpat + vendor_perl + " + +BUILD_REQUIRES=" + haiku_devel + devel:libexpat + " +BUILD_PREREQUIRES=" + cmd:gcc + 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 install DESTDIR="${DESTDIR}" +}