[48975] trunk/dports/math/gmp-ecm

vinc17 at macports.org vinc17 at macports.org
Wed Apr 1 03:34:35 PDT 2009


Revision: 48975
          http://trac.macports.org/changeset/48975
Author:   vinc17 at macports.org
Date:     2009-04-01 03:34:29 -0700 (Wed, 01 Apr 2009)
Log Message:
-----------
Bump to 6.2.2 and added config.guess patch to avoid a useless crash
on PowerPC (at configure time).

Modified Paths:
--------------
    trunk/dports/math/gmp-ecm/Portfile

Added Paths:
-----------
    trunk/dports/math/gmp-ecm/files/
    trunk/dports/math/gmp-ecm/files/patch-config.guess.diff

Modified: trunk/dports/math/gmp-ecm/Portfile
===================================================================
--- trunk/dports/math/gmp-ecm/Portfile	2009-04-01 09:52:28 UTC (rev 48974)
+++ trunk/dports/math/gmp-ecm/Portfile	2009-04-01 10:34:29 UTC (rev 48975)
@@ -3,7 +3,7 @@
 PortSystem 1.0
 
 name                gmp-ecm
-version             6.2.1
+version             6.2.2
 categories          math
 platforms           darwin
 maintainers         vincent-opdarw at vinc17.org
@@ -11,13 +11,15 @@
 long_description    Free implementation of the Elliptic Curve Method (ECM) \
                     for integer factorization.
 homepage            http://gforge.inria.fr/projects/ecm/
-master_sites        http://gforge.inria.fr/frs/download.php/4837/
+master_sites        http://gforge.inria.fr/frs/download.php/19552/
 distname            ecm-${version}
 depends_lib         port:gmp
-checksums           md5 acd90a6063072b2e5d6f7617fee1aab2 \
-                    sha1 bb08c4f1b412110ef64572c387baa5bc45ae8a60 \
-                    rmd160 daa268a93cf43a7236f26435cf013de2fcaa016a
+checksums           md5 1d1644b5318ffa5ed1c0aa53f43d227e \
+                    sha1 99c21aecd29d174269c08c6c1e61566b363fc9b3 \
+                    rmd160 fd5819b232eb81a817ab78466637c91d69929b97
 
+patchfiles          patch-config.guess.diff
+
 post-destroot {
     set docdir ${destroot}${prefix}/share/doc/${name}
     file mkdir ${docdir}

Added: trunk/dports/math/gmp-ecm/files/patch-config.guess.diff
===================================================================
--- trunk/dports/math/gmp-ecm/files/patch-config.guess.diff	                        (rev 0)
+++ trunk/dports/math/gmp-ecm/files/patch-config.guess.diff	2009-04-01 10:34:29 UTC (rev 48975)
@@ -0,0 +1,36 @@
+--- config.guess.bak	2009-04-01 12:07:34.000000000 +0200
++++ config.guess	2009-04-01 12:11:37.000000000 +0200
+@@ -274,7 +274,8 @@
+   # a function descriptor, not actual code.  But this doesn't matter since
+   # AIX doesn't allow mfpvr anyway.
+   #
+-  cat >$dummy.c <<\EOF
++  if test "`uname`" != Darwin; then
++    cat >$dummy.c <<\EOF
+ #include <stdio.h>
+ struct {
+   int   n;  /* force 4-byte alignment */
+@@ -312,15 +313,16 @@
+   return 0;
+ }
+ EOF
+-  if ($CC_FOR_BUILD $dummy.c -o $dummy) >/dev/null 2>&1; then
+-    # This style construct is needed on AIX 4.3 to suppress the SIGILL error
+-    # from (*fun)().  Using $SHELL -c ./$dummy 2>/dev/null doesn't work.
+-    { x=`./$dummy`; } 2>/dev/null
+-    if test -n "$x"; then
+-      exact_cpu=$x
++    if ($CC_FOR_BUILD $dummy.c -o $dummy) >/dev/null 2>&1; then
++      # This style construct is needed on AIX 4.3 to suppress the SIGILL error
++      # from (*fun)().  Using $SHELL -c ./$dummy 2>/dev/null doesn't work.
++      { x=`./$dummy`; } 2>/dev/null
++      if test -n "$x"; then
++        exact_cpu=$x
++      fi
+     fi
++    rm -f $dummy.c $dummy.o $dummy $dummy.core
+   fi
+-  rm -f $dummy.c $dummy.o $dummy $dummy.core
+ 
+   # Grep the linux kernel /proc/cpuinfo pseudo-file.
+   # Anything unrecognised is ignored, since of course we mustn't spit out
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090401/4e94e2e7/attachment.html>


More information about the macports-changes mailing list