blob: d4734d35e4d6d759fa6377e7dec5f45b2481f00c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
# Description: Permet l'implémentation de code python dans des applications utilisant gtk
# URL: http://www.pygtk.org/
# Maintainer: NuTyX core team
# Packager: skingrapher at legtux dot org
# Depends on: gtk, pygobject, pycairo, libglade
name=pygtk
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
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
}
|