# -*- 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-word2number
version             1.1
revision            0

categories-append   textproc
platforms           {darwin any}
supported_archs     noarch
license             MIT
maintainers         nomaintainer

description         Convert number words (e.g. twenty one) to \
                    numeric digits (e.g. 21)
long_description    word2number is a Python module to convert number words \
                    (e.g. twenty one) to numeric digits (e.g. 21). It \
                    works for positive numbers up to the range of \
                    999,999,999,999 (i.e. billions).

homepage            https://github.com/akshaynagpal/w2n

use_zip             yes

checksums           rmd160  3487d0d75c88791e76f948c8765d69fbb20d4400 \
                    sha256  70e27a5d387f67b04c71fbb7621c05930b19bfd26efd6851e6e0f9969dcde7d0 \
                    size    9723

python.versions     313

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