Update of /cvsroot/fink/dists/10.3/unstable/main/finkinfo/libs/perlmods
In directory 
sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv13618/10.3/unstable/main/finkinfo/libs/perlmods

Modified Files:
        xml-sax-pm.info xml-sax-pm.patch xml-simple-pm.info 
Log Message:
New upstream version of xml-simple-pm (2.16)
-  This version now uses XML::SAX::Expat, which needs to be the default
   parser for XML::SAX. Therefore the ordering in ParserDetails.ini had
   to be reversed
-  New revision of xml-sax-pm now uses variantized folders to store
   the ParserDetails.ini file


Index: xml-simple-pm.info
===================================================================
RCS file: 
/cvsroot/fink/dists/10.3/unstable/main/finkinfo/libs/perlmods/xml-simple-pm.info,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- xml-simple-pm.info  17 Feb 2006 01:41:12 -0000      1.7
+++ xml-simple-pm.info  15 Nov 2006 20:52:25 -0000      1.8
@@ -1,7 +1,7 @@
 Info2: <<
 Package: xml-simple-pm%type_pkg[perl]
-Version: 2.14
-Revision: 2
+Version: 2.16
+Revision: 1
 Architecture: (%type_pkg[perl] = 581) powerpc, (%type_pkg[perl] = 584) powerpc
 Type: perl (5.8.1 5.8.4 5.8.6)
 Description: Trivial API for reading and writing XML
@@ -9,16 +9,14 @@
 Maintainer: Christian Schaffner <[EMAIL PROTECTED]>
 
 # Dependencies:
-Depends: perl%type_pkg[perl]-core, xml-parser-pm%type_pkg[perl], 
xml-namespacesupport-pm, xml-sax-pm%type_pkg[perl]
+Depends: perl%type_pkg[perl]-core, xml-parser-pm%type_pkg[perl], 
xml-namespacesupport-pm, xml-sax-pm%type_pkg[perl] (>= 0.14-2), 
xml-sax-expat-pm%type_pkg[perl]
 BuildDepends: fink (>= 0.20.6-1), test-simple-pm%type_pkg[perl]
 Conflicts: %{Ni}560-man, %{Ni}561-man, %{Ni}580-man, %{Ni}581-man, 
%{Ni}582-man, %{Ni}584-man
 Replaces: %{Ni}560-man, %{Ni}561-man, %{Ni}580-man, %{Ni}581-man, 
%{Ni}582-man, %{Ni}584-man, xml-simple-pm (<= 2.07-1)
 
 # Unpack Phase:
 Source: mirror:cpan:authors/id/G/GR/GRANTM/XML-Simple-%v.tar.gz
-Source-MD5: f321058271815de28d214c8efb9091f9
-
-NoPerlTests: true
+Source-MD5: 80c0980ff63d77b871de41acc7175df7
 
 # Install Phase:
 UpdatePOD: True

Index: xml-sax-pm.patch
===================================================================
RCS file: 
/cvsroot/fink/dists/10.3/unstable/main/finkinfo/libs/perlmods/xml-sax-pm.patch,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- xml-sax-pm.patch    15 Nov 2006 03:12:55 -0000      1.4
+++ xml-sax-pm.patch    15 Nov 2006 20:52:25 -0000      1.5
@@ -58,7 +58,7 @@
 +    $class->add_parser($parser_module);
 +
 +    # get parser's ParserDetails file
-+    my $dir = '@PREFIX@/etc/perl/XML/SAX/ParserDetails.d';
++    my $dir = '@PREFIX@/etc/perl5/@PERL_RAW@/XML/SAX/ParserDetails.d';
 +    my $file = File::Spec->catfile($dir, $parser_module);
      chmod 0644, $file;
      unlink($file);
@@ -100,7 +100,7 @@
 diff -Nurd -x'*~' XML-SAX-0.14.orig/update-perl-sax-parsers 
XML-SAX-0.14/update-perl-sax-parsers
 --- XML-SAX-0.14.orig/update-perl-sax-parsers  1969-12-31 19:00:00.000000000 
-0500
 +++ XML-SAX-0.14/update-perl-sax-parsers       2006-11-14 22:00:26.000000000 
-0500
-@@ -0,0 +1,150 @@
+@@ -0,0 +1,152 @@
 +#!/usr/bin/perl
 +## ----------------------------------------------------------------------
 +## Debian update-perl-sax-parsers version 0.1
@@ -184,8 +184,8 @@
 +    if $debug && ! $quiet;
 +
 +## ----------------------------------------------------------------------
-+my $PARSER_DETAILS_DIR  = "@PREFIX@/etc/perl/XML/SAX/ParserDetails.d";
-+my $PARSER_DETAILS_FILE = "@PREFIX@/etc/perl/XML/SAX/ParserDetails.ini";
++my $PARSER_DETAILS_DIR  = 
"@PREFIX@/etc/perl5/@PERL_RAW@/XML/SAX/ParserDetails.d";
++my $PARSER_DETAILS_FILE = 
"@PREFIX@/etc/perl5/@PERL_RAW@/XML/SAX/ParserDetails.ini";
 +
 +## ----------------------------------------------------------------------
 +if ( $add )
@@ -212,15 +212,17 @@
 +      || die "Cannot write to $PARSER_DETAILS_FILE: $!";
 +    opendir( PARSER_DETAILS_DIR, $PARSER_DETAILS_DIR )
 +      || die "Cannot access $PARSER_DETAILS_DIR: $!";
-+    while ( defined( $parser_details = readdir( PARSER_DETAILS_DIR ) ) )
-+    {
++      opendir(DIR,"$DirFile");
++      my @filearray = reverse readdir PARSER_DETAILS_DIR;
++      closedir( PARSER_DETAILS_DIR );
++      foreach $parser_details (@filearray)
++      {
 +      next if $parser_details =~ /^\.\.?$/; # skip . and ..
 +      open( PARSER_DETAILS, "$PARSER_DETAILS_DIR/$parser_details" )
 +          || die "Cannot read from $parser_details: $!";
 +      while ( <PARSER_DETAILS> ) { print PARSER_DETAILS_FILE; }
 +      close( PARSER_DETAILS );
 +    }
-+    closedir( PARSER_DETAILS_DIR );
 +    close( PARSER_DETAILS_FILE );
 +}
 +
@@ -291,25 +293,25 @@
 +.B update-perl-sax-parsers
 +inserts, updates and removes individual Perl SAX parser module info
 +files in the directory
-+.I @PREFIX@/etc/perl/XML/SAX/ParserDetails.d
++.I @PREFIX@/etc/perl5/@PERL_RAW@/XML/SAX/ParserDetails.d
 +and the overall Perl SAX parser modules info file
-+.IR @PREFIX@/etc/perl/XML/SAX/ParserDetails.ini .
++.IR @PREFIX@/etc/perl5/@PERL_RAW@/XML/SAX/ParserDetails.ini .
 +.\"
 +.\" ----------------------------------------------------------------------
 +.SH OPTIONS
 +.TP
 +.B --add
 +Adds a Perl SAX parser module info file to the directory
-+.IR @PREFIX@/etc/perl/XML/SAX/ParserDetails.d .
++.IR @PREFIX@/etc/perl5/@PERL_RAW@/XML/SAX/ParserDetails.d .
 +.TP
 +.B --remove
 +Removes a Perl SAX parser module info file
 +from the directory
-+.IR @PREFIX@/etc/perl/XML/SAX/ParserDetails.d .
++.IR @PREFIX@/etc/perl5/@PERL_RAW@/XML/SAX/ParserDetails.d .
 +.TP
 +.B --update
 +updates the overall Perl SAX parser modules info file
-+.IR @PREFIX@/etc/perl/XML/SAX/ParserDetails.ini .
++.IR @PREFIX@/etc/perl5/@PERL_RAW@/XML/SAX/ParserDetails.ini .
 +.TP
 +.B --quiet
 +Prevents the usual diagnostic output.

Index: xml-sax-pm.info
===================================================================
RCS file: 
/cvsroot/fink/dists/10.3/unstable/main/finkinfo/libs/perlmods/xml-sax-pm.info,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- xml-sax-pm.info     15 Nov 2006 03:12:55 -0000      1.6
+++ xml-sax-pm.info     15 Nov 2006 20:52:25 -0000      1.7
@@ -1,7 +1,7 @@
 Info2: <<
 Package: xml-sax-pm%type_pkg[perl]
 Version: 0.14
-Revision: 1
+Revision: 2
 Architecture: (%type_pkg[perl] = 581) powerpc, (%type_pkg[perl] = 584) powerpc
 Replaces: xml-sax-pm (<= 0.12-16), %{Ni}560, %{Ni}580, %{Ni}581, %{Ni}584, 
%{Ni}586
 Source: mirror:cpan:authors/id/M/MS/MSERGEANT/XML-SAX-%v.tar.gz
@@ -11,7 +11,7 @@
 BuildDepends: fink (>= 0.20.6-1)
 UpdatePOD: true
 PatchScript: <<
-  sed 's|@PREFIX@|%p|g' < %a/%{Ni}.patch | patch -p1
+  sed -e 's|@PREFIX@|%p|g' -e 's|@PERL_RAW@|%type_raw[perl]|g' < 
%a/%{Ni}.patch | patch -p1
   perl -pi -e 's,/usr/bin/perl,/usr/bin/env perl%type_raw[perl],' 
update-perl-sax-parsers
 <<
 DocFiles: Changes MANIFEST README LICENSE
@@ -19,9 +19,8 @@
 InstallScript: <<
   %{default_script}
 
-#  ln -s %p/etc/perl/XML/SAX/ParserDetails.ini 
%i/lib/perl5/XML/SAX/ParserDetails.ini
+  ln -s %p/etc/perl5/%type_raw[perl]/XML/SAX/ParserDetails.ini 
%i/lib/perl5/%type_raw[perl]/XML/SAX
 
-#  mv %i/lib/perl5/XML %i/lib/perl5/%type_raw[perl]
   mv %i/share/man %i/lib/perl5/%type_raw[perl]
   mv %i/bin/update-perl-sax-parsers 
%i/bin/update-perl%type_pkg[perl]-sax-parsers
   mv %i/bin %i/sbin
@@ -29,9 +28,9 @@
 PreInstScript: <<
 if [ "$1" = install ]
 then
-        install -d -m 755 %p/etc/perl/XML/SAX
-        install -d -m 755 %p/etc/perl/XML/SAX/ParserDetails.d
-        touch %p/etc/perl/XML/SAX/ParserDetails.ini
+        install -d -m 755 %p/etc/perl5/%type_raw[perl]/XML/SAX
+        install -d -m 755 %p/etc/perl5/%type_raw[perl]/XML/SAX/ParserDetails.d
+        touch %p/etc/perl5/%type_raw[perl]/XML/SAX/ParserDetails.ini
 elif [ "$1" = upgrade ]
 then
         install -d -m 755 %p/etc/perl/XML
@@ -39,9 +38,9 @@
         then
                 mv %p/etc/xml/SAX %p/etc/perl/XML
         else
-                install -d -m 755 %p/etc/perl/XML/SAX
-                install -d -m 755 %p/etc/perl/XML/SAX/ParserDetails.d
-                touch %p/etc/perl/XML/SAX/ParserDetails.ini
+                install -d -m 755 %p/etc/perl5/%type_raw[perl]/XML/SAX
+                install -d -m 755 
%p/etc/perl5/%type_raw[perl]/XML/SAX/ParserDetails.d
+                touch %p/etc/perl5/%type_raw[perl]/XML/SAX/ParserDetails.ini
         fi
 fi
 <<
@@ -55,9 +54,9 @@
 PreRmScript: <<
 if [ "$1" = remove ]
 then
-        install -d -m 755 %p/etc/perl/XML/SAX
-        install -d -m 755 %p/etc/perl/XML/SAX/ParserDetails.d
-        touch %p/etc/perl/XML/SAX/ParserDetails.ini
+        install -d -m 755 %p/etc/perl5/%type_raw[perl]/XML/SAX
+        install -d -m 755 %p/etc/perl5/%type_raw[perl]/XML/SAX/ParserDetails.d
+        touch %p/etc/perl5/%type_raw[perl]/XML/SAX/ParserDetails.ini
         %p/sbin/update-perl%type_pkg[perl]-sax-parsers --remove 
XML::SAX::PurePerl
         %p/sbin/update-perl%type_pkg[perl]-sax-parsers --update
 fi
@@ -65,7 +64,7 @@
 PostRmScript: <<
 if [ "$1" = purge ]
 then
-        rm -f %p/etc/perl/XML/SAX/ParserDetails.ini
+        rm -f %p/etc/perl5/%type_raw[perl]/XML/SAX/ParserDetails.ini
         cd %p/etc/perl && \
                 rmdir -p XML/SAX/ParserDetails.d || true
 fi
@@ -77,11 +76,15 @@
 returning any SAX parser installed on the user's system.
 <<
 DescPackaging: <<
-XML::SAX uses catalogs stored in %p/etc/perl/XML/SAX/ParserDetails.d to
-managed the details of parsers installed on the local system.  They are
+XML::SAX uses catalogs stored in 
+%p/etc/perl5/%type_raw[perl]/XML/SAX/ParserDetails.d
+to managed the details of parsers installed on the local system.  They are
 managed via the update-perl-sax-parsers script.  Each package that provides a
 SAX parser should also call this script within Pre/PostInstScript.
 
+The default XML::SAX parser is the _last_ entry in ParserDetails.d. Therefore
+the reverse directory listing is used in update-perl-sax-parsers
+
 This implementation was taken from the debian package of XML::SAX.
 
 Previous maintainer: Chris Leishman <[EMAIL PROTECTED]>


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Fink-commits mailing list
Fink-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-commits

Reply via email to