Ticket #53642: 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-excel
7name                py-agate_excel
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 Excel files (xls and xlsx) to agate
16long_description    ${description}
17
18homepage            https://pypi.python.org/pypi/$base_name
19master_sites        pypi:a/$base_name
20
21checksums           rmd160  a595f227561d6a18318a9483023f3f7c46e3fd12 \
22                    sha256  5e75452fefe1ffe18fe695eeb08337c50eb3f0b74bfe108d5a85a2bb3ee806d2
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}-openpyxl \
36                        port:py${python.version}-agate
37} else {
38    livecheck.type      regex
39    livecheck.url       ${homepage}
40    livecheck.regex     $base_name (\\d+(\\.\\d+)+)
41}