Ticket #46795: Portfile

File Portfile, 1007 bytes (added by hahn.seb@…, 9 years ago)
Line 
1# $Id$
2
3PortSystem          1.0
4PortGroup           python 1.0
5
6set _name           django-countries
7set _n              [string index ${_name} 0]
8
9name                py-${_name}
10version             3.1.1
11python.versions     27 34
12
13platforms           darwin
14license             BSD
15maintainers         nomaintainer
16
17description         Django test runner that uses nose
18long_description    ${description}
19
20homepage            http://github.com/SmileyChris/${_name}
21master_sites        http://pypi.python.org/packages/source/${_n}/${_name}
22distname            ${_name}-${version}
23
24checksums           rmd160  9296ee7ac3e402d93f9a775c4d084aa413574ffb \
25                    sha256  7a53f5f1030fbc81f17cea8055bbb4e3d94e294897e6e680fc3657226122a3b0
26
27if {${name} ne ${subport}} {
28    depends_lib     port:py${python.version}-django
29
30    livecheck.type  none
31} else {
32    livecheck.type  regex
33    livecheck.url   [lindex ${master_sites} 0]
34    livecheck.regex ">${_name}-(\\d+(\\.\\d+)+)\\${extract.suffix}<"
35}