Update of /cvsroot/fink/dists/10.4/unstable/main/finkinfo/libs/perlmods
In directory sfp-cvsdas-3.v30.ch3.sourceforge.com:/tmp/cvs-serv25865
Modified Files:
podtohtml-pm.info
Added Files:
podtohtml-pm.patch
Log Message:
fix self-test
--- NEW FILE: podtohtml-pm.patch ---
diff -Nurd -x'*~' PodToHTML-0.08.orig/t/script.t PodToHTML-0.08/t/script.t
--- PodToHTML-0.08.orig/t/script.t 2008-07-27 17:55:23.000000000 -0400
+++ PodToHTML-0.08/t/script.t 2010-08-09 06:39:23.000000000 -0400
@@ -1,11 +1,27 @@
#!perl
use Test;
+use Config;
plan test => 1;
mkdir("t/html",0777) unless -d "t/html";
-my $code = system($^X,"-Mblib","podtohtml",'-q',
+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
+ }
+}
+push @command, $^X;
+my $code = system(@command,"-Mblib","podtohtml",'-q',
'-d' => "t/html",-i => "t/html/index.html",
"podtohtml","Pod");
ok($code,0,"Error from script");
unlink glob( "t/html/*.html" );
-rmdir "t/html";
\ No newline at end of file
+rmdir "t/html";
Index: podtohtml-pm.info
===================================================================
RCS file:
/cvsroot/fink/dists/10.4/unstable/main/finkinfo/libs/perlmods/podtohtml-pm.info,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- podtohtml-pm.info 4 Jun 2010 02:00:41 -0000 1.1
+++ podtohtml-pm.info 9 Aug 2010 10:40:51 -0000 1.2
@@ -16,6 +16,9 @@
Source: mirror:cpan:authors/id/B/BD/BDFOY/PodToHTML-%v.tar.gz
Source-MD5: fec09c1e062ed4c670b6b982649e2f24
+PatchFile: %{ni}.patch
+PatchFile-MD5: 1790edf41b28a4775856f4c873cccd66
+
UpdatePOD: true
DocFiles: Changes LICENSE README
------------------------------------------------------------------------------
This SF.net email is sponsored by
Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev
_______________________________________________
Fink-commits mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.cvs