1 # Copyright 1999-2016 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 VALA_USE_DEPEND="vapigen"
11 DESCRIPTION="Unicode character map viewer and library"
12 HOMEPAGE="https://wiki.gnome.org/Apps/Gucharmap"
16 KEYWORDS="alpha amd64 arm ~ia64 ppc ppc64 ~sh ~sparc x86 ~x86-fbsd"
18 IUSE="cjk +introspection test vala"
19 REQUIRED_USE="vala? ( introspection )"
22 >=dev-libs/glib-2.32:2
23 >=x11-libs/pango-1.2.1[introspection?]
24 >=x11-libs/gtk+-3.16:3[introspection?]
25 introspection? ( >=dev-libs/gobject-introspection-0.9.0:= )
27 RDEPEND="${COMMON_DEPEND}
28 !<gnome-extra/gucharmap-3:0
32 dev-util/desktop-file-utils
33 >=dev-util/gtk-doc-am-1
34 >=dev-util/intltool-0.40
37 test? ( app-text/docbook-xml-dtd:4.1.2 )
38 vala? ( $(vala_depend) )
42 # prevent file collisions with slot 0
43 sed -e "s:GETTEXT_PACKAGE=gucharmap$:GETTEXT_PACKAGE=gucharmap-${SLOT}:" \
44 -i configure.ac configure || die "sed configure.ac configure failed"
47 sed -e 's/-Wall //g' -i configure || die "sed failed"
49 use vala && vala_src_prepare
54 # Do not add ITSTOOL=$(type -P true); yelp-tools is a true required
55 # dependency here for some LINGUAS.
56 gnome2_src_configure \
58 $(use_enable introspection) \
59 $(use_enable cjk unihan) \