source: trunk/dports/python/py-usadel1/Portfile

Last change on this file was 144232, checked in by dstrubbe@…, 23 months ago

py-usadel1: Use compilers portgroup for Fortran variants.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.2 KB
Line 
1# -*- 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
2# $Id: Portfile 144232 2016-01-05 03:06:56Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           python 1.0
6PortGroup           compilers 1.0
7
8name                py-usadel1
9version             0.2.4
10categories-append   science
11platforms           darwin
12maintainers         nomaintainer
13license             GPL-2
14
15description         Usadel equation solver
16
17long_description    This code solves Usadel equations in a circuit consisting of quasi-1D \
18                    metallic wires. This is an efficient approach for modelling charge and heat \
19                    transport in mesoscopic electronic circuits made of superconducting and normal-state \
20                    metals, in the presence of a sufficient amount of impurities (dirty limit).
21
22homepage            http://ltl.tkk.fi/~theory/usadel1/
23master_sites        ${homepage}_static/
24distname            usadel1-${version}
25
26checksums           rmd160  a520258f5171002af6806ddc39672a60362d3082 \
27                    sha256  13a15231627ab2bcb86b4e85540979af1c12adb9265b3b0169c5a848f0761c4d
28
29python.versions     27
30
31if {${name} ne ${subport}} {
32    depends_lib-append  port:py${python.version}-numpy \
33                        port:py${python.version}-scipy \
34                        port:py${python.version}-tables
35   
36    python.add_archflags no
37    universal_variant no
38
39    compilers.choose    fc f77 f90
40    compilers.setup     require_fortran -dragonegg -g95
41   
42    # probably a different --fcompiler is needed for dragonegg or g95
43    build.args          config_fc \
44                        --fcompiler=gfortran \
45                        --noarch
46   
47    build.env-append    CC=${configure.cc} \
48                        F90=${configure.fc}
49
50    post-destroot {
51        # Fix permissions problems on these files
52        xinstall -m 0644 -W ${worksrcpath}/usadel1.egg-info PKG-INFO SOURCES.txt dependency_links.txt requires.txt top_level.txt \
53            ${destroot}${python.pkgd}/usadel1-${version}-py${python.branch}.egg-info
54    }
55
56    livecheck.type  none
57} else {
58    livecheck.type  regex
59    livecheck.url   http://ltl.tkk.fi/~theory/usadel1/download.html
60    livecheck.regex {usadel1-(\d+(?:\.\d+)*)}
61}
Note: See TracBrowser for help on using the repository browser.