# -*- 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 # $Id$ PortSystem 1.0 PortGroup python 1.0 name py-geoip version 1.2.7 categories-append net license LGPL-2.1+ platforms darwin maintainers nomaintainer description Python module for accessing the GeoIP C library long_description ${description} homepage http://www.maxmind.com/app/python master_sites http://www.maxmind.com/download/geoip/api/python/ distname GeoIP-Python-${version} checksums sha1 0af5f5d06bc81b5427019d28ba029e8c31dec9eb \ rmd160 4abb50a70ce15e8305e786593ddd2de15efed129 python.versions 24 25 26 27 if {$subport != $name} { depends_lib-append port:libgeoip post-patch { reinplace "s|/usr/local|${prefix}|" ${worksrcpath}/setup.py } post-destroot { xinstall -m 644 -W ${worksrcpath} ChangeLog LICENSE README \ ${destroot}${prefix}/share/doc/${subport} xinstall -m 644 -W ${worksrcpath} test.py test_city.py test_org.py \ ${destroot}${prefix}/share/doc/${subport}/examples livecheck.type none } } else { livecheck.type regex livecheck.url ${master_sites} livecheck.regex "GeoIP-Python-(\\d+(\\.\\d+)+)${extract.suffix}" }