1 # Contributor: Cilyan Olowen <gaknar@gmail.com>
3 pkgname=gnome-python-sugar
8 pkgdesc="Gnome Python Bindings limited to librairies needed by Sugar"
10 license=('GPL' 'LGPL')
12 depends=('intltool' 'pygtk>=2.13.0' 'librsvg' 'libwnck' 'gconf' 'evince')
13 conflicts=('gnome-python-desktop' 'gnome-python')
14 provides=('gnome-python-desktop' 'gnome-python')
15 url="http://www.gnome.org"
16 source=(http://ftp.gnome.org/pub/gnome/sources/gnome-python-desktop/2.30/gnome-python-desktop-${_gpdver}.tar.bz2
17 http://ftp.gnome.org/pub/gnome/sources/gnome-python/2.22/gnome-python-${_gpver}.tar.bz2
19 md5sums=('a6d448d46a6b3062ce7a1b6a9fddfb48'
20 'ab12d94954a57de39b25eb7903d8429c'
21 '4d4fdf50ffeae04e3c3a422639670148')
23 # GConf python bindings
24 cd "${srcdir}/gnome-python-${_gpver}"
25 ./waf configure --prefix=/usr --enable-module gconf || return 1
26 ./waf build ${MAKEFLAGS} || return 1
27 ./waf install --destdir="${pkgdir}" || return 1
29 # rsvg and wnck python bindings
30 cd "${srcdir}/gnome-python-desktop-${_gpdver}"
31 patch -p0 -i "${srcdir}/wscript.patch"
32 PKG_CONFIG_PATH=$PKG_CONFIG_PATH:${pkgdir}/usr/lib/pkgconfig \
33 ./waf configure --prefix=/usr --enable-modules rsvg,wnck,evince || return 1
34 ./waf build ${MAKEFLAGS} || return 1
35 ./waf install --destdir="${pkgdir}" || return 1
41 rm -rf lib/python2.6/site-packages/gtk-2.0/gnomeprint
42 rm share/pygtk/2.0/argtypes/bonobo-arg-types.py
43 rm share/pygtk/2.0/defs/{printui,print}.defs