Ticket #53641: Portfile

File Portfile, 1.4 KB (added by esafak (Emre Şafak), 7 years ago)
Line 
1# -*- 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
2
3PortSystem          1.0
4PortGroup           python 1.0
5
6set base_name       agate-dbf
7name                py-agate_dbf
8version             0.2.0
9python.versions     27 34 35 36
10# categories-append   textproc
11platforms           darwin
12maintainers         esafak
13license             MIT
14
15description         Adds read support for DBF files to agate
16long_description    ${description}
17
18homepage            https://pypi.python.org/pypi/$base_name
19master_sites        pypi:a/$base_name
20
21checksums           rmd160  ea79069dd546f7b26291980fc7e214a3c35d660b \
22                    sha256  0666c1ad06cd4b2860351cebbd88bd4b05b2d1abd41b25cf91f8f6715035735e
23
24distname            $base_name-${version}
25
26if {${name} ne ${subport}} {
27    livecheck.type      none
28
29    depends_build-append port:py${python.version}-setuptools \
30                        port:py${python.version}-nose \
31                        port:py${python.version}-tox \
32                        port:py${python.version}-sphinx \
33                        port:py${python.version}-sphinx_rtd_theme
34
35    depends_lib-append  port:py${python.version}-dbfread \
36                        port:py${python.version}-agate
37} else {
38    livecheck.type      regex
39    livecheck.url       ${homepage}
40    livecheck.regex     $base_name (\\d+(\\.\\d+)+)
41}