summaryrefslogtreecommitdiff
path: root/gnome-extra/cjs
diff options
context:
space:
mode:
Diffstat (limited to 'gnome-extra/cjs')
-rw-r--r--gnome-extra/cjs/Manifest1
-rw-r--r--gnome-extra/cjs/cjs-4.0.0-r1.ebuild81
2 files changed, 82 insertions, 0 deletions
diff --git a/gnome-extra/cjs/Manifest b/gnome-extra/cjs/Manifest
index 6768007356b6..a712a4bb55f6 100644
--- a/gnome-extra/cjs/Manifest
+++ b/gnome-extra/cjs/Manifest
@@ -4,5 +4,6 @@ DIST cjs-3.8.0.tar.gz 446667 BLAKE2B d7d37d2aa47fb32b401727e2d5f7f6bd3779e62f5bd
DIST cjs-4.0.0.tar.gz 459595 BLAKE2B 63ed660480f87fcd57103965226b3457dc70586019c9ea7f446af86f0b18b493c315566c608f5e999f3b64765d71eb5d463053f3d859f7121c95dcc74d04016d SHA512 86baaba3721b71b266c560180ba20af43eed0d2b8fc37af0d24c7c0c36252e2af85da928b42260074f236f0bc4d4f4f28d20127021e67f23a22b042a09a3baa7
EBUILD cjs-3.6.1.ebuild 2096 BLAKE2B 5f2cc7c4517cc8c012075f2ff5ff0dba936699f5997e0cd3839fb17de6c0b8e5352c3bfdb3ce4dc00d86816352d7347c193a853b6c1a3e1741c310dc5b9dad1a SHA512 187d890fc87dfdbb36aabac71265949543c033ab650125782b806a9b2c1dae05cd9fae5316a4013d8fe20cfd6543dca2305f6634b1ab29dae26a175c6631e375
EBUILD cjs-3.8.0.ebuild 2001 BLAKE2B f8aca1867ff72015b96331d882f31533656965f9758476622d1382dcf07bb8ea2831ef933bdcfd9fa01e8220538e1c87afe54bff54627aabafb6814f8a253303 SHA512 0ac840158afd4df20b43fc640fd4ed12ba2410e9b9817ab47e8fc293b291c6d46870993812bd3f2c3e2c7d399f8af41422431e166dd203702f2bfe312d5a4c82
+EBUILD cjs-4.0.0-r1.ebuild 2002 BLAKE2B 4bd66ad61c9d33f2d9bcd4dc993d1030974d7b62e6025cad8844a39d252623887887c2c949680c667f551e391e92e57674953761157f47740fc781cc3912ce71 SHA512 d3c1cf221bf3a99d581ca763f5092b8e99b5d733702e289c1ff10c799a0b44d547014e1c0f7b86db92eafbddcbf4ae32d195e880f442a167e89687ed5d6b4d84
EBUILD cjs-4.0.0.ebuild 2001 BLAKE2B f8aca1867ff72015b96331d882f31533656965f9758476622d1382dcf07bb8ea2831ef933bdcfd9fa01e8220538e1c87afe54bff54627aabafb6814f8a253303 SHA512 0ac840158afd4df20b43fc640fd4ed12ba2410e9b9817ab47e8fc293b291c6d46870993812bd3f2c3e2c7d399f8af41422431e166dd203702f2bfe312d5a4c82
MISC metadata.xml 330 BLAKE2B 9fd63621288d25f6643471279d5f5be01cc61d40ad7de618ba140add34415ecacceed969c7f57f70b55b20646947b658f4451f0427aa38a82ec0c36f7ceff2d2 SHA512 04f852b262c14801c718e80553018fbb5a48725200eb3bc502f0feb552881d0d75b9aca97bc6cd4247ce753b3b6cf95c8e6a8d9214059aeed4da39a6b12e6158
diff --git a/gnome-extra/cjs/cjs-4.0.0-r1.ebuild b/gnome-extra/cjs/cjs-4.0.0-r1.ebuild
new file mode 100644
index 000000000000..a570b3b3d468
--- /dev/null
+++ b/gnome-extra/cjs/cjs-4.0.0-r1.ebuild
@@ -0,0 +1,81 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit autotools gnome2 pax-utils virtualx
+
+DESCRIPTION="Linux Mint's fork of gjs for Cinnamon"
+HOMEPAGE="http://cinnamon.linuxmint.com/"
+SRC_URI="https://github.com/linuxmint/cjs/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT || ( MPL-1.1 LGPL-2+ GPL-2+ )"
+SLOT="0"
+IUSE="+cairo examples gtk test"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="
+ dev-lang/spidermonkey:52
+ >=dev-libs/glib-2.37.3:2
+ >=dev-libs/gobject-introspection-1.38:=
+ sys-libs/readline:0=
+ virtual/libffi
+ cairo? ( x11-libs/cairo[X,glib] )
+ gtk? ( x11-libs/gtk+:3 )
+"
+DEPEND="${RDEPEND}
+ gnome-base/gnome-common
+ sys-devel/gettext
+ virtual/pkgconfig
+ test? ( sys-apps/dbus )
+ sys-devel/autoconf-archive
+"
+# Cinnamon 2.2 does not work with this release.
+RDEPEND="${RDEPEND}
+ !<gnome-extra/cinnamon-2.4
+"
+
+RESTRICT="test"
+
+src_prepare() {
+ eautoreconf
+ gnome2_src_prepare
+ sed -ie "s/gjs-console/cjs-console/g" \
+ "${S}"/installed-tests/scripts/testCommandLine.sh \
+ "${S}"/installed-tests/scripts/testWarnings.sh || die
+
+ sed -ie "s/Gjs-WARNING/Cjs-WARNING/g" \
+ "${S}"/installed-tests/scripts/testCommandLine.sh || die
+
+ sed -ie "s/'Gjs'/'Cjs'/g" \
+ "${S}"/installed-tests/js/testExceptions.js \
+ "${S}"/installed-tests/js/testSignals.js \
+ "${S}"/installed-tests/js/testGDBus.js \
+ "${S}"/installed-tests/js/testEverythingBasic.js || die
+}
+
+src_configure() {
+ # FIXME: add systemtap/dtrace support, like in glib:2
+ # FIXME: --enable-systemtap installs files in ${D}/${D} for some reason
+ gnome2_src_configure \
+ --disable-systemtap \
+ --disable-dtrace \
+ $(use_with cairo) \
+ $(use_with gtk)
+}
+
+src_test() {
+ virtx emake check
+}
+
+src_install() {
+ # installation sometimes fails in parallel
+ gnome2_src_install -j1
+
+ if use examples; then
+ insinto /usr/share/doc/"${PF}"/examples
+ doins "${S}"/examples/*
+ fi
+
+ # Required for cjs-console to run correctly on PaX systems
+ pax-mark mr "${ED}/usr/bin/cjs-console"
+}