mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-21 19:20:08 +02:00
xml_writer: new perl module recipe
This commit is contained in:
61
dev-perl/xml_writer/xml_writer-0.900.recipe
Normal file
61
dev-perl/xml_writer/xml_writer-0.900.recipe
Normal file
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user