1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 VALA_USE_DEPEND="vapigen"
7 inherit eapi7-ver gnome2 vala
9 DESCRIPTION="Unicode character map viewer and library"
10 HOMEPAGE="https://wiki.gnome.org/Apps/Gucharmap"
14 KEYWORDS="~alpha ~amd64 ~arm arm64 ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd"
16 IUSE="debug +introspection test vala"
17 REQUIRED_USE="vala? ( introspection )"
19 UNICODE_VERSION=$(ver_cut 1-2)
22 =app-i18n/unicode-data-${UNICODE_VERSION}*
23 >=dev-libs/glib-2.32:2
24 >=x11-libs/pango-1.2.1[introspection?]
25 >=x11-libs/gtk+-3.16:3[introspection?]
27 introspection? ( >=dev-libs/gobject-introspection-0.9.0:= )
29 RDEPEND="${COMMON_DEPEND}
30 !<gnome-extra/gucharmap-3:0
33 dev-util/desktop-file-utils
35 >=dev-util/gtk-doc-am-1
36 >=dev-util/intltool-0.40
40 test? ( app-text/docbook-xml-dtd:4.1.2 )
41 vala? ( $(vala_depend) )
45 # prevent file collisions with slot 0
46 sed -e "s:GETTEXT_PACKAGE=gucharmap$:GETTEXT_PACKAGE=gucharmap-${SLOT}:" \
47 -i configure.ac configure || die "sed configure.ac configure failed"
50 sed -e 's/-Wall //g' -i configure || die "sed failed"
52 use vala && vala_src_prepare
57 # unihan is not really conditional
58 # https://bugzilla.gnome.org/show_bug.cgi?id=768210#c5
59 # https://gitlab.gnome.org/GNOME/gucharmap/issues/13
60 gnome2_src_configure \
62 --with-unicode-data=/usr/share/unicode-data \
63 $(usex debug --enable-debug=yes ' ') \
64 $(use_enable introspection) \