1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 GNOME2_EAUTORECONF="yes"
7 PYTHON_COMPAT=( python{3_6,3_7,3_8} )
9 inherit autotools eutils gnome2 multilib python-single-r1 virtualx
11 DESCRIPTION="A GObject plugins library"
12 HOMEPAGE="https://developer.gnome.org/libpeas/stable/"
16 KEYWORDS="~alpha amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc x86 ~amd64-linux ~x86-linux"
18 IUSE="+gtk glade lua luajit +python"
19 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
22 >=dev-libs/glib-2.38:2
23 >=dev-libs/gobject-introspection-1.39:=
24 glade? ( >=dev-util/glade-3.9.1:3.10 )
25 gtk? ( >=x11-libs/gtk+-3:3[introspection] )
28 luajit? ( >=dev-lang/luajit-2:2 )
29 !luajit? ( =dev-lang/lua-5.1*:0 ) )
32 $(python_gen_cond_dep '
33 >=dev-python/pygobject-3.2:3[${PYTHON_MULTI_USEDEP}]
39 >=dev-util/gtk-doc-am-1.11
40 >=dev-util/intltool-0.40
43 dev-libs/gobject-introspection-common
44 gnome-base/gnome-common
46 # eautoreconf needs gobject-introspection-common, gnome-common
49 # Gentoo uses unversioned lua - lua.pc instad of lua5.1.pc, /usr/bin/lua instead of /usr/bin/lua5.1
50 "${FILESDIR}"/${PN}-1.14.0-lua.pc.patch
51 "${FILESDIR}"/${PV}-py38-support.patch # Fix py3.8 support, bug 702810
55 use python && python-single-r1_pkg_setup
59 # Wtf, --disable-gcov, --enable-gcov=no, --enable-gcov, all enable gcov
60 # What do we do about gdb, valgrind, gcov, etc?
62 $(use_enable glade glade-catalog)
66 # py2 not supported anymore
68 $(use_enable python python3)
71 $(use_enable lua lua5.1)
72 $(use_enable $(usex luajit lua luajit) luajit)
75 gnome2_src_configure "${myconf[@]}"
79 # This looks fixed since 1.18.0:
81 # FIXME: Tests fail because of some bug involving Xvfb and Gtk.IconTheme
82 # DO NOT REPORT UPSTREAM, this is not a libpeas bug.
84 # >>> from gi.repository import Gtk
85 # >>> Gtk.IconTheme.get_default().has_icon("gtk-about")
86 # This should return True, it returns False for Xvfb