[82777] trunk/dports/science

mk at macports.org mk at macports.org
Fri Aug 19 17:37:14 PDT 2011


Revision: 82777
          http://trac.macports.org/changeset/82777
Author:   mk at macports.org
Date:     2011-08-19 17:37:14 -0700 (Fri, 19 Aug 2011)
Log Message:
-----------
science/scotch: new port

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

Added: trunk/dports/science/scotch/Portfile
===================================================================
--- trunk/dports/science/scotch/Portfile	                        (rev 0)
+++ trunk/dports/science/scotch/Portfile	2011-08-20 00:37:14 UTC (rev 82777)
@@ -0,0 +1,81 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem          1.0
+
+name                scotch
+version             5.1.11
+# this is specific to this port and *version* for downloading it:
+set release         28043
+
+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.
+long_description    ${description}
+
+homepage            http://gforge.inria.fr/projects/scotch
+master_sites        https://gforge.inria.fr/frs/download.php/${release}
+distname            scotch_${version}
+
+livecheck.type      regex
+livecheck.url       https://gforge.inria.fr/frs/?group_id=248
+livecheck.regex     "scotch_(5\\.\\d+\\.\\d+)\\.tar\\.gz"
+
+use_bzip2           no
+
+worksrcdir          ${name}_${version}/src
+
+checksums           md5     36d638a227f38a219b51fe8ddc2093ac \
+                    sha1    7cee69345bd101b0dbd8aff9b410dea6834c32d6 \
+                    rmd160  2b72f555af192a17eecec65d50bd241ad87adec2
+
+use_configure       no
+
+variant universal {
+}
+
+if {[variant_isset universal]} {
+    set archflags ${configure.universal_cflags}
+} else {
+    set archflags ${configure.cc_archflags}
+}
+
+depends_lib         port:openmpi
+
+build.env-append    CC=${configure.cc} \
+                    CXX=${configure.cxx} \
+                    CFLAGS="${configure.cflags} ${archflags}" \
+                    CXXFLAGS="${configure.cxxflags} ${archflags}" \
+                    LDFLAGS="[join ${configure.ldflags}] ${archflags}"
+
+if {${configure.sdkroot} != ""} {
+    build.env-append SDK=${configure.sdkroot}
+}
+
+pre-build {
+	ln -sf ${worksrcpath}/Make.inc/Makefile.inc.i686_mac_darwin8 ${worksrcpath}/Makefile.inc
+}
+
+build.target scotch ptscotch
+
+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
+# This needs iteration through folders:
+#    eval xinstall -m 755 [glob ${worksrcpath}/../man/*] ${destroot}${prefix}/man
+}
+
+post-install {
+	ui_msg \
+"  ================================================================= \n \
+Note that this port currently doesn't install any man pages. \n \
+Please refer to documentation available at Scotch's project site. \n \
+================================================================="
+}
+


Property changes on: trunk/dports/science/scotch/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110819/c1dc63da/attachment.html>


More information about the macports-changes mailing list