Update of /cvsroot/fink/dists/10.4/unstable/main/finkinfo/libs/perlmods In directory sfp-cvsdas-3.v30.ch3.sourceforge.com:/tmp/cvs-serv6769
Modified Files: cgi-compress-gzip-pm.info Added Files: cgi-compress-gzip-pm.patch Removed Files: cgi-compress-gzip-pm5100+.patch Log Message: unified patch Index: cgi-compress-gzip-pm.info =================================================================== RCS file: /cvsroot/fink/dists/10.4/unstable/main/finkinfo/libs/perlmods/cgi-compress-gzip-pm.info,v retrieving revision 1.11 retrieving revision 1.12 diff -u -d -r1.11 -r1.12 --- cgi-compress-gzip-pm.info 1 Aug 2010 05:40:22 -0000 1.11 +++ cgi-compress-gzip-pm.info 1 Aug 2010 16:58:55 -0000 1.12 @@ -20,14 +20,8 @@ Source: mirror:cpan:authors/id/C/CD/CDOLAN/CGI-Compress-Gzip-%v.tar.gz Source-MD5: 903f612e27aa63530eb61b186363fecd UpdatePOD: true -PatchFile: %{ni}5100+.patch -PatchFile-MD5: 6b87040d761a96a45494cd6678033b19 -PatchScript: << -#!/bin/sh -ex - if dpkg --compare-versions "%type_raw[perl]" ">=" "5.10.0" ; then - patch -p1 < %{PatchFile} - fi -<< +PatchFile: %{ni}.patch +PatchFile-MD5: 27c13e09a7a966dabde513614a754023 InstallScript: << %{default_script} mv %i/share/man %i/lib/perl5/%type_raw[perl] --- NEW FILE: cgi-compress-gzip-pm.patch --- diff -Nurd -x'*~' CGI-Compress-Gzip-1.03.orig/t/gzip.t CGI-Compress-Gzip-1.03/t/gzip.t --- CGI-Compress-Gzip-1.03.orig/t/gzip.t 2008-10-18 00:31:54.000000000 -0400 +++ CGI-Compress-Gzip-1.03/t/gzip.t 2010-07-30 02:58:47.000000000 -0400 @@ -12,6 +12,7 @@ use IO::Zlib; use Compress::Zlib; use English qw(-no_match_vars); +use Config; BEGIN { @@ -269,6 +270,18 @@ my $redir = 'http://www.foo.com/'; my $interp = "$^X -Iblib/arch -Iblib/lib"; +if ($] >= 5.010 && $Config{"byteorder"} =~ /^1/) { + # little-endian means intel (not powerpc), for which fink has + # multiple single-arch distros that are seen by a single (fat) + # perl interp from apple for a perl version supported by fink + # (i.e., starting with 5.10.0). This is the logic taken from + # Fink::PkgVersion as of fink-0.29.13. + if ( $Config{"longsize"} == 4 ) { + $interp = "/usr/bin/arch -i386 $interp"; # 32-bit + } else { + $interp = "/usr/bin/arch -x86_64 $interp"; # 64-bit + } +} if (defined $Devel::Cover::VERSION) { $interp .= ' -MDevel::Cover'; } --- cgi-compress-gzip-pm5100+.patch DELETED --- ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm _______________________________________________ Fink-commits mailing list Fink-commits@lists.sourceforge.net http://news.gmane.org/gmane.os.apple.fink.cvs