Date: Wed, 30 Aug 2006 20:57:58 +0800 (CST) From: Gea-Suan Lin <gslin@gslin.org> To: FreeBSD-gnats-submit@FreeBSD.org Cc: gslin@gslin.org Subject: ports/102693: [NEW PORT] textproc/p5-XML-Compile: Compilation based XML processing Message-ID: <20060830125758.9AAF815E@netnews.NCTU.edu.tw> Resent-Message-ID: <200608301300.k7UD0lVL093490@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 102693 >Category: ports >Synopsis: [NEW PORT] textproc/p5-XML-Compile: Compilation based XML processing >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Aug 30 13:00:46 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Gea-Suan Lin >Release: FreeBSD 6.1-RELEASE i386 >Organization: >Environment: System: FreeBSD netnews.NCTU.edu.tw 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Sat May 13 03:43:48 CST 2006 >Description: Many applications which process data-centric XML do that based on a nice specification, expressed in an XML Schema. XML::Compile reads and writes XML data with the help of such schema's. On the Perl side, it uses a tree of nested hashes with the same structure. Where other Perl modules, like SOAP::WSDL help you using these schema's (often with a lot of run-time (XPath) searches), this module takes a different approach: in stead of run-time processing of the specification, it will first compile the expected structure into real Perl, and then use that to process the data. There are many perl modules with the same as this one: translate between XML and nested hashes. However, there are a few serious differences: because the schema is used here, we make sure we only handle correct data. Data-types are formatted and processed correctly; for instance, integer does accept huge values (at least 18 digits) as the specification prescribes. Also more complex data-types like list, union, and substitutionGroup (unions on complex type level) are supported, which is rarely the case in other modules. WWW: http://search.cpan.org/dist/XML-Compile/ Generated with FreeBSD Port Tools 0.77 >How-To-Repeat: >Fix: --- p5-XML-Compile-0.05.shar begins here --- # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # p5-XML-Compile # p5-XML-Compile/pkg-descr # p5-XML-Compile/Makefile # p5-XML-Compile/pkg-plist # p5-XML-Compile/distinfo # echo c - p5-XML-Compile mkdir -p p5-XML-Compile > /dev/null 2>&1 echo x - p5-XML-Compile/pkg-descr sed 's/^X//' >p5-XML-Compile/pkg-descr << 'END-of-p5-XML-Compile/pkg-descr' XMany applications which process data-centric XML do that based on a Xnice specification, expressed in an XML Schema. XML::Compile reads and Xwrites XML data with the help of such schema's. On the Perl side, it Xuses a tree of nested hashes with the same structure. X XWhere other Perl modules, like SOAP::WSDL help you using these Xschema's (often with a lot of run-time (XPath) searches), this module Xtakes a different approach: in stead of run-time processing of the Xspecification, it will first compile the expected structure into real XPerl, and then use that to process the data. X XThere are many perl modules with the same as this one: translate Xbetween XML and nested hashes. However, there are a few serious Xdifferences: because the schema is used here, we make sure we only Xhandle correct data. Data-types are formatted and processed correctly; Xfor instance, integer does accept huge values (at least 18 digits) as Xthe specification prescribes. Also more complex data-types like list, Xunion, and substitutionGroup (unions on complex type level) are Xsupported, which is rarely the case in other modules. X XWWW: http://search.cpan.org/dist/XML-Compile/ END-of-p5-XML-Compile/pkg-descr echo x - p5-XML-Compile/Makefile sed 's/^X//' >p5-XML-Compile/Makefile << 'END-of-p5-XML-Compile/Makefile' X# New ports collection makefile for: p5-XML-Compile X# Date created: 2006-08-30 X# Whom: Gea-Suan Lin <gslin@gslin.org> X# X# $FreeBSD$ X# X XPORTNAME= XML-Compile XPORTVERSION= 0.05 XCATEGORIES= textproc perl5 XMASTER_SITES= ${MASTER_SITE_PERL_CPAN} XMASTER_SITE_SUBDIR= XML XPKGNAMEPREFIX= p5- X XMAINTAINER= perl@FreeBSD.org XCOMMENT= Compilation based XML processing X XRUN_DEPENDS= p5-Regexp-Common>=2.00:${PORTSDIR}/textproc/p5-Regexp-Common \ X p5-XML-LibXML>=1.58:${PORTSDIR}/textproc/p5-XML-LibXML XBUILD_DEPENDS= ${RUN_DEPENDS} X XPERL_CONFIGURE= yes X XMAN3= XML::Compile.3 XML::Compile::Schema.3 \ X XML::Compile::Schema::BuiltInFacets.3 \ X XML::Compile::Schema::BuiltInStructs.3 \ X XML::Compile::Schema::BuiltInTypes.3 \ X XML::Compile::Schema::Instance.3 \ X XML::Compile::Schema::NameSpaces.3 \ X XML::Compile::Schema::Specs.3 \ X XML::Compile::Schema::Translate.3 X Xpost-install: X ${MKDIR} ${DATADIR} X ${CP} -R ${WRKSRC}/html/* ${DATADIR} X X.include <bsd.port.pre.mk> X X.if ${PERL_LEVEL} < 500600 XIGNORE= requires Perl 5.6.0 or newer. Install lang/perl5.8 and try again X.endif X X.if ${PERL_LEVEL} < 500703 XRUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/List/Util.pm:${PORTSDIR}/lang/p5-Scalar-List-Utils X.endif X X.include <bsd.port.post.mk> END-of-p5-XML-Compile/Makefile echo x - p5-XML-Compile/pkg-plist sed 's/^X//' >p5-XML-Compile/pkg-plist << 'END-of-p5-XML-Compile/pkg-plist' X@comment $FreeBSD$ X%%DATADIR%%/manual/doclist.html X%%DATADIR%%/manual/grouped.html X%%DATADIR%%/manual/head.html X%%DATADIR%%/manual/index.html X%%DATADIR%%/manual/main.html X%%DATADIR%%/manual/methods.html X%%DATADIR%%/manual/relations.html X%%DATADIR%%/manual/sorted.html X%%DATADIR%%/other/details/index.html X%%DATADIR%%/other/diagnostics/index.html X%%DATADIR%%/other/index.html X%%DATADIR%%/other/jump.cgi X%%DATADIR%%/other/manuals/head.html X%%DATADIR%%/other/manuals/index.html X%%DATADIR%%/other/manuals/list.html X%%DATADIR%%/other/methods/index.html X%%DATADIR%%/other/xml.css X%%SITE_PERL%%/%%PERL_ARCH%%/auto/XML/Compile/.packlist X%%SITE_PERL%%/XML/Compile.pm X%%SITE_PERL%%/XML/Compile.pod X%%SITE_PERL%%/XML/Compile/Schema.pm X%%SITE_PERL%%/XML/Compile/Schema.pod X%%SITE_PERL%%/XML/Compile/Schema/BuiltInFacets.pm X%%SITE_PERL%%/XML/Compile/Schema/BuiltInFacets.pod X%%SITE_PERL%%/XML/Compile/Schema/BuiltInStructs.pm X%%SITE_PERL%%/XML/Compile/Schema/BuiltInStructs.pod X%%SITE_PERL%%/XML/Compile/Schema/BuiltInTypes.pm X%%SITE_PERL%%/XML/Compile/Schema/BuiltInTypes.pod X%%SITE_PERL%%/XML/Compile/Schema/Instance.pm X%%SITE_PERL%%/XML/Compile/Schema/Instance.pod X%%SITE_PERL%%/XML/Compile/Schema/NameSpaces.pm X%%SITE_PERL%%/XML/Compile/Schema/NameSpaces.pod X%%SITE_PERL%%/XML/Compile/Schema/Specs.pm X%%SITE_PERL%%/XML/Compile/Schema/Specs.pod X%%SITE_PERL%%/XML/Compile/Schema/Translate.pm X%%SITE_PERL%%/XML/Compile/Schema/Translate.pod X@dirrmtry %%SITE_PERL%%/XML/Compile/Schema X@dirrmtry %%SITE_PERL%%/XML/Compile X@dirrmtry %%SITE_PERL%%/XML X@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/XML/Compile X@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/XML X@dirrmtry %%DATADIR%%/other/methods X@dirrmtry %%DATADIR%%/other/manuals X@dirrmtry %%DATADIR%%/other/diagnostics X@dirrmtry %%DATADIR%%/other/details X@dirrmtry %%DATADIR%%/other X@dirrmtry %%DATADIR%%/manual X@dirrmtry %%DATADIR%% END-of-p5-XML-Compile/pkg-plist echo x - p5-XML-Compile/distinfo sed 's/^X//' >p5-XML-Compile/distinfo << 'END-of-p5-XML-Compile/distinfo' XMD5 (XML-Compile-0.05.tar.gz) = 52fd320f9967ce3236bf5e2fe439a24f XSHA256 (XML-Compile-0.05.tar.gz) = c9153fdfd398048d9d71180ae0bce9e7b0a0ee9f35677e2bc2c75efca11fa3d4 XSIZE (XML-Compile-0.05.tar.gz) = 49932 END-of-p5-XML-Compile/distinfo exit --- p5-XML-Compile-0.05.shar ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060830125758.9AAF815E>