1 # Copyright 1999-2020 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="https://projects.linuxmint.com/cinnamon/"
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"
14 KEYWORDS="~amd64 ~x86"
17 dev-lang/spidermonkey:52
18 >=dev-libs/glib-2.42:2
19 >=dev-libs/gobject-introspection-1.41.4:=
22 cairo? ( x11-libs/cairo[X,glib] )
23 gtk? ( x11-libs/gtk+:3 )
28 test? ( sys-apps/dbus )
29 sys-devel/autoconf-archive
31 # Cinnamon 2.2 does not work with this release.
33 !<gnome-extra/cinnamon-2.4
43 sed -ie "s/Gjs-WARNING/Cjs-WARNING/g" \
44 "${S}"/installed-tests/scripts/testCommandLine.sh || die
47 sed -ie "s/40000/50000/g" \
48 "${S}"/installed-tests/js/testSystem.js || die
50 sed -ie "s/'Gjs'/'Cjs'/g" \
51 "${S}"/installed-tests/js/testExceptions.js \
52 "${S}"/installed-tests/js/testEverythingBasic.js || die
56 # FIXME: add systemtap/dtrace support, like in glib:2
57 # FIXME: --enable-systemtap installs files in ${D}/${D} for some reason
58 gnome2_src_configure \
70 # installation sometimes fails in parallel
71 gnome2_src_install -j1
75 dodoc "${S}"/examples/*
78 # Required for cjs-console to run correctly on PaX systems
79 pax-mark mr "${ED}/usr/bin/cjs-console"