[115929] trunk/dports/python

jwa at macports.org jwa at macports.org
Tue Jan 14 10:36:58 PST 2014


Revision: 115929
          https://trac.macports.org/changeset/115929
Author:   jwa at macports.org
Date:     2014-01-14 10:36:58 -0800 (Tue, 14 Jan 2014)
Log Message:
-----------
py-gobject: unify individual ports into one, remove unnecessary ones, version bump to latest in 2.x series

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

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

Modified: trunk/dports/python/py-gobject/Portfile
===================================================================
--- trunk/dports/python/py-gobject/Portfile	2014-01-14 17:53:24 UTC (rev 115928)
+++ trunk/dports/python/py-gobject/Portfile	2014-01-14 18:36:58 UTC (rev 115929)
@@ -1,15 +1,19 @@
+# -*- 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-gobject
 set my_name     pygobject
-version         2.18.0
+version         2.90.4
 set branch      [join [lrange [split ${version} .] 0 1] .]
-categories      python gnome
+categories-append   gnome
 license         LGPL-2.1+
 maintainers     jwa openmaintainer
 platforms       darwin
+python.versions	26 27 32 33
+
 description     Python bindings for GObject.
 
 long_description \
@@ -22,38 +26,49 @@
 homepage        http://www.pygtk.org/
 master_sites    gnome:sources/${my_name}/${branch}/
 distname        ${my_name}-${version}
-use_bzip2       yes
+use_xz			yes
 
-checksums           md5     522b813219a6ad14b85b25d953b08727 \
-                    sha1    f800eda7978fe9813600cfdda973da15c3178bb0 \
-                    rmd160  db454107949b0e797c6c151aa426368ef0f59317
+checksums           rmd160  d0fcb34ed56a0d086aa5e1419295faf0c7f2080a \
+                    sha256  8407b6997181bbca4783798e21d7d63ca41708a6c05a3b08c953d64e7b97b2a1
 
-depends_build   port:pkgconfig
-depends_lib     path:lib/pkgconfig/glib-2.0.pc:glib2 \
-                port:libxslt \
-                port:python24
+if {$subport != $name} {
+    depends_build-append   port:pkgconfig
+    depends_lib-append     path:lib/pkgconfig/glib-2.0.pc:glib2 \
+                port:libffi \
+                port:py${python.version}-cairo \
+    			port:gobject-introspection
 
-configure.args  --disable-glibtest
+    use_configure			yes
+    configure.python        ${python.bin}
+    configure.env-append    PKG_CONFIG_PATH='${python.prefix}/lib/pkgconfig'
+    configure.pre_args      --prefix='${python.prefix}'
+    configure.args-append	--disable-glibtest
+    configure.cppflags-append \
+                            -I${python.prefix}/include \
+        -I${prefix}/include/cairo
+    build.cmd		[portbuild::build_getmaketype]
+    build.target	
 
-configure.python    ${prefix}/bin/python2.4
+    destroot.cmd            ${build.cmd}
+    destroot.target         install
+    destroot.destdir        DESTDIR=${destroot}
 
-platform darwin 9 { 
-    post-patch { 
-        reinplace "s| -export-symbols-regex.*||g" ${worksrcpath}/gobject/Makefile.in 
-    } 
-} 
+    test.run        yes
+    test.env        PYTHONPATH=[glob -nocomplain ${worksrcpath}/build/lib*]
+    test.target     check
 
-test.run        yes
-test.env        PYTHONPATH=[glob -nocomplain ${worksrcpath}/build/lib*]
-test.target     check
+    post-destroot {
+        set docdir ${prefix}/share/doc/${name}-${version}
+        xinstall -d ${destroot}${docdir}
+        xinstall -m 0644 -W ${worksrcpath} AUTHORS COPYING ChangeLog NEWS README \
+            ${destroot}${docdir}
+    }
+}
 
-post-destroot {
-    set docdir ${prefix}/share/doc/${name}-${version}
-    xinstall -d ${destroot}${docdir}
-    xinstall -m 0644 -W ${worksrcpath} AUTHORS COPYING ChangeLog NEWS README \
-        ${destroot}${docdir}
+if {$subport == $name} {
+    livecheck.type  gnome
+    livecheck.name  ${my_name}
+    livecheck.regex {LATEST-IS-(2\.\d*[02468](?:\.\d+)*)}
+} else {
+    livecheck.type	none
 }
-
-livecheck.type  gnome
-livecheck.name  ${my_name}
-livecheck.regex {LATEST-IS-(2\.\d*[02468](?:\.\d+)*)}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140114/f219776c/attachment.html>


More information about the macports-changes mailing list