# -*- 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 73553 2010-11-17 16:44:18Z macsforever2000@macports.org $

PortSystem          1.0
PortGroup           python26 1.0

name                py26-usadel1
version             0.2.3.2
categories-append   science
platforms           darwin
maintainers         macsforever2000
license             gpl

description         Usadel equation solver

long_description    This code solves Usadel equations in a circuit consisting of quasi-1D \
                    metallic wires. This is an efficient approach for modelling charge and heat \
                    transport in mesoscopic electronic circuits made of superconducting and normal-state \
                    metals, in the presence of a sufficient amount of impurities (dirty limit).

homepage            http://ltl.tkk.fi/~theory/usadel1/
master_sites        ${homepage}_static/
distname            usadel1-${version}

checksums           sha1    ffde19a5dd8a5977d99b00d88ec40873f9a904d1 \
                    rmd160  bef6ce3a839866bab5f69b3cc986d92c32765828

depends_lib-append  port:py26-numpy \
                    port:py26-scipy \
                    port:py26-tables

python.add_archflags no

depends_lib-append  port:gcc44
configure.compiler  macports-gcc-4.4

# Using variants causes fortran compiler failure.
#variant gcc45 conflicts gcc44 description {Use the gcc45 compiler (enables fortran code)} {
#    depends_lib-append  port:gcc45
#    configure.compiler  macports-gcc-4.5
#}

#variant gcc44 conflicts gcc45 description {Use the gcc44 compiler (enables fortran code)} {
#    depends_lib-append  port:gcc44
#    configure.compiler  macports-gcc-4.4
#}

#if {![variant_isset gcc45]} {
#    default_variants +gcc44
#}

build.args          config_fc \
                    --fcompiler=gfortran \
                    --noarch

build.env-append    CC=${configure.cc} \
                    F90=${configure.fc}

livecheck.type  regex
livecheck.url   http://ltl.tkk.fi/~theory/usadel1/download.html
livecheck.regex {usadel1-(\d+(?:\.\d+)*)}
