1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 inherit autotools gnome2 pax-utils virtualx
7 DESCRIPTION="Linux Mint's fork of gjs for Cinnamon"
8 HOMEPAGE="http://developer.linuxmint.com/projects/cinnamon-projects.html"
9 SRC_URI="https://github.com/linuxmint/cjs/archive/${PV}.tar.gz -> ${P}.tar.gz"
11 LICENSE="MIT || ( MPL-1.1 LGPL-2+ GPL-2+ )"
13 IUSE="+cairo examples gtk test"
17 dev-lang/spidermonkey:52
18 >=dev-libs/glib-2.37.3:2
19 >=dev-libs/gobject-introspection-1.38:=
22 cairo? ( x11-libs/cairo[X,glib] )
23 gtk? ( x11-libs/gtk+:3 )
26 gnome-base/gnome-common
29 test? ( sys-apps/dbus )
30 sys-devel/autoconf-archive
32 # Cinnamon 2.2 does not work with this release.
34 !<gnome-extra/cinnamon-2.4
42 sed -ie "s/gjs-console/cjs-console/g" \
43 "${S}"/installed-tests/scripts/testCommandLine.sh \
44 "${S}"/installed-tests/scripts/testWarnings.sh || die
46 sed -ie "s/Gjs-WARNING/Cjs-WARNING/g" \
47 "${S}"/installed-tests/scripts/testCommandLine.sh || die
49 sed -ie "s/'Gjs'/'Cjs'/g" \
50 "${S}"/installed-tests/js/testExceptions.js \
51 "${S}"/installed-tests/js/testSignals.js \
52 "${S}"/installed-tests/js/testGDBus.js \
53 "${S}"/installed-tests/js/testEverythingBasic.js || die
57 # FIXME: add systemtap/dtrace support, like in glib:2
58 # FIXME: --enable-systemtap installs files in ${D}/${D} for some reason
59 gnome2_src_configure \
71 # installation sometimes fails in parallel
72 gnome2_src_install -j1
75 insinto /usr/share/doc/"${PF}"/examples
76 doins "${S}"/examples/*
79 # Required for cjs-console to run correctly on PaX systems
80 pax-mark mr "${ED}/usr/bin/cjs-console"