Ticket #53643: Portfile

File Portfile, 2.1 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
5PortGroup           select 1.0
6
7set base_name           csvkit
8name                py-$base_name
9version             1.0.1
10python.versions     27 34 35 36
11categories-append   textproc
12platforms           darwin
13maintainers         esafak
14license             GPL-3
15
16description         A suite of utilities for converting to and working with CSV, the king of tabular file formats
17long_description    \
18    csvkit is a suite of utilities for converting to and working with CSV, the \
19    king of tabular file formats. csvkit is to tabular data what the standard \
20    Unix text processing suite (grep, sed, cut, sort) is to text. As such, csvkit \
21    adheres to the Unix philosophy.
22
23homepage            https://pypi.python.org/pypi/$base_name
24master_sites        pypi:c/$base_name
25
26checksums           rmd160  7b476ea6956bf47c8f480043a83abe2a8feb6b68 \
27                    sha256  046bc6e71e6892b4d244f8702786354e28ca6002814d460d99659d6ad8e7bcd1
28
29distname            $base_name-${version}
30
31if {${name} ne ${subport}} {
32    livecheck.type      none
33
34    depends_build-append port:py${python.version}-setuptools \
35                        port:py${python.version}-coverage \
36                        port:py${python.version}-sphinx \
37                        port:py${python.version}-sphinx_rtd_theme \
38                        port:py${python.version}-nose \
39                        port:py${python.version}-tox
40
41    depends_lib-append  port:${base_name}_select \
42                                        port:py${python.version}-agate \
43                                        port:py${python.version}-agate_excel \
44                                        port:py${python.version}-agate_dbf \
45                                        port:py${python.version}-agate_sql \
46                        port:py${python.version}-six
47
48    select.group        $base_name
49    select.file         ${filespath}/py${python.version}-$base_name
50} else {
51    livecheck.type      regex
52    livecheck.url       ${homepage}
53    livecheck.regex     $base_name (\\d+(\\.\\d+)+)
54}