[144801] trunk/dports/science/gpp4/Portfile
dstrubbe at macports.org
dstrubbe at macports.org
Mon Jan 18 12:37:46 PST 2016
Revision: 144801
https://trac.macports.org/changeset/144801
Author: dstrubbe at macports.org
Date: 2016-01-18 12:37:46 -0800 (Mon, 18 Jan 2016)
Log Message:
-----------
gpp4: Use compilers portgroup for Fortran variants, leaving default C compiler. Make Fortran optional. Remove unnecessary gawk and gsed dependencies. Add livecheck.
Modified Paths:
--------------
trunk/dports/science/gpp4/Portfile
Modified: trunk/dports/science/gpp4/Portfile
===================================================================
--- trunk/dports/science/gpp4/Portfile 2016-01-18 19:26:00 UTC (rev 144800)
+++ trunk/dports/science/gpp4/Portfile 2016-01-18 20:37:46 UTC (rev 144801)
@@ -1,6 +1,8 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id$
PortSystem 1.0
+PortGroup compilers 1.0
name gpp4
version 1.3.1
@@ -16,7 +18,8 @@
drop-in replacement for the CCP4 libraries, that \
as carefully as possible implements the current \
CCP4 library interface, while not requiring the \
- whole CCP4 package to be installed.
+ whole CCP4 package to be installed. \
+ Select a Fortran variant to build the Fortran interface library.
homepage https://launchpad.net/gpp4
platforms darwin
@@ -26,31 +29,22 @@
checksums md5 e608519594f430c78be3c53e8e26a260 \
sha256 ad18b8771f68b55bcf40a59f2be5489daf6bd97934a181602de7f44fbe27776f
-depends_lib port:mmdb
-depends_build port:gawk port:gsed port:pkgconfig
+depends_build port:mmdb port:pkgconfig
-variant gcc43 conflicts gcc44 gcc45 gcc46 gcc47 description {Compile with gcc 4.3} {
- configure.compiler macports-gcc-4.3
-}
+compilers.choose f77
+compilers.setup
-variant gcc44 conflicts gcc43 gcc45 gcc46 gcc47 description {Compile with gcc 4.4} {
- configure.compiler macports-gcc-4.4
+pre-fetch {
+# depends_lib-append port:mmdb
+ # README says: "To compile the Fortran library, it is required that the MMDB library is installed."
+ # However, configure appears to require it regardless.
+ if {![fortran_variant_isset]} {
+ configure.args-append --without-fortran-api F77=no
+ }
}
-variant gcc45 conflicts gcc43 gcc44 gcc46 gcc47 description {Compile with gcc 4.5} {
- configure.compiler macports-gcc-4.5
-}
-
-variant gcc46 conflicts gcc43 gcc44 gcc45 gcc47 description {Compile with gcc 4.6} {
- configure.compiler macports-gcc-4.6
-}
-
-variant gcc47 conflicts gcc43 gcc44 gcc45 gcc46 description {Compile with gcc 4.7} {
- configure.compiler macports-gcc-4.7
-}
-
-if {![variant_isset gcc43] && ![variant_isset gcc44] && ![variant_isset gcc45] && ![variant_isset gcc46]} {
- default_variants +gcc47
-}
-
universal_variant no
+
+livecheck.type regex
+livecheck.url ${homepage}
+livecheck.regex Latest version is (\[0-9.\]+)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160118/74eb1e4b/attachment.html>
More information about the macports-changes
mailing list