Ticket #46795: py-django-countries.port

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