wok-next view python-pygtk/receipt @ rev 21017
Some maintenance
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Oct 16 16:46:05 2018 +0300 (2018-10-16) |
parents | c9a7a7b42a86 |
children | d5aab818505e |
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="erjo@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 cairo gdk-pixbuf glib gtk2 libglade pango"
47 ;;
48 esac
49 }