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