# SliTaz package receipt. PACKAGE="pygtk" VERSION="2.24.0" CATEGORY="development" SHORT_DESC="GTK+ for Python" MAINTAINER="erjo@slitaz.org" LICENSE="LGPL2.1" TARBALL="$PACKAGE-$VERSION.tar.bz2" WEB_SITE="http://www.pygtk.org/" WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION%.*}/$TARBALL" DEPENDS="python pycairo118 pygobject expat gtk+ libglade libxml2 xorg-libX11 \ xorg-libXau xorg-libXcomposite xorg-libXcursor xorg-libXdmcp xorg-libXext \ xorg-libXfixes xorg-libXinerama xorg-libXrandr xorg-libXrender \ xorg-libXdamage libffi python-numpy" BUILD_DEPENDS="python-dev pycairo118-dev pygobject-dev expat-dev gtk+-dev \ libglade-dev libxml2-dev libffi-dev python-numpy" current_version() { wget -O - $(dirname $WGET_URL) 2>/dev/null | \ sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q } # Rules to configure and make the package. compile_rules() { #https://bugzilla.gnome.org/show_bug.cgi?id=623965 patch -Np1 -i $stuff/python27.patch # Thanks Pat, fix build with recent pango patch -p1 < $stuff/pygtk-fix-pango-object-leaks.patch patch -p1 < $stuff/pygtk-Drop-the-PangoFont-find_shaper-virtual-method.patch ./configure --disable-docs $CONFIGURE_ARGS && make $MAKEFLAGS && make install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { PYTHON_LIB=python$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/') mkdir -p $fs/usr/lib cp -a $install/usr/lib/$PYTHON_LIB $fs/usr/lib # Ensure remove .la files find $fs -name "*.la" -delete }