wok-current view pygtk/receipt @ rev 25642
Bump linux to 4.19.305, add linux-pae-ipv6
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Wed Jan 17 12:05:22 2024 +0000 (11 months ago) |
parents | 6831608a1b2a |
children | 5926178cd6fa |
line source
1 # SliTaz package receipt.
3 PACKAGE="pygtk"
4 VERSION="2.24.0"
5 CATEGORY="development"
6 SHORT_DESC="GTK+ for Python"
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="LGPL2.1"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="http://www.pygtk.org/"
11 WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION%.*}/$TARBALL"
13 DEPENDS="python pycairo118 pygobject expat gtk+ libglade libxml2 xorg-libX11 \
14 xorg-libXau xorg-libXcomposite xorg-libXcursor xorg-libXdmcp xorg-libXext \
15 xorg-libXfixes xorg-libXinerama xorg-libXrandr xorg-libXrender \
16 xorg-libXdamage libffi python-numpy"
17 BUILD_DEPENDS="python-dev pycairo118-dev pygobject-dev expat-dev gtk+-dev \
18 libglade-dev libxml2-dev libffi-dev python-numpy"
20 current_version()
21 {
22 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
23 sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 #https://bugzilla.gnome.org/show_bug.cgi?id=623965
30 patch -Np1 -i $stuff/python27.patch
31 # Thanks Pat, fix build with recent pango
32 patch -p1 < $stuff/pygtk-fix-pango-object-leaks.patch
33 patch -p1 < $stuff/pygtk-Drop-the-PangoFont-find_shaper-virtual-method.patch
34 ./configure --disable-docs $CONFIGURE_ARGS &&
35 make $MAKEFLAGS && make install
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 PYTHON_LIB=python$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/')
42 mkdir -p $fs/usr/lib
43 cp -a $install/usr/lib/$PYTHON_LIB $fs/usr/lib
45 # Ensure remove .la files
46 find $fs -name "*.la" -delete
47 }