[94449] users/cal/ports/python

cal at macports.org cal at macports.org
Tue Jun 19 12:56:12 PDT 2012


Revision: 94449
          https://trac.macports.org/changeset/94449
Author:   cal at macports.org
Date:     2012-06-19 12:56:12 -0700 (Tue, 19 Jun 2012)
Log Message:
-----------
New port: py-gobject3, python bindings for gobject-introspection, gnome3 version

Added Paths:
-----------
    users/cal/ports/python/py-gobject3/
    users/cal/ports/python/py-gobject3/Portfile

Added: users/cal/ports/python/py-gobject3/Portfile
===================================================================
--- users/cal/ports/python/py-gobject3/Portfile	                        (rev 0)
+++ users/cal/ports/python/py-gobject3/Portfile	2012-06-19 19:56:12 UTC (rev 94449)
@@ -0,0 +1,64 @@
+# $Id$
+# -*- 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
+
+PortSystem          1.0
+PortGroup           python 1.0
+
+name                py-gobject3
+set my_name         pygobject
+version             3.2.2
+set branch          [join [lrange [split ${version} .] 0 1] .]
+categories          python gnome
+license             LGPL-2.1+
+maintainers         cal openmaintainer
+platforms           darwin
+description         Python bindings for GObject, version 3
+
+long_description \
+    PyGObject is a Python dynamic module that enables developers to use the \
+    power of GObject, which is part of the GNOME platform.
+
+homepage            https://live.gnome.org/PyGObject
+master_sites        gnome:sources/${my_name}/${branch}/
+distname            ${my_name}-${version}
+use_xz              yes
+
+checksums           sha256  4653790baaff0176fd814b88cfb5378c45906a120b25d01be2554f423b726eb0 \
+                    rmd160  090fa4941fa30e68882e25856d92230ebdd0cea9
+
+python.versions     26 27
+
+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
+    
+    use_configure           yes
+    configure.env-append    PKG_CONFIG_PATH='${python.prefix}/lib/pkgconfig'
+    configure.pre_args      --prefix='${python.prefix}'
+    configure.args          --disable-glibtest
+
+    build.cmd               [portbuild::build_getmaketype]
+    build.target
+
+    destroot.cmd            ${build.cmd}
+    destroot.target         install
+    destroot.destdir        DESTDIR=${destroot}
+    
+    test.run                yes
+    test.env                PYTHONPATH=[glob -nocomplain ${worksrcpath}/build/lib*]
+    test.target             check
+    
+    post-destroot {
+        set docdir ${prefix}/share/doc/${subport}
+        xinstall -d ${destroot}${docdir}
+        xinstall -m 0644 -W ${worksrcpath} \
+            AUTHORS COPYING ChangeLog ChangeLog.pre-2.18 NEWS README \
+            ${destroot}${docdir}
+    }
+} else {
+    livecheck.type      regex
+    livecheck.url       http://ftp.gnome.org/pub/gnome/sources/${my_name}/${branch}/
+    livecheck.regex     {LATEST-IS-(\d+(?:\.\d+)*)}
+}


Property changes on: users/cal/ports/python/py-gobject3/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120619/19d598a8/attachment.html>


More information about the macports-changes mailing list