[144336] trunk/dports/science/silo/Portfile
dstrubbe at macports.org
dstrubbe at macports.org
Wed Jan 6 11:21:10 PST 2016
Revision: 144336
https://trac.macports.org/changeset/144336
Author: dstrubbe at macports.org
Date: 2016-01-06 11:21:10 -0800 (Wed, 06 Jan 2016)
Log Message:
-----------
silo: Use compilers portgroup for Fortran variants. Clarify meaning in description. Update livecheck. Remove irrelevant comment. Add caution about MPI with HDF5.
Modified Paths:
--------------
trunk/dports/science/silo/Portfile
Modified: trunk/dports/science/silo/Portfile
===================================================================
--- trunk/dports/science/silo/Portfile 2016-01-06 19:16:36 UTC (rev 144335)
+++ trunk/dports/science/silo/Portfile 2016-01-06 19:21:10 UTC (rev 144336)
@@ -2,6 +2,7 @@
# $Id$
PortSystem 1.0
+PortGroup compilers 1.0
name silo
version 4.10.2
@@ -12,7 +13,7 @@
maintainers nomaintainer
description mesh and field I/O library and scientific database
-long_description ${description}
+long_description ${description}. Select a Fortran compiler variant to enable Fortran support.
homepage https://wci.llnl.gov/simulation/computer-codes/silo/
depends_lib port:zlib
@@ -22,7 +23,9 @@
checksums rmd160 f15098dfc58f86146bf87fc651bd6580aca71178 \
sha256 4b901dfc1eb4656e83419a6fde15a2f6c6a31df84edfad7f1dc296e01b20140e
-# Makefile:152: *** missing separator. Stop.
+compilers.choose fc f77 f90
+compilers.setup
+
configure.ccache no
configure.args --enable-optimization \
--disable-fortran \
@@ -37,45 +40,20 @@
test.run yes
test.target check
-default_variants +hdf5
+default_variants-append +hdf5
-variant gcc44 description {Build with MacPorts gcc 4.4 compiler} conflicts gcc45 gcc46 gcc47 gcc48 gcc49 {
- configure.compiler macports-gcc-4.4
-}
-
-variant gcc45 description {Build with MacPorts gcc 4.5 compiler} conflicts gcc44 gcc46 gcc47 gcc48 gcc49 {
- configure.compiler macports-gcc-4.5
-}
-
-variant gcc46 description {Build with MacPorts gcc 4.6 compiler} conflicts gcc44 gcc45 gcc47 gcc48 gcc49 {
- configure.compiler macports-gcc-4.6
-}
-
-variant gcc47 description {Build with MacPorts gcc 4.7 compiler} conflicts gcc44 gcc45 gcc46 gcc48 gcc49 {
- configure.compiler macports-gcc-4.7
-}
-
-variant gcc48 description {Build with MacPorts gcc 4.8 compiler} conflicts gcc44 gcc45 gcc46 gcc47 gcc49 {
- configure.compiler macports-gcc-4.8
-}
-
-variant gcc49 description {Build with MacPorts gcc 4.9 compiler} conflicts gcc44 gcc45 gcc46 gcc47 gcc48 {
- configure.compiler macports-gcc-4.9
-}
-
variant hdf5 description {Enable HDF5 support (recommended)} {
depends_lib-append port:hdf5
configure.args-append --with-hdf5=${prefix}
+ # note: this does not work if hdf5 is installed with an MPI variant
}
# If using a macports-installed GCC, which includes a compatible fortran
# compiler, compile fortran bindings
-if {( [ variant_isset gcc44 ] || [ variant_isset gcc45 ]
- || [ variant_isset gcc46 ] || [ variant_isset gcc47 ]
- || [ variant_isset gcc48 ] || [ variant_isset gcc49 ] )} {
+if {[fortran_variant_isset]} {
configure.args-replace --disable-fortran --enable-fortran
}
livecheck.type regex
-livecheck.url ${homepage}downloads.html
+livecheck.url ${homepage}downloads
livecheck.regex ${name}-(\[0-9.\]+)-bsd
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160106/b9813408/attachment-0001.html>
More information about the macports-changes
mailing list