Update of /cvsroot/fink/dists/10.7/stable/main/finkinfo/libs/perlmods
In directory vz-cvs-3.sog:/tmp/cvs-serv12149

Added Files:
        cpan-sqlite-pm.info cpan-sqlite-pm.patch 
        cpan-distnameinfo-pm.info 
Log Message:
to 10.7

--- NEW FILE: cpan-sqlite-pm.patch ---
diff -Nurd -x'*~' CPAN-SQLite-0.202.orig/lib/CPAN/SQLite/META.pm 
CPAN-SQLite-0.202/lib/CPAN/SQLite/META.pm
--- CPAN-SQLite-0.202.orig/lib/CPAN/SQLite/META.pm      2011-06-25 
02:03:53.000000000 -0400
+++ CPAN-SQLite-0.202/lib/CPAN/SQLite/META.pm   2011-08-24 11:52:17.000000000 
-0400
@@ -5,6 +5,7 @@
 use strict;
 use warnings;
 use base qw(Exporter);
+use Config;
 our @EXPORT_OK;
 @EXPORT_OK = qw(setup update);
 our $global_id;
@@ -309,7 +310,21 @@
     $CPAN::FrontEnd->mywarn('Database locked - cannot update.');
     return;
   }
-  my @args = ($^X, '-MCPAN::SQLite::META=setup,update', '-e');
+  my @args;
+  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.
+      push @args, '/usr/bin/arch';
+      if ( $Config{"longsize"} == 4 ) {
+         push @args, '-i386';   # 32-bit
+      } else {
+         push @args, '-x86_64'; # 64-bit
+      }
+  }
+  push @args, ($^X, '-MCPAN::SQLite::META=setup,update', '-e');
   if (-e $db && -s _) {
     my $mtime_db = (stat(_))[9];
     my $time_string = gmtime_string($mtime_db);
diff -Nurd -x'*~' CPAN-SQLite-0.202.orig/t/00compile.t 
CPAN-SQLite-0.202/t/00compile.t
--- CPAN-SQLite-0.202.orig/t/00compile.t        2011-06-12 22:37:45.000000000 
-0400
+++ CPAN-SQLite-0.202/t/00compile.t     2011-08-24 11:55:47.000000000 -0400
@@ -6,6 +6,7 @@
 use Test::More;
 use File::Find;
 use File::Temp qw{ tempdir };
+use Config;
 
 my @modules;
 find(
@@ -30,7 +31,21 @@
     # fake home for cpan-testers
     # no fake requested ## local $ENV{HOME} = tempdir( CLEANUP => 1 );
 
-    like( qx{ $^X -Ilib -e "require $_; print '$_ ok'" }, qr/^\s*$_ ok/s, "$_ 
loaded ok" )
+    my @command;
+    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.
+        push @command, '/usr/bin/arch';
+        if ( $Config{"longsize"} == 4 ) {
+            push @command, '-i386';   # 32-bit
+        } else {
+            push @command, '-x86_64'; # 64-bit
+        }
+    }
+    like( qx{ @command $^X -Ilib -e "require $_; print '$_ ok'" }, qr/^\s*$_ 
ok/s, "$_ loaded ok" )
         for sort @modules;
 
     SKIP: {

--- NEW FILE: cpan-sqlite-pm.info ---
Info2: <<
Package: cpan-sqlite-pm%type_pkg[perl]
Version: 0.202
Revision: 1
Source: mirror:cpan:authors/id/S/ST/STRO/CPAN-SQLite-%v.tar.gz
Source-MD5: c409f95d5316487201d08b5a2d81e7a2

#file-homedir-pm586 variant not available
Type: perl (5.12.3)

BuildDepends: fink (>= 0.24.12)
Depends: <<
        archive-tar-pm%type_pkg[perl] (>= 1.54-1),
        cpan-distnameinfo-pm,
        dbd-sqlite-pm%type_pkg[perl] (>= 1.27-1),
        dpkg-base-files,
        file-homedir-pm%type_pkg[perl],
        io-compress-pm%type_pkg[perl],
        io-zlib-pm%type_pkg[perl],
        libwww-pm%type_pkg[perl],
        perl%type_pkg[perl]-core
<<

PatchFile: %{ni}.patch
PatchFile-MD5: e0534e13d084dd0ab615ca1e87e8e86c

InstallScript: <<
        %{default_script}
        mv %i/share/man %i/lib/perl5/%type_raw[perl]
        mv %i/bin/cpandb %i/bin/cpandb-%type_raw[perl]
<<
PostInstScript: <<
if [ "$1" = configure ]; then
        update-alternatives --install %p/bin/cpandb cpandb 
%p/bin/cpandb-%type_raw[perl] %type_pkg[perl]
fi
<<
PreRmScript: <<
if [ "$1" = remove ]; then
        update-alternatives --remove cpandb %p/bin/cpandb-%type_raw[perl]
fi
<<
UpdatePOD: True
DocFiles: Changes README
DescPackaging: <<
        Not sure why file-homedir-pmXXX is needed:
        https://rt.cpan.org/Public/Bug/Display.html?id=58096
        but it blocks some variants.
<<
Description: Database for CPAN data
License: Artistic/GPL
Homepage: http://search.cpan.org/dist/CPAN-SQLite
Maintainer: Daniel Macks <[email protected]>
<<

--- NEW FILE: cpan-distnameinfo-pm.info ---
Package: cpan-distnameinfo-pm
Version: 0.12
Revision: 1
Source: mirror:cpan:authors/id/G/GB/GBARR/CPAN-DistnameInfo-%v.tar.gz
Source-MD5: 06bc803c0e4fb7735ddc7282163f1cc3
Type: perl
UpdatePOD: true
DocFiles: Changes README
License: Artistic/GPL
Description: Extract name and version from a dist filename
Maintainer: None <[email protected]>
Homepage: http://search.cpan.org/dist/CPAN-DistnameInfo
DescPackaging: <<
 Report bugs to the maintainer or the CPAN bug tracker:
 http://rt.cpan.org/NoAuth/Bugs.html?Dist=CPAN-DistnameInfo

        Former maintainer: Chris Dolan <[email protected]>
<<


------------------------------------------------------------------------------
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management 
Up to 160% more powerful than alternatives and 25% more efficient. 
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
_______________________________________________
Fink-commits mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.cvs

Reply via email to