Update of /cvsroot/fink/dists/10.7/stable/main/finkinfo/libs/perlmods
In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv15212

Modified Files:
        xml-sax-pm.info xml-sax-pm.patch 
Log Message:
Simplify PatchScript and use correct perl on all versions.

Index: xml-sax-pm.patch
===================================================================
RCS file: 
/cvsroot/fink/dists/10.7/stable/main/finkinfo/libs/perlmods/xml-sax-pm.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- xml-sax-pm.patch    22 Jul 2011 13:40:24 -0000      1.1
+++ xml-sax-pm.patch    13 Jul 2013 22:24:46 -0000      1.2
@@ -101,7 +101,7 @@
 --- 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       2007-04-09 22:00:26.000000000 
-0500
 @@ -0,0 +1,156 @@
-+#!/usr/bin/env perl@PERL_RAW@
++#!@FULLPERL@
 +## ----------------------------------------------------------------------
 +## Debian update-perl-sax-parsers version 0.1
 +## ----------------------------------------------------------------------

Index: xml-sax-pm.info
===================================================================
RCS file: 
/cvsroot/fink/dists/10.7/stable/main/finkinfo/libs/perlmods/xml-sax-pm.info,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- xml-sax-pm.info     4 Jul 2013 18:53:39 -0000       1.5
+++ xml-sax-pm.info     13 Jul 2013 22:24:46 -0000      1.6
@@ -1,7 +1,7 @@
 Info2: <<
 Package: xml-sax-pm%type_pkg[perl]
 Version: 0.99
-Revision: 2
+Revision: 3
 
 Replaces: xml-sax-pm (<= 0.12-16), %{Ni}560, %{Ni}580, %{Ni}581, %{Ni}584, 
%{Ni}586
 Source: mirror:cpan:authors/id/G/GR/GRANTM/XML-SAX-%v.tar.gz
@@ -11,16 +11,12 @@
 BuildDepends: fink (>= 0.29.0-1)
 UpdatePOD: true
 PatchFile: %{Ni}.patch
-PatchFile-MD5: 22cb3379b03658a801301b06377acf74
+PatchFile-MD5: 45dfe0810ef2e1de2a9876eb6d388f7f
 PatchScript: <<
 #! /bin/sh -ev
-  if [ "%type_pkg[perl]" = "5123" ] ||  [ "%type_pkg[perl]" = "5124" ]; then
-  sed -e 's|@PREFIX@|%p|g' -e 's|env perl@PERL_RAW@|env perl5.12|g' -e 
's|@PERL_RAW@|%type_raw[perl]|g' < %{PatchFile} | patch -p1
-  elif [ "%type_pkg[perl]" = "5162" ]; then
-  sed -e 's|@PREFIX@|%p|g' -e 's|env perl@PERL_RAW@|env perl5.16|g' -e 
's|@PERL_RAW@|%type_raw[perl]|g' < %{PatchFile} | patch -p1
-  else
-  sed -e 's|@PREFIX@|%p|g' -e 's|@PERL_RAW@|%type_raw[perl]|g' < %{PatchFile} 
| patch -p1
-  fi
+  export FULLPERL=`perl -e 'print $ARGV[0]=~/PERL="(.*?)"/' '%c'`
+  
+  sed -e 's|@PREFIX@|%p|g' -e 's|@PERL_RAW@|%type_raw[perl]|g' -e 
"s|@FULLPERL@|$FULLPERL|g" < %{PatchFile} | patch -p1
 <<
 DocFiles: Changes README LICENSE
 


------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
Fink-commits mailing list
Fink-commits@lists.sourceforge.net
http://news.gmane.org/gmane.os.apple.fink.cvs

Reply via email to