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$ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | PortGroup python 1.0 |
---|
6 | PortGroup github 1.0 |
---|
7 | PortGroup active_variants 1.1 |
---|
8 | |
---|
9 | github.setup theochem horton 2.0.0 |
---|
10 | name py-horton |
---|
11 | version 2.0.0 |
---|
12 | platforms darwin |
---|
13 | license GPL-3+ |
---|
14 | categories-append chemistry |
---|
15 | maintainers mcmaster.ca:yangx59 |
---|
16 | |
---|
17 | description HORTON is a quantum chemistry program written primarily in Python language. |
---|
18 | |
---|
19 | long_description ${description} It can serve as a stand-alone program for electronic structure calculation (HF, DFT,\ |
---|
20 | Geminals, PT) |
---|
21 | |
---|
22 | extract.suffix .tar.gz |
---|
23 | |
---|
24 | homepage http://theochem.github.io/horton/ |
---|
25 | distname ${name}-${version} |
---|
26 | distfiles ${distname}${extract.suffix} |
---|
27 | checksums rmd160 bb2536bb1af8f5335e523580b44bd1b5d95c0763 \ |
---|
28 | sha256 7217637ebb36412a27fc09f08aba6e5859358fc670f440b8c3f959d45920c243 |
---|
29 | |
---|
30 | python.versions 27 |
---|
31 | |
---|
32 | if {${name} ne ${subport}} { |
---|
33 | depends_lib port:atlas \ |
---|
34 | port:libint \ |
---|
35 | port:py${python.version}-numpy \ |
---|
36 | port:py${python.version}-h5py \ |
---|
37 | port:py${python.version}-scipy \ |
---|
38 | port:py${python.version}-cython \ |
---|
39 | port:py${python.version}-nose \ |
---|
40 | port:py${python.version}-sympy \ |
---|
41 | port:py${python.version}-sphinx \ |
---|
42 | port:py${python.version}-matplotlib \ |
---|
43 | port:libxc |
---|
44 | |
---|
45 | require_active_variants py27-numpy atlas |
---|
46 | |
---|
47 | pre-build { |
---|
48 | system -W ${worksrcpath}/data/refatoms "make all" |
---|
49 | file copy ${worksrcpath}/data/setup_cfgs/setup.Darwin-macport-x86_64.cfg ${worksrcpath}/setup.cfg |
---|
50 | reinplace "s|/opt/local|${prefix}|g" ${worksrcpath}/data/setup_cfgs/setup.Darwin-10.10.3-x86_64.cfg |
---|
51 | } |
---|
52 | |
---|
53 | post-destroot { |
---|
54 | ln -s ${python.prefix}/bin/horton-atomdb.py ${destroot}${prefix}/bin/ |
---|
55 | ln -s ${python.prefix}/bin/horton-convert.py ${destroot}${prefix}/bin/ |
---|
56 | ln -s ${python.prefix}/bin/horton-cpart.py ${destroot}${prefix}/bin/ |
---|
57 | ln -s ${python.prefix}/bin/horton-cubehead.py ${destroot}${prefix}/bin/ |
---|
58 | ln -s ${python.prefix}/bin/horton-esp-cost.py ${destroot}${prefix}/bin/ |
---|
59 | ln -s ${python.prefix}/bin/horton-esp-fit.py ${destroot}${prefix}/bin/ |
---|
60 | ln -s ${python.prefix}/bin/horton-esp-gen.py ${destroot}${prefix}/bin/ |
---|
61 | ln -s ${python.prefix}/bin/horton-esp-test.py ${destroot}${prefix}/bin/ |
---|
62 | ln -s ${python.prefix}/bin/horton-hdf2csv.py ${destroot}${prefix}/bin/ |
---|
63 | ln -s ${python.prefix}/bin/horton-wpart.py ${destroot}${prefix}/bin/ |
---|
64 | ln -s ${python.prefix}/bin/horton-entanglement.py ${destroot}${prefix}/bin/ |
---|
65 | |
---|
66 | file delete ${destroot}${prefix}/bin/horton-atomdb.py-${python.branch} |
---|
67 | file delete ${destroot}${prefix}/bin/horton-convert.py-${python.branch} |
---|
68 | file delete ${destroot}${prefix}/bin/horton-cpart.py-${python.branch} |
---|
69 | file delete ${destroot}${prefix}/bin/horton-cubehead.py-${python.branch} |
---|
70 | file delete ${destroot}${prefix}/bin/horton-esp-cost.py-${python.branch} |
---|
71 | file delete ${destroot}${prefix}/bin/horton-esp-fit.py-${python.branch} |
---|
72 | file delete ${destroot}${prefix}/bin/horton-esp-gen.py-${python.branch} |
---|
73 | file delete ${destroot}${prefix}/bin/horton-esp-test.py-${python.branch} |
---|
74 | file delete ${destroot}${prefix}/bin/horton-hdf2csv.py-${python.branch} |
---|
75 | file delete ${destroot}${prefix}/bin/horton-wpart.py-${python.branch} |
---|
76 | file delete ${destroot}${prefix}/bin/horton-entanglement.py-${python.branch} |
---|
77 | |
---|
78 | reinplace "s|${destroot}${prefix}|${prefix}|" ${destroot}${python.pkgd}/horton/data_dir.txt |
---|
79 | } |
---|
80 | |
---|
81 | livecheck.type none |
---|
82 | } else { |
---|
83 | livecheck.type regex |
---|
84 | livecheck.regex {horton-([0-9\.]+)} |
---|
85 | } |
---|