Ticket #48048: Portfile

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