[71670] trunk/dports/python

singingwolfboy at macports.org singingwolfboy at macports.org
Sun Sep 19 11:05:26 PDT 2010


Revision: 71670
          http://trac.macports.org/changeset/71670
Author:   singingwolfboy at macports.org
Date:     2010-09-19 11:05:25 -0700 (Sun, 19 Sep 2010)
Log Message:
-----------
New port: py27-gtk

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

Added: trunk/dports/python/py27-gtk/Portfile
===================================================================
--- trunk/dports/python/py27-gtk/Portfile	                        (rev 0)
+++ trunk/dports/python/py27-gtk/Portfile	2010-09-19 18:05:25 UTC (rev 71670)
@@ -0,0 +1,68 @@
+# -*- 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            py27-gtk
+set my_name     pygtk
+version         2.21.0
+revision        1
+set branch      [join [lrange [split ${version} .] 0 1] .]
+categories      python x11
+platforms       darwin
+maintainers     nomaintainer
+description     PyGTK is the Python binding to GTK+ 2.x
+
+long_description \
+    PyGTK contains modules that allow you to use gtk in Python programs. \
+    At present, it is a fairly complete set of bindings.
+
+homepage        http://www.pygtk.org/
+master_sites    gnome:sources/${my_name}/${branch}/
+distname        ${my_name}-${version}
+use_bzip2       yes
+
+checksums       md5     450e3246b6cb0fe8186b5ae2aa8728a0 \
+                sha1    044997f877398132888cb1857d5ef065109ac456 \
+                rmd160  9031ca4f27dc9906d704efb895aac8c9f6422057
+
+depends_lib     port:python27 \
+                port:atk \
+                port:gtk2 \
+                port:libglade2 \
+                port:py27-cairo \
+                port:py27-gobject
+
+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.pkg_config_path  ${python_prefix}/lib/pkgconfig
+
+configure.python    ${prefix}/bin/python2.7
+
+platform darwin 9 {
+    post-patch {
+        reinplace "s| -export-symbols-regex.*||g" \
+            ${worksrcpath}/Makefile.in \
+            ${worksrcpath}/gtk/Makefile.in
+    }
+}
+
+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"
+# devhelp requires gtk-doc directory name  and .devhelp file name (less the .devhelp) to match
+    file rename ${destroot}${python_prefix}/share/gtk-doc/html/${my_name}/${my_name}.devhelp \
+                ${destroot}${python_prefix}/share/gtk-doc/html/${my_name}/${my_name}27.devhelp 
+    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+)*)}


Property changes on: trunk/dports/python/py27-gtk/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/20100919/a554a544/attachment.html>


More information about the macports-changes mailing list