wok-next view python-pygobject2/receipt @ rev 21103

emacs: depends on emacs-common
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Jan 03 11:21:15 2019 +0200 (2019-01-03)
parents c9a7a7b42a86
children
line source
1 # SliTaz package receipt v2.
3 ORIGIN="PyGObject"
4 PACKAGE="python-pygobject2"
5 VERSION="2.28.7"
6 CATEGORY="python"
7 SHORT_DESC="Python Bindings for GLib/GObject/GIO/GTK+"
8 MAINTAINER="devel@slitaz.org"
9 LICENSE="LGPL2.1"
10 WEB_SITE="https://pypi.org/project/$ORIGIN/"
11 #HOST_ARCH
12 REPOLOGY="python:pygobject2"
14 # pip drops 2.x branch, get it from GNOME mirror:
15 TARBALL="pygobject-$VERSION.tar.xz"
16 WGET_URL="$GNOME_MIRROR/pygobject/${VERSION%.*}/$TARBALL"
18 BUILD_DEPENDS="python-dev python-pycairo-dev python3-dev python3-pycairo-dev \
19 glib-dev gobject-introspection-dev cairo-dev"
20 BUILD_DEPENDS="python-dev python3-dev glib-dev"
21 SPLIT="$PACKAGE-dev \
22 ${PACKAGE/python/python3}:3 ${PACKAGE/python/python3}-dev:3"
24 compile_rules() {
25 export PYTHON=/usr/bin/python$SET
27 # enabling introspection leads to compiling errors
28 ./configure \
29 --disable-introspection \
30 $CONFIGURE_ARGS &&
31 fix libtool &&
32 make &&
33 make install || return 1
35 find $install -type f \( -name '*.pyc' -o -name '*.pyo' \) -delete
36 }
38 genpkg_rules() {
39 case $PACKAGE in
40 *-dev)
41 copy @dev
42 DEPENDS="${PACKAGE%%-dev} glib-dev libffi-dev"
43 ;;
44 *)
45 copy @std
46 py="${PACKAGE%%-*}" # python/python3
47 DEPENDS="$py glib libffi"
48 ;;
49 esac
50 }