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

name                py-word2vec
version             0.11.1
revision            1

categories-append   textproc
license             Apache-2
maintainers         nomaintainer

description         Google word2vec python wrapper
long_description    {*}${description}

homepage            https://github.com/danielfrg/word2vec/

checksums           rmd160  074b23b5b0232ee460bff55c6db3440730c8ad76 \
                    sha256  222d8ffb47f385c43eba45e3f308e605fc9736b2b7137d74979adf1a31e7c8b4 \
                    size    42318

python.versions     310

if {${name} ne ${subport}} {
    patchfiles      patch-setup.py.diff

    depends_build-append \
                    port:py${python.version}-setuptools_scm

    depends_lib-append \
                    port:py${python.version}-joblib \
                    port:py${python.version}-numpy

    post-destroot {
        set docdir ${prefix}/share/doc/${subport}
        xinstall -d ${destroot}${docdir}
        xinstall -m 0644 -W ${worksrcpath} README.md LICENSE.txt \
            CHANGELOG.md ${destroot}${docdir}
    }
}
