From 977393f2bf9085f5bc52dac1ea0bc4e7bc12d904 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Mairb=C3=B6ck?= Date: Mon, 6 Jan 2025 17:09:43 +0100 Subject: [PATCH] xml_writer: new perl module recipe --- dev-perl/xml_writer/xml_writer-0.900.recipe | 61 +++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 dev-perl/xml_writer/xml_writer-0.900.recipe diff --git a/dev-perl/xml_writer/xml_writer-0.900.recipe b/dev-perl/xml_writer/xml_writer-0.900.recipe new file mode 100644 index 000000000..e481b1df0 --- /dev/null +++ b/dev-perl/xml_writer/xml_writer-0.900.recipe @@ -0,0 +1,61 @@ +SUMMARY="Perl extension for writing XML documents" +DESCRIPTION="XML::Writer is a helper module for Perl programs that write an XML document. The \ +module handles all escaping for attribute values and character data and constructs different \ +types of markup, such as tags, comments, and processing instructions. +By default, the module performs several well-formedness checks to catch errors during output. \ +This behaviour can be extremely useful during development and debugging, but it can be turned off \ +for production-grade code. +The module can operate either in regular mode in or Namespace processing mode. In Namespace mode, \ +the module will generate Namespace Declarations itself, and will perform additional checks on the \ +output. +Additional support is available for a simplified data mode with no mixed content: newlines are \ +automatically inserted around elements and elements can optionally be indented based as their \ +nesting level." +HOMEPAGE="https://metacpan.org/pod/XML::Writer" +COPYRIGHT="1999 by Megginson Technologies + 2003 Ed Avis + 2004-2010 Joseph Walton" +LICENSE="MIT" +REVISION="1" +SOURCE_URI="https://cpan.metacpan.org/authors/id/J/JO/JOSEPHW/XML-Writer-$portVersion.tar.gz" +CHECKSUM_SHA256="73c8f5bd3ecf2b350f4adae6d6676d52e08ecc2d7df4a9f089fa68360d400d1f" +SOURCE_DIR="XML-Writer-$portVersion" + +ARCHITECTURES="any" + +PROVIDES=" + xml_writer = $portVersion + " +REQUIRES=" + haiku + vendor_perl + " + +BUILD_REQUIRES=" + haiku_devel + " +BUILD_PREREQUIRES=" + cmd:make + cmd:perl + " + +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 +}