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