Ticket #51071: Portfile

File Portfile, 1.1 KB (added by dliessi (Davide Liessi), 8 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# $Id$
3
4PortSystem          1.0
5PortGroup           python 1.0
6
7name                github-backup
8set _n              [string index ${name} 0]
9version             0.9.0
10platforms           darwin
11license             MIT
12maintainers         gmail.com:davide.liessi openmaintainer
13
14description         Backup a GitHub user or organization
15long_description    ${description}
16
17homepage            http://github.com/josegonzalez/python-github-backup
18master_sites        https://pypi.python.org/packages/source/${_n}/${name}
19
20checksums           rmd160  221e594dd54c1777f806830149c4e08a65514c2f \
21                    sha256  375edd04b5bec475135f9e152142f98ef49457071426ab2fbdf29cb9170f0271
22
23python.default_version  27
24
25if {${name} ne ${subport}} {
26    depends_build-append \
27                    port:py${python.version}-setuptools
28
29    livecheck.type  none
30} else {
31    livecheck.type  regex
32    livecheck.url   https://pypi.python.org/pypi/${name}
33    livecheck.regex ">${name}-(\\d+(\\.\\d+)+)\\${extract.suffix}<"
34}