[145996] trunk/dports/science/ifeffit/Portfile
dstrubbe at macports.org
dstrubbe at macports.org
Tue Feb 23 18:03:51 PST 2016
Revision: 145996
https://trac.macports.org/changeset/145996
Author: dstrubbe at macports.org
Date: 2016-02-23 18:03:51 -0800 (Tue, 23 Feb 2016)
Log Message:
-----------
ifeffit: Use compilers portgroup. Enforce same compiler as pgplot.
Modified Paths:
--------------
trunk/dports/science/ifeffit/Portfile
Modified: trunk/dports/science/ifeffit/Portfile
===================================================================
--- trunk/dports/science/ifeffit/Portfile 2016-02-24 01:14:08 UTC (rev 145995)
+++ trunk/dports/science/ifeffit/Portfile 2016-02-24 02:03:51 UTC (rev 145996)
@@ -3,6 +3,7 @@
PortSystem 1.0
PortGroup github 1.0
+PortGroup compilers 1.0
github.setup newville ifeffit 1.2.13
revision 5
@@ -13,7 +14,7 @@
description IFEFFIT is a program and programming library for analyzing x-ray absorption fine-structure (XAFS) data.
-long_description IFEFFIT is a program and programming library for analyzing x-ray absorption fine-structure (XAFS) data. \
+long_description ${description} \
As its name may suggest, IFEFFIT1 gives an interactive method for fitting XAFS data using calculations \
from FEFF, and is based on the fitting program FEFFIT of the UWXAFS3.0 Analysis Package.
@@ -33,12 +34,12 @@
configure.args --with-pgplot \
--with-pgplot-link="-L${prefix}/lib -lpgplot -lpng -lX11"
+compilers.choose f77
+compilers.setup require_fortran
+compilers.enforce_fortran pgplot
+
# IMPORTANT BUILD NOTES
#
-# ifeffit, pgplot and p5-ifeffit need to be using the same compiler libraries.
-# therefore they must be built with the same gcc compiler variants.
-# currently this is gcc49 by default but it you change one change them all and rebuild.
-#
# p5-ifeffit is configured using a Makefile.PL that is generated when ifeffit is built.
# since the paths to the compiler libraries contain compiler version information,
# if the compiler version changes then both ifeffit and p5-ifeffit need to be rebuilt
@@ -46,49 +47,9 @@
#
# if in doubt rebuild everything
-variant gcc45 description {Use gfortran from gcc45} conflicts gcc46 gcc47 gcc48 gcc49 {
- depends_lib-append port:gcc45
- configure.fc ${prefix}/bin/gfortran-mp-4.5
- configure.f77 ${prefix}/bin/gfortran-mp-4.5
- configure.f90 ${prefix}/bin/gfortran-mp-4.5
- configure.args-append --with-fortran=${prefix}/bin/gfortran-mp-4.5
+pre-configure {
+ configure.args-append --with-fortran=${configure.f77}
}
-variant gcc46 description {Use gfortran from gcc46} conflicts gcc45 gcc47 gcc48 gcc49 {
- depends_lib-append port:gcc46
- configure.fc ${prefix}/bin/gfortran-mp-4.6
- configure.f77 ${prefix}/bin/gfortran-mp-4.6
- configure.f90 ${prefix}/bin/gfortran-mp-4.6
- configure.args-append --with-fortran=${prefix}/bin/gfortran-mp-4.6
-}
-
-variant gcc47 description {Use gfortran from gcc47} conflicts gcc45 gcc46 gcc48 gcc49 {
- depends_lib-append port:gcc47
- configure.fc ${prefix}/bin/gfortran-mp-4.7
- configure.f77 ${prefix}/bin/gfortran-mp-4.7
- configure.f90 ${prefix}/bin/gfortran-mp-4.7
- configure.args-append --with-fortran=${prefix}/bin/gfortran-mp-4.7
-}
-
-variant gcc48 description {Use gfortran from gcc48} conflicts gcc45 gcc46 gcc47 gcc49 {
- depends_lib-append port:gcc48
- configure.fc ${prefix}/bin/gfortran-mp-4.8
- configure.f77 ${prefix}/bin/gfortran-mp-4.8
- configure.f90 ${prefix}/bin/gfortran-mp-4.8
- configure.args-append --with-fortran=${prefix}/bin/gfortran-mp-4.8
-}
-
-variant gcc49 description {Use gfortran from gcc49} conflicts gcc45 gcc46 gcc47 gcc48 {
- depends_lib-append port:gcc49
- configure.fc ${prefix}/bin/gfortran-mp-4.9
- configure.f77 ${prefix}/bin/gfortran-mp-4.9
- configure.f90 ${prefix}/bin/gfortran-mp-4.9
- configure.args-append --with-fortran=${prefix}/bin/gfortran-mp-4.9
-}
-
-if {![variant_isset gcc45] && ![variant_isset gcc46] && ![variant_isset gcc47] && ![variant_isset gcc48]} {
- default_variants +gcc49
-}
-
# this is the final release of ifeffit
livecheck.type none
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160223/41cb4596/attachment.html>
More information about the macports-changes
mailing list