# -*- 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

PortSystem          1.0
PortGroup           python 1.0
PortGroup           compilers 1.0

name                py-logilab-hmm
version             0.5.0
revision            2
maintainers         minimoog.org:sb
description         Python Hidden Markov model implementation
long_description    logilab-hmm is an implementation of Hidden Markov model \
                    and associated algorithms (Viterbi and Baum-Welsh).

platforms           darwin
license             GPL-2+

homepage            http://www.logilab.org/project/logilab-hmm
master_sites        http://ftp.logilab.org/pub/hmm/
distname            logilab-hmm-${version}

livecheck.url       http://ftp.logilab.org/pub/hmm/
livecheck.type      regex
livecheck.regex     {logilab-hmm-(\d+(?:\.\d+)*)\.tar\.gz}

checksums           rmd160  b62f3ac49e4d2681138e55490430c4bdfdf418f6 \
                    sha256  62f51ea6c7b374cebdc3747b391d314336255cc48b0d2413722400f1d200a1ca \
                    size    32856

compilers.setup     require_fortran
python.versions     27

if {${subport} ne ${name}} {
    depends_lib-append      port:py${python.version}-logilab-common \
                            port:py${python.version}-numpy

    universal_variant       no
    python.add_archflags    no

    post-destroot {
        xinstall -m 755 -d ${destroot}${prefix}/share/doc/${subport}
        xinstall -m 644 -W ${worksrcpath} README \
            ${destroot}${prefix}/share/doc/${subport}
        file delete ${destroot}${python.pkgd}/logilab/__init__.py
    }
}