# -*- 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: Portfile 117885 2014-03-16 08:04:59Z takeshi@macports.org $

PortSystem          1.0
PortGroup           compilers 1.0

compilers.choose    fc f77 f90
compilers.setup     require_fortran

name                fgsl
version             1.0.0
categories          math science
maintainers         takeshi
license             GPL-2
description         Fortran interface to the GNU scientific library
long_description \
    A portable, object-based Fortran interface to the GNU scientific library, \
    a collection of numerical routines for scientific computing.
homepage          http://www.lrz.de/services/software/mathematik/gsl/fortran/
platforms           darwin
master_sites        ${homepage}
checksums           md5     88ce720f6c3d8045a57f20d3789f470d \
                    sha1    f39362bd4d0c2daf8382d8ec818bb166ae5a7dea \
                    rmd160  0226788ee7e27be3ef8e740b81d799fe49df176d
depends_lib         port:gsl
use_parallel_build  no
universal_variant   no

if {![fortran_variant_isset]} {
    default_variants +gcc48
}

destroot.args-append    fgsl_exampledir=${prefix}/share/${name}/examples \
                        fgsl_docdir=${prefix}/share/doc/${name} \
                        fgsl_doc2dir=${prefix}/share/doc/${name}/html

livecheck.type      regex
livecheck.url       ${homepage}
livecheck.regex     {Download .*version ([0-9]+\.[0-9]+\.*[0-9]*)}
