summaryrefslogtreecommitdiffstats
path: root/extra/pygtk/Pkgfile
diff options
context:
space:
mode:
authorsibel <lesibel@free.fr>2011-01-02 11:54:14 +0100
committersibel <lesibel@free.fr>2011-01-02 11:54:14 +0100
commit6dc94643ed8b69ee79ccb06bad18b4547faee483 (patch)
tree9c620b647e033bfeab242c277c923250fbea30b2 /extra/pygtk/Pkgfile
parent2d2e7355f177ee4f5e336d362dd8f4f8ad4c5109 (diff)
downloadnutyx-extra-6dc94643ed8b69ee79ccb06bad18b4547faee483.tar.gz
nutyx-extra-6dc94643ed8b69ee79ccb06bad18b4547faee483.tar.bz2
nutyx-extra-6dc94643ed8b69ee79ccb06bad18b4547faee483.tar.xz
nutyx-extra-6dc94643ed8b69ee79ccb06bad18b4547faee483.zip
pygtk#2.22.0-2, maj port
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
}