[118948] trunk/dports/science/openmpi/Portfile

sean at macports.org sean at macports.org
Sun Apr 13 19:32:32 PDT 2014


Revision: 118948
          https://trac.macports.org/changeset/118948
Author:   sean at macports.org
Date:     2014-04-13 19:32:32 -0700 (Sun, 13 Apr 2014)
Log Message:
-----------
openmpi: organize some blocks of code

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

Modified: trunk/dports/science/openmpi/Portfile
===================================================================
--- trunk/dports/science/openmpi/Portfile	2014-04-14 02:32:25 UTC (rev 118947)
+++ trunk/dports/science/openmpi/Portfile	2014-04-14 02:32:32 UTC (rev 118948)
@@ -35,20 +35,12 @@
                     sha1    4a0de91c50a51e588810cc03d48c03429f3c1006 \
                     rmd160  ee410ead12a4c26afb76aaeef87304b78ce4ad8a \
                     sha256  cb3eef6880537d341d5d098511d390ec853716a6ec94007c03a0d1491b2ac8f2
+use_bzip2           yes
 
 livecheck.type      regex
 livecheck.url       http://www.open-mpi.org/software/ompi/v1.7/
 livecheck.regex     openmpi-(\[0-9\.\]+).tar.bz2
 
-use_bzip2           yes
-
-pre-extract { file mkdir ${workpath}/build }
-
-# https://trac.macports.org/ticket/39089
-compiler.blacklist  gcc-4.0
-
-compiler.blacklist-append  llvm-gcc-4.2 macports-llvm-gcc-4.2
-
 # As OpenMPI creates compiler wrappers, there are lots of
 # variants for what compiler the user would like to wrap.
 
@@ -99,6 +91,12 @@
     livecheck.regex     openmpi-${version}r(\[0-9\]+).tar.bz2
 }
 
+pre-extract { file mkdir ${workpath}/build }
+
+# https://trac.macports.org/ticket/39089
+compiler.blacklist  gcc-4.0
+compiler.blacklist-append  llvm-gcc-4.2 macports-llvm-gcc-4.2
+
 configure.dir       ${workpath}/build
 configure.cmd       ${worksrcpath}/configure
 configure.args      --enable-mpi-fortran \
@@ -106,9 +104,6 @@
                     --with-wrapper-ldflags="-Wl,-flat_namespace" \
                     LIBS="-Wl,-flat_namespace"
 
-build.dir           ${configure.dir}
-destroot.dir        ${build.dir}
-
 # remove -arch from ldflags, ticket #22833
 configure.ld_archflags
 configure.ccache no
@@ -119,6 +114,9 @@
 configure.cppflags-delete   -I${prefix}/include
 configure.ldflags-delete    -L${prefix}/lib
 
+build.dir           ${configure.dir}
+destroot.dir        ${build.dir}
+
 if {${subport} != ${name}} {
     set cname                   [lindex [split ${subport} -] end]
     if {${cname} == "default"} {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140413/4c32ad0b/attachment.html>


More information about the macports-changes mailing list