source: trunk/dports/python/py-geoip/Portfile

Last change on this file was 130481, checked in by larryv@…, 3 years ago

py{24,25,26}-geoip: Replace with py27

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.4 KB
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: Portfile 130481 2014-12-31 02:51:18Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup python    1.0
6
7name                py-geoip
8version             1.2.8
9categories-append   net
10license             LGPL-2.1+
11platforms           darwin
12maintainers         nomaintainer
13
14description         Python module for accessing the GeoIP C library
15long_description    ${description}
16
17homepage            http://www.maxmind.com/app/python
18master_sites        http://www.maxmind.com/download/geoip/api/python/
19distname            GeoIP-Python-${version}
20
21checksums           rmd160  5311cb3553943a71e7335732c06d070a4bf2768f \
22                    sha256  8b946307355b60cb0f2b0be8ac90c1231286e0e79917509763267fce01a50e73
23
24python.versions     27
25
26if {${name} ne ${subport}} {
27    depends_lib-append  port:libgeoip
28
29    post-patch {
30        reinplace "s|/usr/local|${prefix}|" ${worksrcpath}/setup.py
31    }
32
33    post-destroot   {
34        xinstall -m 644 -W ${worksrcpath} ChangeLog LICENSE README \
35            ${destroot}${prefix}/share/doc/${subport}
36        xinstall -m 644 -W ${worksrcpath} test.py test_city.py test_org.py \
37            ${destroot}${prefix}/share/doc/${subport}/examples
38    }
39    livecheck.type  none
40} else {
41    livecheck.type  regex
42    livecheck.url   ${master_sites}
43    livecheck.regex "GeoIP-Python-(\\d+(\\.\\d+)+)${extract.suffix}"
44}
Note: See TracBrowser for help on using the repository browser.