summaryrefslogtreecommitdiffstats
path: root/extra/pygtk/Pkgfile
diff options
context:
space:
mode:
Diffstat (limited to 'extra/pygtk/Pkgfile')
-rw-r--r--extra/pygtk/Pkgfile16
1 files changed, 11 insertions, 5 deletions
diff --git a/extra/pygtk/Pkgfile b/extra/pygtk/Pkgfile
index 5eb07f6f7..d4734d35e 100644
--- a/extra/pygtk/Pkgfile
+++ b/extra/pygtk/Pkgfile
@@ -5,16 +5,22 @@
# Depends on: gtk, pygobject, pycairo, libglade
name=pygtk
-version=2.17.0
-release=1
-source=(http://ftp.gnome.org/pub/gnome/sources/$name/${version%.*}/$name-$version.tar.bz2)
+version=2.22.0
+release=2
+source=(http://ftp.gnome.org/pub/gnome/sources/$name/${version%.*}/$name-$version.tar.bz2
+ python27.patch)
build() {
cd $name-$version
- sed -i -e 's/SUBDIRS = codegen . $(GTK_SUBDIR) examples tests docs/SUBDIRS = codegen . $(GTK_SUBDIR) examples tests/' Makefile.in
- ./configure --prefix=/usr --enable-numpy
+ patch -Np1 -i ../python27.patch
+
+# sed -i -e 's/SUBDIRS = codegen . $(GTK_SUBDIR) examples tests docs/SUBDIRS = codegen . $(GTK_SUBDIR) examples tests/' Makefile.in
+
+ PYTHON=python2 ./configure --prefix=/usr --enable-numpy
make
make DESTDIR=$PKG install
+
+ sed -i -e 's#env python$#env python2#' $PKG/usr/lib/pygtk/2.0/{,demos/}*.py
install -m644 gtk/gtk-extrafuncs.defs $PKG/usr/share/pygtk/2.0/defs/
rm -rf $PKG/usr/share/gtk-doc
}