Ticket #53640: 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-sql
7name                py-agate_sql
8version             0.5.0
9python.versions     27 34 35 36
10# categories-append   textproc
11platforms           darwin
12maintainers         esafak
13license             MIT
14
15description         agate-sql adds SQL read/write support to agate.
16long_description    ${description}
17
18homepage            https://pypi.python.org/pypi/$base_name
19master_sites        pypi:a/$base_name
20
21checksums           rmd160  095f3808fe6579ab4bcb79fb5d32347cf3fbe080 \
22                    sha256  e5fa728dd5c0d71d3c7653a794cd830330fa2cf8b2f02230db68ddea3ab32ffb
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}-sqlalchemy \
36                        port:py${python.version}-agate
37} else {
38    livecheck.type      regex
39    livecheck.url       ${homepage}
40    livecheck.regex     $base_name (\\d+(\\.\\d+)+)
41}