Info2: << Package: xml-twig-pm%type_pkg[perl] Version: 3.52 Revision: 1 Replaces: xml-twig-pm (<= 3.14-10), xml-twig-pm560, xml-twig-pm580, xml-twig-pm581, xml-twig-pm586 Depends: << perl%type_pkg[perl]-core, encode-pm%type_pkg[perl], html-entities-numbered-pm, html-parser-pm%type_pkg[perl], html-tree-pm%type_pkg[perl] (>= 4.0-1), html-tidy-pm%type_pkg[perl], libwww-pm%type_pkg[perl], scalar-list-utils-pm%type_pkg[perl], text-iconv-pm%type_pkg[perl] (>= 1.2-3), tie-ixhash-pm, xml-parser-pm%type_pkg[perl] (>= 2.31-6), xml-xpathengine-pm << BuildDepends: fink (>= 0.20.1-1) Source: mirror:cpan:authors/id/M/MI/MIROD/XML-Twig-%v.tar.gz Source-Checksum: SHA256(fef75826c24f2b877d0a0d2645212fc4fb9756ed4d2711614ac15c497e8680ad) # There is a bug in fink's perl packages which sets perlpath to %p/bin/perl # instead of %p/bin/perlx.y.z so the tests fail if perlxyz isn't installed # in addition to perlxyz-core. This patch works around the bug. PatchScript: << perl -pi -e 's/\$Config{perlpath}/"\$ENV{FULLPERL}"/g' t/*.t # hardcode the desired option perl -pi -e 's/\$ARGV\[0\]/"-y"/g' Makefile.PL # perl tests aren't getting propagated perl interp flags even if # perl's perlpath var is set correctly perl -pi -e 's/\$\^X/\$ENV{FULLPERL}/' t/test_autoencoding_conversion.t t/test_errors.t t/test_xml_split.t t/test_xml_split_g.t perl -pi -e 's/\$\^X/"\$ENV{FULLPERL}"/' t/tools.pm # ...and because it could be a multi-shellword thing, gotta quote # it when passed as a command parameter perl -pi -e 's/(\$perl.*)(\$perl)/\1"\2"/' t/test_errors.t << InfoTest: << TestDepends: << io-captureoutput-pm, test-cpan-meta-json-pm%type_pkg[perl], test-harness-pm%type_pkg[perl] (>= 3.23-1), unicode-map8-pm%type_pkg[perl], unicode-string-pm%type_pkg[perl], xml-filter-buffertext-pm%type_pkg[perl], xml-handler-yawriter-pm%type_pkg[perl], xml-sax-writer-pm%type_pkg[perl], xml-simple-pm%type_pkg[perl], yaml-pm << TestScript: << #!/bin/sh -ev export FULLPERL="\$^X" %{default_script} << << InstallScript: << #!/bin/sh -ev %{default_script} mkdir -p %i/lib/perl5/%type_raw[perl]/man mv %i/share/man/man3 %i/lib/perl5/%type_raw[perl]/man for file in xml_merge xml_split xml_grep xml_pp xml_spellcheck; do mv %i/bin/$file %i/bin/$file-%type_pkg[perl] mv %i/share/man/man1/$file.1 %i/share/man/man1/$file.1-%type_pkg[perl] done << PostInstScript: << update-alternatives \ --install %p/bin/xml_grep xml_grep %p/bin/xml_grep-%type_pkg[perl] %type_pkg[perl] \ --slave %p/bin/xml_pp xml_pp %p/bin/xml_pp-%type_pkg[perl] \ --slave %p/bin/xml_spellcheck xml_spellcheck %p/bin/xml_spellcheck-%type_pkg[perl] \ --slave %p/bin/xml_merge xml_merge %p/bin/xml_merge-%type_pkg[perl] \ --slave %p/bin/xml_split xml_split %p/bin/xml_split-%type_pkg[perl] \ --slave %p/share/man/man1/xml_grep.1 xml_grep.1 %p/share/man/man1/xml_grep.1-%type_pkg[perl] \ --slave %p/share/man/man1/xml_pp.1 xml_pp.1 %p/share/man/man1/xml_pp.1-%type_pkg[perl] \ --slave %p/share/man/man1/xml_spellcheck.1 xml_spellcheck.1 %p/share/man/man1/xml_spellcheck.1-%type_pkg[perl] \ --slave %p/share/man/man1/xml_merge.1 xml_merge.1 %p/share/man/man1/xml_merge.1-%type_pkg[perl] \ --slave %p/share/man/man1/xml_split.1 xml_split.1 %p/share/man/man1/xml_split.1-%type_pkg[perl] << PreRmScript: << update-alternatives --remove xml_grep %p/bin/xml_grep-%type_pkg[perl] << Type: perl (5.16.2 5.18.2 5.18.4 5.28.2 5.30.2 5.30.3) Distribution: << (%type_pkg[perl] = 5162) 10.9, (%type_pkg[perl] = 5162) 10.10, (%type_pkg[perl] = 5162) 10.11, (%type_pkg[perl] = 5162) 10.12, (%type_pkg[perl] = 5162) 10.13 << UpdatePOD: True DocFiles: README Changes Description: Process huge XML documents in tree mode DescDetail: << A perl module for processing huge XML documents in tree mode. << DescPort: << Justin Hallett - removed make test as it faild do to a perl bug with usage and clean up, xml-twig-pm works fine. dmacks - fixed -pmXXX orthogonality dmacks - more fixes for perl interp used during self-test << License: Artistic/GPL Maintainer: Daniel Johnson Homepage: https://metacpan.org/dist/XML-Twig <<