[118605] trunk/dports/devel/gmp/Portfile

mcalhoun at macports.org mcalhoun at macports.org
Sat Apr 5 13:26:28 PDT 2014


Revision: 118605
          https://trac.macports.org/changeset/118605
Author:   mcalhoun at macports.org
Date:     2014-04-05 13:26:28 -0700 (Sat, 05 Apr 2014)
Log Message:
-----------
gmp: update version 5.1.2->6.0.0

Modified Paths:
--------------
    trunk/dports/devel/gmp/Portfile

Modified: trunk/dports/devel/gmp/Portfile
===================================================================
--- trunk/dports/devel/gmp/Portfile	2014-04-05 20:14:06 UTC (rev 118604)
+++ trunk/dports/devel/gmp/Portfile	2014-04-05 20:26:28 UTC (rev 118605)
@@ -5,7 +5,7 @@
 PortGroup  muniversal  1.0
 
 name            gmp
-version         5.1.2
+version         6.0.0
 categories      devel math
 license         LGPL-3+
 maintainers     mcalhoun openmaintainer
@@ -25,14 +25,23 @@
 homepage        http://gmplib.org/
 master_sites    gnu
 
-checksums       rmd160  fa4c074c0736c2bac4b6b7d11d5e309d961b5fb1 \
-                sha256  2099deea64ef3e58ac2b42eaaa0286c3231430a8e893359d806bfa31611c1b8f
+checksums           rmd160  2322e21e2042c974dcfaca2da18ae22d43a23ec4 \
+                    sha256  7f8e9a804b9c6d07164cf754207be838ece1219425d64e28cfa3e70d5c759aaf
 
 use_bzip2       yes
 use_parallel_build yes
 
+# There seems to have been errors in the documentation of 6.0.0,
+#    so they released a version 6.0.0a shortly thereafter.
+# See https://gmplib.org/list-archives/gmp-announce/2014-March/000042.html
+distfiles ${name}-${version}a${extract.suffix}
+
 configure.args  --enable-cxx
 
+# Prevent precompiled binaries.
+# See #41614.
+archive_sites
+
 configure.universal_args-delete --disable-dependency-tracking
 
 # Clear all options that affect CFLAGS and CXXFLAGS, since the configure
@@ -63,13 +72,13 @@
 if {![variant_isset universal]} {
     if {${build_arch} eq "x86_64"} {
         configure.env   ABI=64
-        # fails to correctly detect some x86_64 models
+        # Newer processors may not be detected correctly.
         pre-configure {
             set build_triplet [split [exec /usr/bin/env CC=${configure.cc} ${worksrcpath}/config.guess] -]
             set build_cpu [lindex $build_triplet 0]
-            if {$build_cpu != "core2" && $build_cpu != "corei"} {
+            if { ${build_cpu} ne "core2" && ![string match "corei*" ${build_cpu}] } {
                 ui_warn "No processor dependent assembly code being used. gmp might be slower."
-                configure.args-append --build=x86_64-[join [lrange $build_triplet 1 end] -]
+                configure.args-append --build=core2-[join [lrange $build_triplet 1 end] -]
             }
         }
     } elseif {${build_arch} eq "ppc64"} {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140405/ffb73f3b/attachment-0001.html>


More information about the macports-changes mailing list