[95185] trunk/dports/python

jmr at macports.org jmr at macports.org
Fri Jul 6 08:04:53 PDT 2012


Revision: 95185
          https://trac.macports.org/changeset/95185
Author:   jmr at macports.org
Date:     2012-07-06 08:04:52 -0700 (Fri, 06 Jul 2012)
Log Message:
-----------
py*-geoip: unify, fix build with older clang (#32628)

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

Removed Paths:
-------------
    trunk/dports/python/py25-geoip/
    trunk/dports/python/py26-geoip/
    trunk/dports/python/py27-geoip/

Modified: trunk/dports/python/py-geoip/Portfile
===================================================================
--- trunk/dports/python/py-geoip/Portfile	2012-07-06 15:01:03 UTC (rev 95184)
+++ trunk/dports/python/py-geoip/Portfile	2012-07-06 15:04:52 UTC (rev 95185)
@@ -1,11 +1,12 @@
 # $Id$
 
 PortSystem 1.0
-PortGroup python24 1.0
+PortGroup python 1.0
 
 name			py-geoip
 version			1.2.5
 categories		python net
+license			LGPL-2.1+
 platforms		darwin
 maintainers		freebsd.org:miwi
 description		Python module for accessing the GeoIP C library
@@ -18,14 +19,19 @@
 checksums		sha1    bb7d89425319a1ae517d9b4eacd7c22b19fcf195 \
 				rmd160  1e313f7c50cbb6f61843427046e1f2f812c5bbc8
 
-depends_lib-append	port:libgeoip
+python.versions	24 25 26 27
 
-build.env		CFLAGS=-I${prefix}/include \
-				LDFLAGS=-L${prefix}/lib
+if {$subport != $name} {
+	depends_lib-append	port:libgeoip
 
-post-destroot	{
-	xinstall -m 644 -W ${worksrcpath} ChangeLog LICENSE README \
-		${destroot}${prefix}/share/doc/${name}
-	xinstall -m 644 -W ${worksrcpath} test.py test_city.py test_org.py \
-		${destroot}${prefix}/share/doc/${name}/examples
+	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
+    }
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120706/73674c80/attachment.html>


More information about the macports-changes mailing list