source: trunk/dports/science/wannier90/Portfile

Last change on this file was 153491, checked in by dstrubbe@…, 10 months ago

wannier90: Fix livecheck. Add openmaintainer.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.6 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 153491 2016-10-02 16:56:10Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           compilers 1.0
6PortGroup           linear_algebra 1.0
7
8name                wannier90
9version             2.0.1
10revision            1
11categories          science
12platforms           darwin
13license             GPL-2+
14maintainers         dstrubbe openmaintainer
15
16description         A Tool for Obtaining Maximally-Localised Wannier Functions
17
18long_description    Wannier90 uses inputs from an electronic-structure code \
19                    to transform the Bloch orbitals of a crystal into \
20                    maximally-localised Wannier functions. Interfaces exist \
21                    for various density-functional theory codes.
22
23homepage            http://www.wannier.org
24master_sites        ${homepage}/code/
25
26checksums           rmd160  357909e686b4b414d8afd8bb8ef90e71c7519708 \
27                    sha1    17af3f22a2623dc4d2c183dae7a5c63a6f0941bb
28
29# fixes dependencies to enable parallel build
30patchfiles          patch-utility-w90pov-Makefile.diff \
31                    patch-src-parameters.F90.diff
32
33configure {
34    file copy ${worksrcpath}/config/make.sys.macosx ${worksrcpath}/make.sys
35}
36
37# TODO: enable use of MPI
38pre-build {
39    build.args      F90=${configure.f90} LDOPTS="-O3" COMMS="" MPIF90="" CC=${configure.cc} CFLAGS="${configure.cflags}" \
40        LIBS="-L${prefix}/lib ${linalglib}"
41    if {[variant_isset g95]} {
42        build.args-append FCOPTS="-O3 -fno-second-underscore"
43    } else {
44        build.args-append FCOPTS="-O3"
45    }
46    build.target    all w90pov w90vdw
47}
48
49use_parallel_build  yes
50
51destroot {
52    xinstall ${worksrcpath}/wannier90.x              ${destroot}${prefix}/bin/
53    xinstall ${worksrcpath}/postw90.x                ${destroot}${prefix}/bin/
54    xinstall ${worksrcpath}/w90chk2chk.x             ${destroot}${prefix}/bin/
55    xinstall ${worksrcpath}/utility/w90pov/w90pov    ${destroot}${prefix}/bin/
56    xinstall ${worksrcpath}/utility/w90vdw/w90vdw.x  ${destroot}${prefix}/bin/
57    xinstall ${worksrcpath}/libwannier.a             ${destroot}${prefix}/lib/
58}
59
60compilers.choose    f90
61compilers.setup     require_fortran
62
63variant threads requires atlas description {Build with threaded ATLAS} {}
64
65test.run    yes
66post-test {
67    system -W ${worksrcpath} "cat tests/wantest.log"
68    ui_notice "Compare the 'Standard' and 'Current' values in the log to assess test runs."
69}
70
71livecheck.type      regex
72livecheck.url       ${homepage}/download.html
73livecheck.regex     Wannier90 \\(v(\[0-9.\]+)\\)
Note: See TracBrowser for help on using the repository browser.