/
Portfile
40 lines (31 loc) · 1.32 KB
/
Portfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# -*- 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 38 39
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}
}
}