1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python3_{6,7,8} )
8 inherit gnome2 python-single-r1 virtualx
10 DESCRIPTION="A user interface designer for GTK+ and GNOME"
11 HOMEPAGE="https://glade.gnome.org/"
13 LICENSE="GPL-2+ FDL-1.1+"
14 SLOT="3.10/6" # subslot = suffix of libgladeui-2.so
15 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86"
17 IUSE="debug +introspection python webkit"
18 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
21 dev-libs/atk[introspection?]
22 >=dev-libs/glib-2.53.2:2
23 >=dev-libs/libxml2-2.4.0:2
25 x11-libs/gdk-pixbuf:2[introspection?]
26 >=x11-libs/gtk+-3.20.0:3[introspection?]
27 x11-libs/pango[introspection?]
28 introspection? ( >=dev-libs/gobject-introspection-1.32:= )
31 x11-libs/gtk+:3[introspection]
32 $(python_gen_cond_dep '
33 >=dev-python/pygobject-3.8:3[${PYTHON_MULTI_USEDEP}]
36 webkit? ( >=net-libs/webkit-gtk-2.12.0:4 )
39 app-text/docbook-xml-dtd:4.1.2
41 >=dev-util/gtk-doc-am-1.13
42 >=dev-util/intltool-0.41.0
46 # eautoreconf requires:
48 # dev-libs/gobject-introspection-common
49 # gnome-base/gnome-common
51 RESTRICT="test" # https://gitlab.gnome.org/GNOME/glade/issues/333
54 # To avoid file collison with other slots, rename help module.
55 # Prevent the UI from loading glade:3's gladeui devhelp documentation.
56 "${FILESDIR}"/${PN}-3.14.1-doc-version.patch
60 use python && python-single-r1_pkg_setup
64 gnome2_src_configure \
67 --enable-libtool-lock \
68 $(usex debug --enable-debug ' ') \
69 $(use_enable introspection) \
70 $(use_enable python) \
71 $(use_enable webkit webkit2gtk)
79 # modify name in .devhelp2 file to avoid shadowing with glade:3 docs
80 sed -e 's:name="gladeui":name="gladeui-2":' \
81 -i doc/html/gladeui.devhelp2 || die "sed of gladeui.devhelp2 failed"
87 if ! has_version dev-util/devhelp ; then
88 elog "You may want to install dev-util/devhelp for integration API"
89 elog "documentation support."