wok-next annotate python-pygobject2/receipt @ rev 21727

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