[105081] trunk/dports/science/ncarg/Portfile
takeshi at macports.org
takeshi at macports.org
Tue Apr 9 01:16:28 PDT 2013
Revision: 105081
https://trac.macports.org/changeset/105081
Author: takeshi at macports.org
Date: 2013-04-09 01:16:28 -0700 (Tue, 09 Apr 2013)
Log Message:
-----------
ncl: conformed UsingTheRightCompiler to avoid conflicts with xnu-headers. Segmentation fault previously occurred with macports-gcc-4.x does not seem to occur with the current version. g95 variant still has a conflict with xnu-headers. See #38687
Modified Paths:
--------------
trunk/dports/science/ncarg/Portfile
Modified: trunk/dports/science/ncarg/Portfile
===================================================================
--- trunk/dports/science/ncarg/Portfile 2013-04-09 05:10:08 UTC (rev 105080)
+++ trunk/dports/science/ncarg/Portfile 2013-04-09 08:16:28 UTC (rev 105081)
@@ -2,10 +2,11 @@
# $Id$
PortSystem 1.0
+PortGroup conflicts_build 1.0
name ncarg
version 6.1.2
-revision 1
+revision 2
categories science
maintainers takeshi
license {UCAR-Unidata public-domain BSD LGPL-3 GPL-3}
@@ -152,7 +153,6 @@
}
}
-# avoid segmentation fault on ncl function setfileoption()
# clang fails to build ncl
if {${os.major}>=10} {
configure.compiler llvm-gcc-4.2
@@ -217,9 +217,14 @@
}
}
-# Only configure.fc is set (against UsingTheRightCompiler) since
-# ncl function setfileoption() causes Segmentation Fault
-# when built with macports-gcc-4.x.
+# The build script ignores the build errors.
+# Check if ncl is built here.
+post-build {
+ if {![file exists ${worksrcpath}/ni/src/ncl/ncl]} {
+ ui_error "ncl did not built"
+ }
+}
+
variant g95 conflicts gcc43 gcc44 gcc45 gcc46 gcc47 description {compile with g95} {
configure.fc ${prefix}/bin/g95
depends_build-append port:g95
@@ -227,27 +232,27 @@
}
variant gcc43 conflicts gcc44 gcc45 gcc46 gcc47 g95 description {compile with gcc 4.3} {
- configure.fc ${prefix}/bin/gfortran-mp-4.3
+ configure.compiler macports-gcc-4.3
depends_build-append port:gcc43
}
variant gcc44 conflicts gcc43 gcc45 gcc46 gcc47 g95 description {compile with gcc 4.4} {
- configure.fc ${prefix}/bin/gfortran-mp-4.4
+ configure.compiler macports-gcc-4.4
depends_build-append port:gcc44
}
variant gcc45 conflicts gcc43 gcc44 gcc46 gcc47 g95 description {compile with gcc 4.5} {
- configure.fc ${prefix}/bin/gfortran-mp-4.5
+ configure.compiler macports-gcc-4.5
depends_build-append port:gcc45
}
variant gcc46 conflicts gcc43 gcc44 gcc45 gcc47 g95 description {compile with gcc 4.6} {
- configure.fc ${prefix}/bin/gfortran-mp-4.6
+ configure.compiler macports-gcc-4.6
depends_build-append port:gcc46
}
variant gcc47 conflicts gcc43 gcc44 gcc45 gcc46 g95 description {compile with gcc 4.7} {
- configure.fc ${prefix}/bin/gfortran-mp-4.7
+ configure.compiler macports-gcc-4.7
depends_build-append port:gcc47
}
@@ -255,6 +260,12 @@
default_variants +gcc47
}
+# ncarg fails to build some binaries with xnu-headers installed
+# See #38687
+if {[variant_isset g95]} {
+ conflicts_build-append xnu-headers
+}
+
variant accelerate description {use Accelerate.framework} {
if {![variant_isset g95]} {
configure.fflags-append -ff2c
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130409/81010d5b/attachment.html>
More information about the macports-changes
mailing list