wok-next view python-pygtk/receipt @ rev 21640

updated fbgrab (1.2 -> 1.3.3)
author Hans-G?nter Theisgen
date Fri Jun 26 15:42:40 2020 +0100 (2020-06-26)
parents d5aab818505e
children
line source
1 # SliTaz package receipt v2.
3 ORIGIN="PyGTK"
4 PACKAGE="python-pygtk"
5 VERSION="2.24.0"
6 CATEGORY="python"
7 SHORT_DESC="GTK+ for Python"
8 MAINTAINER="devel@slitaz.org"
9 LICENSE="LGPL2.1"
10 WEB_SITE="https://pygobject.readthedocs.io/en/latest/"
11 #HOST_ARCH
12 REPOLOGY="python:pygtk"
14 TARBALL="pygtk-$VERSION.tar.bz2"
15 WGET_URL="$GNOME_MIRROR/pygtk/${VERSION%.*}/$TARBALL"
17 # using Python3 produce errors
18 BUILD_DEPENDS="python-dev python-pygobject2-dev python-pycairo-dev \
19 python-numpy glib-dev atk-dev pango-dev gtk2-dev libglade-dev"
20 SPLIT="$PACKAGE-demos $PACKAGE $PACKAGE-dev"
22 compile_rules() {
23 ./configure \
24 --disable-docs \
25 $CONFIGURE_ARGS &&
26 fix libtool &&
27 make $MAKEFLAGS &&
28 make install || return 1
30 find $install -type f \( -name '*.pyc' -o -name '*.pyo' \) -delete
31 }
33 genpkg_rules() {
34 case $PACKAGE in
35 *-demos)
36 copy demos/ pygtk-demo pygtk-demo.py
37 DEPENDS="python-pygtk"
38 CAT="development|demos"
39 ;;
40 *-dev)
41 copy @dev
42 DEPENDS="python-pygtk gtk2-dev python-pygobject2-dev"
43 ;;
44 *)
45 copy @std @rm
46 DEPENDS="python atk libcairo gdk-pixbuf glib gtk2 libglade pango"
47 ;;
48 esac
49 }