1 # Copyright 1999-2018 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
5 inherit gnome2 pax-utils virtualx
7 DESCRIPTION="Javascript bindings for GNOME"
8 HOMEPAGE="https://wiki.gnome.org/Projects/Gjs"
10 LICENSE="MIT || ( MPL-1.1 LGPL-2+ GPL-2+ )"
12 IUSE="+cairo examples gtk test"
13 KEYWORDS="~alpha amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86"
16 >=dev-libs/glib-2.52.1
17 >=dev-libs/gobject-introspection-1.52.1:=
20 dev-lang/spidermonkey:38
22 cairo? ( x11-libs/cairo[X] )
23 gtk? ( >=x11-libs/gtk+-3.20:3 )
26 gnome-base/gnome-common
29 test? ( sys-apps/dbus )
33 # Disable unittest failing without pt_BR locale, upstream bug #????
34 # "${FILESDIR}"/1.48.6-disable-unittest.patch
38 # FIXME: add systemtap/dtrace support, like in glib:2
39 # FIXME: --enable-systemtap installs files in ${D}/${D} for some reason
40 # XXX: Do NOT enable coverage, completely useless for portage installs
41 gnome2_src_configure \
44 --disable-code-coverage \
45 $(use_with cairo cairo) \
47 $(use_with test dbus-tests) \
48 $(use_with test xvfb-tests)
52 # installation sometimes fails in parallel, bug #???
53 gnome2_src_install -j1
56 insinto /usr/share/doc/"${PF}"/examples
57 doins "${S}"/examples/*
60 # Required for gjs-console to run correctly on PaX systems
61 pax-mark mr "${ED}/usr/bin/gjs-console"