[116363] trunk/dports/science/scotch/Portfile

sean at macports.org sean at macports.org
Thu Jan 23 12:13:43 PST 2014


Revision: 116363
          https://trac.macports.org/changeset/116363
Author:   sean at macports.org
Date:     2014-01-23 12:13:43 -0800 (Thu, 23 Jan 2014)
Log Message:
-----------
scotch: update to 6.0.0

Modified Paths:
--------------
    trunk/dports/science/scotch/Portfile

Modified: trunk/dports/science/scotch/Portfile
===================================================================
--- trunk/dports/science/scotch/Portfile	2014-01-23 20:13:38 UTC (rev 116362)
+++ trunk/dports/science/scotch/Portfile	2014-01-23 20:13:43 UTC (rev 116363)
@@ -4,7 +4,7 @@
 PortSystem          1.0
 
 name                scotch
-version             5.1.12b
+version             6.0.0
 
 set v_version_wo_char {}
 set v_char            {}
@@ -12,14 +12,15 @@
 regexp $v_regexp ${version} -> v_version_wo_char v_char
 
 # this is specific to this port and *version* for downloading it:
-set release         28978
+set release         31832
 
 categories          science
 maintainers         mk pixilla
 platforms           darwin
 license             CeCILL-C
 
-description         Scotch is a software package for graph and mesh/hypergraph partitioning and sparse matrix ordering.
+description         Scotch is a software package for graph and mesh/hypergraph \
+                    partitioning and sparse matrix ordering.
 long_description    ${description}
 
 homepage            http://gforge.inria.fr/projects/scotch
@@ -34,9 +35,8 @@
 
 worksrcdir          ${name}_${v_version_wo_char}_esmumps/src
 
-checksums           md5     e13b49be804755470b159d7052764dc0 \
-                    sha1    3866deea3199bc364d31ec46c63adcb799a8cf48 \
-                    rmd160  38ed5135e401767d0df8ecea6bcf8f7e4a60a464
+checksums           rmd160  71c0c7d189a35e261a09f239696369e5f41b2508 \
+                    sha256  8206127d038bda868dda5c5a7f60ef8224f2e368298fbb01bf13fa250e378dd4
 
 # openmpi is not universal
 universal_variant   no
@@ -91,28 +91,32 @@
 
 depends_lib-append  port:openmpi
 
-build.env-append    CC=${configure.cc} \
-                    CXX=${configure.cxx} \
-                    CFLAGS="${configure.cflags} ${archflags}" \
-                    CXXFLAGS="${configure.cxxflags} ${archflags}" \
-                    LDFLAGS="[join ${configure.ldflags}] ${archflags}"
-
-pre-build {
+post-extract {
     copy ${worksrcpath}/Make.inc/Makefile.inc.i686_mac_darwin8 ${worksrcpath}/Makefile.inc
     reinplace "s|-O3|-O3 -fPIC|" ${worksrcpath}/Makefile.inc
     reinplace "s|gcc|\$(CC)|" ${worksrcpath}/Makefile.inc
     reinplace "s|mpicc|${prefix}/bin/openmpicc|" ${worksrcpath}/Makefile.inc
+
+    # starting with version 6.0, scotch uses a newer version of pthreads which
+    # Apple hasn't provided, so we disable pthreads for now
+    reinplace "s|-DCOMMON_PTHREAD||" ${worksrcpath}/Makefile.inc
+    reinplace "s|-DSCOTCH_PTHREAD||" ${worksrcpath}/Makefile.inc
 }
 
+pre-build {
+    build.env-append    CC=${configure.cc} \
+                        CXX=${configure.cxx} \
+                        CFLAGS="${configure.cflags}" \
+                        CXXFLAGS="${configure.cxxflags}" \
+                        LDFLAGS="[join ${configure.ldflags}]" \
+                        prefix=${prefix}
+}
+
 build.target scotch ptscotch
 
 # scotch and ptscotch MUST be built sequentially according to scotch's INSTALL.txt
 use_parallel_build no
 
-destroot {
-    eval xinstall -m 755 [glob ${worksrcpath}/../bin/*] ${destroot}${prefix}/bin
-    eval xinstall -m 755 [glob ${worksrcpath}/../include/*] ${destroot}${prefix}/include
-    eval xinstall -m 755 [glob ${worksrcpath}/../lib/*] ${destroot}${prefix}/lib
-    xinstall -m 755 -d ${destroot}${prefix}/share/man/man1
-    eval xinstall -m 755 [glob ${worksrcpath}/../man/man1/*] ${destroot}${prefix}/share/man/man1
+pre-destroot {
+    destroot.env-append prefix=${destroot}${prefix}
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140123/13a02edb/attachment.html>


More information about the macports-changes mailing list