# -*- 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
# $Id: Portfile 118860 2014-04-13 11:02:21Z hum@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-gensim
version             0.9.1
categories-append   textproc
maintainers         hum openmaintainer
supported_archs     noarch

description         Python framework for fast Vector Space Modelling

long_description    Gensim is a Python library for topic modelling, document \
                    indexing and similarity retrieval with large corpora. \
                    Target audience is the natural language processing (NLP) and \
                    information retrieval (IR) community.

homepage            http://radimrehurek.com/gensim/
platforms           darwin
license             LGPL

master_sites        https://pypi.python.org/packages/source/g/gensim/
checksums           rmd160  bcb11362c9a1109682628c83ba19c645eeeba26c \
                    sha256  566c2e43b3879f2e74fed851c10babd360957158b83ae72cddfd2b7ae2101dcc

distname            gensim-${version}

python.versions     26 27
# Note: python 2.5 or earlier is not supported according to py-numpy.

if {${name} ne ${subport}} {
    depends_lib-append  port:py${python.version}-numpy \
                        port:py${python.version}-scipy
    post-destroot {
        set docdir ${prefix}/share/doc/${subport}
        xinstall -d ${destroot}${docdir}
        xinstall -m 644 -W ${worksrcpath} \
            CHANGELOG.txt COPYING COPYING.LESSER README.rst \
            ${destroot}${docdir}
        copy ${worksrcpath}/docs ${destroot}${docdir}
    }
    livecheck.type      none
} else {
    livecheck.type      regex
    livecheck.url       [lindex ${master_sites} 0]
    livecheck.regex     "gensim-(\\d+(?:\\.\\d+)*)${extract.suffix}"
}
