1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 inherit gnome2 multilib-minimal virtualx
7 DESCRIPTION="C++ interface for GTK+"
8 HOMEPAGE="https://www.gtkmm.org"
12 KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~x86-solaris"
14 IUSE="aqua doc test wayland X"
15 REQUIRED_USE="|| ( aqua wayland X )"
16 RESTRICT="!test? ( test )"
19 >=dev-cpp/glibmm-2.54.0:2[${MULTILIB_USEDEP}]
20 >=x11-libs/gtk+-3.24.0:3[aqua?,wayland?,X?,${MULTILIB_USEDEP}]
21 >=x11-libs/gdk-pixbuf-2.35.5:2[${MULTILIB_USEDEP}]
22 >=dev-cpp/atkmm-2.24.2[${MULTILIB_USEDEP}]
23 >=dev-cpp/cairomm-1.12.0[${MULTILIB_USEDEP}]
24 >=dev-cpp/pangomm-2.38.2:1.4[${MULTILIB_USEDEP}]
25 >=dev-libs/libsigc++-2.3.2:2[${MULTILIB_USEDEP}]
34 # eautoreconf needs mm-common
36 RESTRICT="!test? ( test )"
40 # don't waste time building tests
41 sed 's/^\(SUBDIRS =.*\)tests\(.*\)$/\1\2/' -i Makefile.am Makefile.in \
45 # don't waste time building examples
46 sed 's/^\(SUBDIRS =.*\)demos\(.*\)$/\1\2/' -i Makefile.am Makefile.in \
52 multilib_src_configure() {
53 ECONF_SOURCE="${S}" gnome2_src_configure \
55 $(multilib_native_use_enable doc documentation) \
56 $(use_enable aqua quartz-backend) \
57 $(use_enable wayland wayland-backend) \
58 $(use_enable X x11-backend)
65 multilib_src_install() {
69 multilib_src_install_all() {
72 find demos -type d -name '.deps' -exec rm -rf {} \; 2>/dev/null
73 find demos -type f -name 'Makefile*' -exec rm -f {} \; 2>/dev/null