Gentoo Archives: gentoo-commits

From: Kristian Fiskerstrand <k_f@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: gnome-extra/cjs/
Date: Sat, 09 Feb 2019 18:50:21
Message-Id: 1549738198.618fae45cfecbf1f75201f923edac64c06a1ffde.k_f@gentoo
1 commit: 618fae45cfecbf1f75201f923edac64c06a1ffde
2 Author: Kristian Fiskerstrand <k_f <AT> gentoo <DOT> org>
3 AuthorDate: Sat Feb 9 18:46:31 2019 +0000
4 Commit: Kristian Fiskerstrand <k_f <AT> gentoo <DOT> org>
5 CommitDate: Sat Feb 9 18:49:58 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=618fae45
7
8 gnome-extra/cjs: Add missing subslot dep
9
10 Signed-off-by: Kristian Fiskerstrand <k_f <AT> gentoo.org>
11 Package-Manager: Portage-2.3.51, Repoman-2.3.11
12
13 gnome-extra/cjs/cjs-4.0.0-r1.ebuild | 81 +++++++++++++++++++++++++++++++++++++
14 1 file changed, 81 insertions(+)
15
16 diff --git a/gnome-extra/cjs/cjs-4.0.0-r1.ebuild b/gnome-extra/cjs/cjs-4.0.0-r1.ebuild
17 new file mode 100644
18 index 00000000000..a570b3b3d46
19 --- /dev/null
20 +++ b/gnome-extra/cjs/cjs-4.0.0-r1.ebuild
21 @@ -0,0 +1,81 @@
22 +# Copyright 1999-2019 Gentoo Authors
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI=6
26 +inherit autotools gnome2 pax-utils virtualx
27 +
28 +DESCRIPTION="Linux Mint's fork of gjs for Cinnamon"
29 +HOMEPAGE="http://cinnamon.linuxmint.com/"
30 +SRC_URI="https://github.com/linuxmint/cjs/archive/${PV}.tar.gz -> ${P}.tar.gz"
31 +
32 +LICENSE="MIT || ( MPL-1.1 LGPL-2+ GPL-2+ )"
33 +SLOT="0"
34 +IUSE="+cairo examples gtk test"
35 +KEYWORDS="~amd64 ~x86"
36 +
37 +RDEPEND="
38 + dev-lang/spidermonkey:52
39 + >=dev-libs/glib-2.37.3:2
40 + >=dev-libs/gobject-introspection-1.38:=
41 + sys-libs/readline:0=
42 + virtual/libffi
43 + cairo? ( x11-libs/cairo[X,glib] )
44 + gtk? ( x11-libs/gtk+:3 )
45 +"
46 +DEPEND="${RDEPEND}
47 + gnome-base/gnome-common
48 + sys-devel/gettext
49 + virtual/pkgconfig
50 + test? ( sys-apps/dbus )
51 + sys-devel/autoconf-archive
52 +"
53 +# Cinnamon 2.2 does not work with this release.
54 +RDEPEND="${RDEPEND}
55 + !<gnome-extra/cinnamon-2.4
56 +"
57 +
58 +RESTRICT="test"
59 +
60 +src_prepare() {
61 + eautoreconf
62 + gnome2_src_prepare
63 + sed -ie "s/gjs-console/cjs-console/g" \
64 + "${S}"/installed-tests/scripts/testCommandLine.sh \
65 + "${S}"/installed-tests/scripts/testWarnings.sh || die
66 +
67 + sed -ie "s/Gjs-WARNING/Cjs-WARNING/g" \
68 + "${S}"/installed-tests/scripts/testCommandLine.sh || die
69 +
70 + sed -ie "s/'Gjs'/'Cjs'/g" \
71 + "${S}"/installed-tests/js/testExceptions.js \
72 + "${S}"/installed-tests/js/testSignals.js \
73 + "${S}"/installed-tests/js/testGDBus.js \
74 + "${S}"/installed-tests/js/testEverythingBasic.js || die
75 +}
76 +
77 +src_configure() {
78 + # FIXME: add systemtap/dtrace support, like in glib:2
79 + # FIXME: --enable-systemtap installs files in ${D}/${D} for some reason
80 + gnome2_src_configure \
81 + --disable-systemtap \
82 + --disable-dtrace \
83 + $(use_with cairo) \
84 + $(use_with gtk)
85 +}
86 +
87 +src_test() {
88 + virtx emake check
89 +}
90 +
91 +src_install() {
92 + # installation sometimes fails in parallel
93 + gnome2_src_install -j1
94 +
95 + if use examples; then
96 + insinto /usr/share/doc/"${PF}"/examples
97 + doins "${S}"/examples/*
98 + fi
99 +
100 + # Required for cjs-console to run correctly on PaX systems
101 + pax-mark mr "${ED}/usr/bin/cjs-console"
102 +}