[119866] trunk/dports/python/py-geoip/Portfile

mf2k at macports.org mf2k at macports.org
Thu May 8 10:27:33 PDT 2014


Revision: 119866
          https://trac.macports.org/changeset/119866
Author:   mf2k at macports.org
Date:     2014-05-08 10:27:33 -0700 (Thu, 08 May 2014)
Log Message:
-----------
py-geoip: Use modern checksums. Fix spacing. Fix livecheck. De-tab.

Modified Paths:
--------------
    trunk/dports/python/py-geoip/Portfile

Modified: trunk/dports/python/py-geoip/Portfile
===================================================================
--- trunk/dports/python/py-geoip/Portfile	2014-05-08 14:24:42 UTC (rev 119865)
+++ trunk/dports/python/py-geoip/Portfile	2014-05-08 17:27:33 UTC (rev 119866)
@@ -1,43 +1,44 @@
 # -*- 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
+PortSystem          1.0
+PortGroup python    1.0
 
-name			py-geoip
-version			1.2.8
-categories-append	net
-license			LGPL-2.1+
-platforms		darwin
-maintainers		nomaintainer
-description		Python module for accessing the GeoIP C library
-long_description	${description}
+name                py-geoip
+version             1.2.8
+categories-append   net
+license             LGPL-2.1+
+platforms           darwin
+maintainers         nomaintainer
 
-homepage		http://www.maxmind.com/app/python
-master_sites	http://www.maxmind.com/download/geoip/api/python/
-distname		GeoIP-Python-${version}
+description         Python module for accessing the GeoIP C library
+long_description    ${description}
 
-checksums           sha1    05cf2d08b72d4bd01b7a31115621f18557dff73c \
-                    rmd160  5311cb3553943a71e7335732c06d070a4bf2768f
+homepage            http://www.maxmind.com/app/python
+master_sites        http://www.maxmind.com/download/geoip/api/python/
+distname            GeoIP-Python-${version}
 
-python.versions	24 25 26 27
+checksums           rmd160  5311cb3553943a71e7335732c06d070a4bf2768f \
+                    sha256  8b946307355b60cb0f2b0be8ac90c1231286e0e79917509763267fce01a50e73
 
+python.versions     24 25 26 27
+
 if {${name} ne ${subport}} {
-	depends_lib-append	port:libgeoip
+    depends_lib-append  port:libgeoip
 
-	post-patch {
-		reinplace "s|/usr/local|${prefix}|" ${worksrcpath}/setup.py
-	}
+    post-patch {
+        reinplace "s|/usr/local|${prefix}|" ${worksrcpath}/setup.py
+    }
 
-	post-destroot	{
+    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
     }
+    livecheck.type  none
 } else {
-	livecheck.type	regex
-	livecheck.url	${master_sites}
-	livecheck.regex	"GeoIP-Python-(\\d+(\\.\\d+)+)${extract.suffix}"
+    livecheck.type  regex
+    livecheck.url   ${master_sites}
+    livecheck.regex "GeoIP-Python-(\\d+(\\.\\d+)+)${extract.suffix}"
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140508/79f24a2d/attachment.html>


More information about the macports-changes mailing list