[43107] trunk/dports/python

mcalhoun at macports.org mcalhoun at macports.org
Fri Dec 5 00:43:15 PST 2008


Revision: 43107
          http://trac.macports.org/changeset/43107
Author:   mcalhoun at macports.org
Date:     2008-12-05 00:43:14 -0800 (Fri, 05 Dec 2008)
Log Message:
-----------
py26-gobject: New Port

Added Paths:
-----------
    trunk/dports/python/py26-gobject/
    trunk/dports/python/py26-gobject/Portfile

Added: trunk/dports/python/py26-gobject/Portfile
===================================================================
--- trunk/dports/python/py26-gobject/Portfile	                        (rev 0)
+++ trunk/dports/python/py26-gobject/Portfile	2008-12-05 08:43:14 UTC (rev 43107)
@@ -0,0 +1,64 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem      1.0
+
+name            py26-gobject
+platforms       darwin
+set my_name     pygobject
+version         2.14.2
+set branch      [join [lrange [split ${version} .] 0 1] .]
+categories      python gnome
+maintainers     mcalhoun openmaintainer
+description     Python bindings for GObject.
+
+long_description \
+    PyGObject provides a convenient wrapper for the GObject+ library \
+    for use in Python programs, and takes care of many of the boring details \
+    such as managing memory and type casting. \
+    When combined with PyGTK, PyORBit and gnome-python, \
+    it can be used to write full featured Gnome applications.
+
+homepage        http://www.pygtk.org/
+master_sites    gnome:sources/${my_name}/${branch}/
+distname        ${my_name}-${version}
+use_bzip2       yes
+
+checksums       md5 0e9e9300e81847f4f7266f49d3bebbaf \
+                sha1 e891c3f1ad0d6f737d6c51b9be3eb363f7d11cbc \
+                rmd160 c9894695d745a9d859f3edfb9e2946ad8b4fec3d
+
+depends_build   port:pkgconfig
+depends_lib     path:${prefix}/lib/pkgconfig/glib-2.0.pc:glib2 \
+                port:libxslt \
+                port:gettext \
+                port:libiconv \
+                port:libffi \
+                port:python26
+
+# Can be removed once MacPorts 1.7.0 is released
+if {![info exists frameworks_dir]} {
+    set frameworks_dir ${prefix}/Library/Frameworks
+}
+set python_prefix ${frameworks_dir}/Python.framework/Versions/2.6
+
+configure.pre_args-delete  --prefix=${prefix}
+configure.pre_args-append  --prefix=${python_prefix}
+configure.args-append \
+    --includedir=${python_prefix}/include/python2.6
+
+configure.python    ${prefix}/bin/python2.6
+
+post-destroot {
+    set docdir ${prefix}/share/doc/${name}
+    xinstall -d ${destroot}${docdir}
+    xinstall -m 0644 -W ${worksrcpath} AUTHORS COPYING ChangeLog NEWS README \
+        ${destroot}${docdir}
+    xinstall -d ${destroot}${prefix}/share/gtk-doc/html
+    system "ln -s ${python_prefix}/share/${my_name} ${destroot}${prefix}/share/${my_name}26"
+    system "ln -s ${python_prefix}/share/gtk-doc/html/${my_name} ${destroot}${prefix}/share/gtk-doc/html/${my_name}26"
+}
+
+livecheck.check regex
+livecheck.url   http://ftp.gnome.org/pub/gnome/sources/${my_name}/${branch}/
+livecheck.regex {LATEST-IS-(\d+(?:\.\d+)*)}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20081205/d39adaff/attachment.html>


More information about the macports-changes mailing list