[69667] trunk/dports/perl/p5-math-pari

ricci at macports.org ricci at macports.org
Mon Jul 12 19:54:27 PDT 2010


Revision: 69667
          http://trac.macports.org/changeset/69667
Author:   ricci at macports.org
Date:     2010-07-12 19:54:26 -0700 (Mon, 12 Jul 2010)
Log Message:
-----------
update to 2.01080604
add patches so p5-math-pari will compile (in perl scripts) on 10.5 i368.

Modified Paths:
--------------
    trunk/dports/perl/p5-math-pari/Portfile

Added Paths:
-----------
    trunk/dports/perl/p5-math-pari/files/
    trunk/dports/perl/p5-math-pari/files/patch-MANIFEST.diff
    trunk/dports/perl/p5-math-pari/files/patch-pari-2-1-7_src_kernel_ix86_level0.h.diff
    trunk/dports/perl/p5-math-pari/files/patch_libPARI_Makefile.PL.diff
    trunk/dports/perl/p5-math-pari/files/patch_utils_Math_PariBuild.pm.diff

Modified: trunk/dports/perl/p5-math-pari/Portfile
===================================================================
--- trunk/dports/perl/p5-math-pari/Portfile	2010-07-12 23:53:00 UTC (rev 69666)
+++ trunk/dports/perl/p5-math-pari/Portfile	2010-07-13 02:54:26 UTC (rev 69667)
@@ -4,13 +4,23 @@
 PortSystem          1.0
 PortGroup           perl5 1.0
 
-perl5.setup         Math-Pari 2.010801
+perl5.setup         Math-Pari 2.01080604
 maintainers         nomaintainer
 description         perl interface to pari.
 long_description    ${description}
 
 platforms           darwin
 
-checksums           md5     c0628a5ad79a53a22188aca476ea45ce \
-                    sha1    9becc6cbbb80983408de7b3f33e7f19a8015cc34 \
-                    rmd160  72af931cd38b3d2e7bb158bbbe6221292dfe07e1
+checksums           md5     27f5999671fe2a29cfd2e8c8a1f9308e \
+                    sha1    547474a4ba2c2bb0ca89d34e85ad1e58f2b64873 \
+                    rmd160  05a9ea99adf21a1011c37d0fd4e5caa58b981150
+
+post-patch {
+	file copy ${filespath}/patch-pari-2-1-7_src_kernel_ix86_level0.h.diff ${worksrcpath}/patches/
+}
+
+platform darwin 9 i386 {
+	patchfiles-append	patch_libPARI_Makefile.PL.diff	\
+				patch_utils_Math_PariBuild.pm.diff	\
+				patch-MANIFEST.diff
+}

Added: trunk/dports/perl/p5-math-pari/files/patch-MANIFEST.diff
===================================================================
--- trunk/dports/perl/p5-math-pari/files/patch-MANIFEST.diff	                        (rev 0)
+++ trunk/dports/perl/p5-math-pari/files/patch-MANIFEST.diff	2010-07-13 02:54:26 UTC (rev 69667)
@@ -0,0 +1,10 @@
+--- MANIFEST.orig	2010-03-03 13:14:40.000000000 -0800
++++ MANIFEST	2010-07-12 19:23:00.000000000 -0700
+@@ -26,6 +26,7 @@
+ patches/diff_2.1.7_div
+ patches/diff_2.1.6_align_power_of_2
+ patches/diff_2.1.7_mingw-w64
++patches/patch-pari-2-1-7_src_kernel_ix86_level0.h.diff
+ t/000_load-problem.t
+ t/00_Pari.t
+ t/PlotRect.t

Added: trunk/dports/perl/p5-math-pari/files/patch-pari-2-1-7_src_kernel_ix86_level0.h.diff
===================================================================
--- trunk/dports/perl/p5-math-pari/files/patch-pari-2-1-7_src_kernel_ix86_level0.h.diff	                        (rev 0)
+++ trunk/dports/perl/p5-math-pari/files/patch-pari-2-1-7_src_kernel_ix86_level0.h.diff	2010-07-13 02:54:26 UTC (rev 69667)
@@ -0,0 +1,16 @@
+--- ./src/kernel/ix86/level0.h.orig	2010-07-12 17:11:31.000000000 -0700
++++ ./src/kernel/ix86/level0.h	2010-07-12 19:08:30.000000000 -0700
+@@ -21,6 +21,13 @@
+ #define SAVE_OVERFLOW
+ #define LOCAL_HIREMAINDER
+ #define SAVE_HIREMAINDER
++#define NEED_OVERFLOW_HIREMAINDER
++
++#ifdef NEED_OVERFLOW_HIREMAINDER
++ulong overflow;
++ulong hiremainder;
++#endif	/* NEED_OVERFLOW_HIREMAINDER */
++
+ 
+ BEGINEXTERN
+ extern  ulong overflow;

Added: trunk/dports/perl/p5-math-pari/files/patch_libPARI_Makefile.PL.diff
===================================================================
--- trunk/dports/perl/p5-math-pari/files/patch_libPARI_Makefile.PL.diff	                        (rev 0)
+++ trunk/dports/perl/p5-math-pari/files/patch_libPARI_Makefile.PL.diff	2010-07-13 02:54:26 UTC (rev 69667)
@@ -0,0 +1,33 @@
+--- libPARI/Makefile.PL.orig	2009-11-06 19:21:40.000000000 -0800
++++ libPARI/Makefile.PL	2010-07-12 16:54:09.000000000 -0700
+@@ -120,7 +120,7 @@
+   if ($Config{osname} eq 'os2' and not $extra_inc =~ /os2(?!\S)/) {
+     # 2.1.3 does not include dlctl.h
+     $mycflags .= ' -DRTLD_LAZY=0 -DRTLD_GLOBAL=0';
+-    $inc .= ' -I $(PERL_INC)';
++    $inc .= ' -I$(PERL_INC)';
+   }
+ } elsif ($machine eq 'hppa') {
+   $mycflags="-Aa -DHPPA";	#$mycflags="-O -Aa -DHPPA";
+@@ -216,7 +216,7 @@
+ 		    CFG_CCCDLFLAGS => $Config{cccdlflags},
+ 		   },
+     DEFINE	=> $mycflags,
+-    INC		=> $extra_inc . ' -I $(PARI_DIR)/src/headers -I $(PARI_DIR)/src/graph -I .'
++    INC		=> $extra_inc . ' -I$(PARI_DIR)/src/headers -I$(PARI_DIR)/src/graph -I.'
+ 			. $inc,
+     C		=> \@cfiles,
+     SKIP	=> [qw( distclean test dist makeaperl xs_o static)],
+@@ -237,10 +237,10 @@
+   my $inlines = $inlines2[1];
+   $converted = <<EOC if $kernel{convert};
+ $kernel{converted1}: $kernel{file1} $kernel{header1}
+-	\$(CPP) -I . \$(INC) -I $kernel{dir1} \$(DEFINE) \$(ASSCPPDEFINE) $kernel{file1} | perl -ne "s/%\\s+/%/g; print unless /^\\s*#/" > \$@
++	\$(CPP) -I. \$(INC) -I$kernel{dir1} \$(DEFINE) \$(ASSCPPDEFINE) $kernel{file1} | perl -ne "s/%\\s+/%/g; s/##//g; print unless /^#/" > \$@
+ 
+ kernel2.s: $kernel{file2}
+-	\$(CPP) -I . \$(INC) -I $kernel{dir1} \$(DEFINE) \$(ASSCPPDEFINE) $kernel{file2} | perl -ne "s/%\\s+/%/g; print unless /^\\s*#/" > \$@
++	\$(CPP) -I. \$(INC) -I$kernel{dir1} \$(DEFINE) \$(ASSCPPDEFINE) $kernel{file2} | perl -ne "s/%\\s+/%/g; s/##//g; print unless /^#/" > \$@
+ 
+ EOC
+   my $create_mp = '';

Added: trunk/dports/perl/p5-math-pari/files/patch_utils_Math_PariBuild.pm.diff
===================================================================
--- trunk/dports/perl/p5-math-pari/files/patch_utils_Math_PariBuild.pm.diff	                        (rev 0)
+++ trunk/dports/perl/p5-math-pari/files/patch_utils_Math_PariBuild.pm.diff	2010-07-13 02:54:26 UTC (rev 69667)
@@ -0,0 +1,19 @@
+--- utils/Math/PariBuild.pm.orig	2010-07-12 19:38:13.000000000 -0700
++++ utils/Math/PariBuild.pm	2010-07-12 19:37:54.000000000 -0700
+@@ -486,6 +486,7 @@
+ 			      'patches/diff_2.1.7_-O',
+ 			      'patches/diff_2.1.7_div',
+ 			      'patches/diff_2.1.6_align_power_of_2',
++			      'patches/patch-pari-2-1-7_src_kernel_ix86_level0.h.diff',
+ 			      'patches/diff_2.1.7_restart'],
+ 		);
+   print "Looking for patches for $v...\n";
+@@ -1317,7 +1318,7 @@
+ sub extra_includes {
+   my $pari_dir = shift;
+   # Some #include directives assume us inside $pari_dir/OARCH; replace by src
+-  return join ' -I ', '', grep -d, "$pari_dir/src/systems/$^O", "$pari_dir/src";
++  return join ' -I', '', grep -d, "$pari_dir/src/systems/$^O", "$pari_dir/src";
+ }
+ 
+ sub build_funclists_ourselves ($) {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100712/5ac8b56d/attachment.html>


More information about the macports-changes mailing list