[117884] trunk/dports/math/fgsl/Portfile
takeshi at macports.org
takeshi at macports.org
Sun Mar 16 01:01:13 PDT 2014
Revision: 117884
https://trac.macports.org/changeset/117884
Author: takeshi at macports.org
Date: 2014-03-16 01:01:13 -0700 (Sun, 16 Mar 2014)
Log Message:
-----------
fgsl: updated for 1.0.0, closing #42706
Modified Paths:
--------------
trunk/dports/math/fgsl/Portfile
Modified: trunk/dports/math/fgsl/Portfile
===================================================================
--- trunk/dports/math/fgsl/Portfile 2014-03-16 06:31:02 UTC (rev 117883)
+++ trunk/dports/math/fgsl/Portfile 2014-03-16 08:01:13 UTC (rev 117884)
@@ -2,10 +2,13 @@
# $Id$
PortSystem 1.0
+PortGroup compilers 1.0
+compilers.choose fc f77 f90
+compilers.setup require_fortran
+
name fgsl
-version 0.9.4
-revision 2
+version 1.0.0
categories math science
maintainers takeshi
license GPL-2
@@ -16,101 +19,21 @@
homepage http://www.lrz.de/services/software/mathematik/gsl/fortran/
platforms darwin
master_sites ${homepage}
-checksums md5 cee6760809bc1ddbb6172fc8818a76b2 \
- sha1 82f3047a3b1b1970fae741946fd8479f15595362 \
- rmd160 7c12162b4fb64746d91715756c01e52dbb4e0e09
+checksums md5 88ce720f6c3d8045a57f20d3789f470d \
+ sha1 f39362bd4d0c2daf8382d8ec818bb166ae5a7dea \
+ rmd160 0226788ee7e27be3ef8e740b81d799fe49df176d
depends_lib port:gsl
-patch {
- reinplace "s| \$bits | \"\$bits\" |" ${worksrcpath}/configure
- reinplace "s|uname -i|uname -m|" ${worksrcpath}/configure
- reinplace "s|fgsl_doc|share/doc/fgsl|" ${worksrcpath}/Makefile
- reinplace "s|\$(PREFIX)|\$(DESTDIR)\$(PREFIX)|" ${worksrcpath}/Makefile
- reinplace "s|error_3\.exe||" ${worksrcpath}/doc/examples/Makefile
-}
+use_parallel_build no
+universal_variant no
-set gcc_versions {4.3 4.4 4.5 4.6 4.7 4.8 4.9}
-set default_fortran_variant +gcc48
-set g95_conflicts {}
-
-foreach ver ${gcc_versions} {
- set ver_no_dot [join [split ${ver} "."] ""]
-
- set variant_line {variant gcc${ver_no_dot} description "build with gfortran from gcc${ver_no_dot}" conflicts g95}
-
- foreach over ${gcc_versions} {
- if {${ver} == ${over}} {
- continue
- }
-
- set over_no_dot [join [split ${over} "."] ""]
- append variant_line " conflicts gcc${over_no_dot}"
- }
- append variant_line { {}}
-
- eval $variant_line
-
- append g95_conflicts " conflicts gcc${ver_no_dot}"
-
- if {[variant_isset gcc${ver_no_dot}]} {
- if {${default_fortran_variant} != "+gcc${ver_no_dot}"} {
- set default_fortran_variant ""
- }
- }
+if {![fortran_variant_isset]} {
+ default_variants +gcc48
}
-eval [concat {variant g95 description {build with g95}} $g95_conflicts {{}}]
+destroot.args-append fgsl_exampledir=${prefix}/share/${name}/examples \
+ fgsl_docdir=${prefix}/share/doc/${name} \
+ fgsl_doc2dir=${prefix}/share/doc/${name}/html
-if {[variant_isset g95]} {
- if {${default_fortran_variant} != "+g95"} {
- set default_fortran_variant ""
- }
-}
-
-if {${default_fortran_variant} != ""} {
- default_variants-append "${default_fortran_variant}"
-}
-
-foreach ver ${gcc_versions} {
- set ver_no_dot [join [split ${ver} "."] ""]
-
- if {[variant_isset gcc${ver_no_dot}]} {
- depends_lib-append path:lib/libgcc/libgcc_s.1.dylib:libgcc
- depends_build-append port:gcc${ver_no_dot}
-
- configure.fc ${prefix}/bin/gfortran-mp-${ver}
- configure.f77 ${prefix}/bin/gfortran-mp-${ver}
- configure.f90 ${prefix}/bin/gfortran-mp-${ver}
- set f90 gfortran-mp-${ver}
- }
-}
-
-if {[variant_isset g95]} {
- depends_lib-append path:lib/libgcc/libgcc_s.1.dylib:libgcc
- depends_build-append port:g95
-
- configure.fc ${prefix}/bin/g95
- configure.f77 ${prefix}/bin/g95
- configure.f90 ${prefix}/bin/g95
- set f90 g95
-} else {
- post-patch {
- reinplace "s|gfortran|${f90}|" ${worksrcpath}/configure
- }
-}
-
-configure.pre_args-delete --prefix=${prefix}
-configure.args "--prefix ${prefix} --f90 ${f90} --cc ${configure.cc} --gsl ${prefix}"
-
-post-destroot {
- xinstall -m 755 -d ${destroot}${prefix}/share/${name}/examples
- eval xinstall -m 644 [glob ${worksrcpath}/doc/examples/*] ${destroot}${prefix}/share/${name}/examples
- xinstall -m 644 ${worksrcpath}/make.inc ${destroot}${prefix}/share/${name}
- reinplace "s|../make.inc|make.inc|" ${destroot}${prefix}/share/${name}/examples/Makefile
- reinplace "s|-I../..|-I${prefix}/include/\$(F90)|" ${destroot}${prefix}/share/${name}/examples/Makefile
-}
-
-universal_variant no
-
livecheck.type regex
livecheck.url ${homepage}
livecheck.regex {Download .*version ([0-9]+\.[0-9]+\.*[0-9]*)}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140316/1b8b8fa5/attachment.html>
More information about the macports-changes
mailing list