[64290] trunk/dports/python

jwa at macports.org jwa at macports.org
Sun Feb 28 10:22:08 PST 2010


Revision: 64290
          http://trac.macports.org/changeset/64290
Author:   jwa at macports.org
Date:     2010-02-28 10:22:04 -0800 (Sun, 28 Feb 2010)
Log Message:
-----------
a new port, GObject+ bindings on Python 2.7

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

Added: trunk/dports/python/py27-gobject/Portfile
===================================================================
--- trunk/dports/python/py27-gobject/Portfile	                        (rev 0)
+++ trunk/dports/python/py27-gobject/Portfile	2010-02-28 18:22:04 UTC (rev 64290)
@@ -0,0 +1,60 @@
+# -*- 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: Portfile 57375 2009-09-10 08:16:41Z ryandesign at macports.org $
+
+PortSystem      1.0
+
+name            py27-gobject
+platforms       darwin
+set my_name     pygobject
+version         2.18.0
+set branch      [join [lrange [split ${version} .] 0 1] .]
+categories      python gnome
+maintainers     mcalhoun jwa 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     522b813219a6ad14b85b25d953b08727 \
+                sha1    f800eda7978fe9813600cfdda973da15c3178bb0 \
+                rmd160  db454107949b0e797c6c151aa426368ef0f59317
+
+depends_build   port:pkgconfig
+depends_lib     path:${prefix}/lib/pkgconfig/glib-2.0.pc:glib2 \
+                port:libxslt \
+                port:gettext \
+                port:libiconv \
+                port:libffi \
+                port:python27
+
+set python_prefix ${frameworks_dir}/Python.framework/Versions/2.7
+
+configure.pre_args-delete  --prefix=${prefix}
+configure.pre_args-append  --prefix=${python_prefix}
+configure.args-append \
+    --includedir=${python_prefix}/include/python2.7
+
+configure.python    ${prefix}/bin/python2.7
+
+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}27"
+    system "ln -s ${python_prefix}/share/gtk-doc/html/${my_name} ${destroot}${prefix}/share/gtk-doc/html/${my_name}27"
+}
+
+livecheck.type  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/20100228/39947b33/attachment.html>


More information about the macports-changes mailing list