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 dstrubbe@macports.org $ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | PortGroup python 1.0 |
---|
6 | PortGroup compilers 1.0 |
---|
7 | |
---|
8 | name py-usadel1 |
---|
9 | version 0.2.4 |
---|
10 | categories-append science |
---|
11 | platforms darwin |
---|
12 | maintainers nomaintainer |
---|
13 | license GPL-2 |
---|
14 | |
---|
15 | description Usadel equation solver |
---|
16 | |
---|
17 | long_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 | |
---|
22 | homepage http://ltl.tkk.fi/~theory/usadel1/ |
---|
23 | master_sites ${homepage}_static/ |
---|
24 | distname usadel1-${version} |
---|
25 | |
---|
26 | checksums rmd160 a520258f5171002af6806ddc39672a60362d3082 \ |
---|
27 | sha256 13a15231627ab2bcb86b4e85540979af1c12adb9265b3b0169c5a848f0761c4d |
---|
28 | |
---|
29 | python.versions 27 |
---|
30 | |
---|
31 | if {${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 | } |
---|