gnome-extra/cjs: 4.4.0 version bump
authorMatthew Turnbull <sparky@bluefang-logic.com>
Wed, 13 May 2020 00:51:27 +0000 (20:51 -0400)
committerMatt Turner <mattst88@gentoo.org>
Fri, 29 May 2020 00:10:44 +0000 (17:10 -0700)
Bug: https://bugs.gentoo.org/704532
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Matthew S. Turnbull <sparky@bluefang-logic.com>
Signed-off-by: Matt Turner <mattst88@gentoo.org>
gnome-extra/cjs/Manifest
gnome-extra/cjs/cjs-4.4.0.ebuild [new file with mode: 0644]
gnome-extra/cjs/metadata.xml

index 4700da9ee9cef0955871d65d49415c16b86024fb..d92711189f4f41105d544c40d0391b8a321ea62c 100644 (file)
@@ -1 +1,2 @@
 DIST cjs-4.0.0.tar.gz 459595 BLAKE2B 63ed660480f87fcd57103965226b3457dc70586019c9ea7f446af86f0b18b493c315566c608f5e999f3b64765d71eb5d463053f3d859f7121c95dcc74d04016d SHA512 86baaba3721b71b266c560180ba20af43eed0d2b8fc37af0d24c7c0c36252e2af85da928b42260074f236f0bc4d4f4f28d20127021e67f23a22b042a09a3baa7
+DIST cjs-4.4.0.tar.gz 463019 BLAKE2B af276cd8f9ef0f66a6f4ab3e0072b485e33015e070bb796818907964df0696240b753f7a271bf45db788eb244e0cd1fb866f3b78798adf3ef8f9e76825fc4d74 SHA512 3b2bdc55ab572713d6b6f92978522b290819656f64fef620659065ff5673a04a0585b83a1a0248116570ac1cfee4f54acc228f355c02aa4e0a2a13b59fbafed2
diff --git a/gnome-extra/cjs/cjs-4.4.0.ebuild b/gnome-extra/cjs/cjs-4.4.0.ebuild
new file mode 100644 (file)
index 0000000..4bd638f
--- /dev/null
@@ -0,0 +1,80 @@
+# Copyright 1999-2020 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="https://projects.linuxmint.com/cinnamon/"
+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.42:2
+       >=dev-libs/gobject-introspection-1.41.4:=
+       sys-libs/readline:0=
+       dev-libs/libffi:0=
+       cairo? ( x11-libs/cairo[X,glib] )
+       gtk? ( x11-libs/gtk+:3 )
+"
+DEPEND="${RDEPEND}
+       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
+
+       # Fixed in 4.6.0
+       sed -ie "s/Gjs-WARNING/Cjs-WARNING/g" \
+               "${S}"/installed-tests/scripts/testCommandLine.sh || die
+
+       # Fixed in 4.6.0
+       sed -ie "s/40000/50000/g" \
+               "${S}"/installed-tests/js/testSystem.js || die
+
+       sed -ie "s/'Gjs'/'Cjs'/g" \
+               "${S}"/installed-tests/js/testExceptions.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
+               docinto examples
+               dodoc "${S}"/examples/*
+       fi
+
+       # Required for cjs-console to run correctly on PaX systems
+       pax-mark mr "${ED}/usr/bin/cjs-console"
+}
index 9e988588122b074b43dd970f2d1ace1a75f95721..bbfdb56cdcf95b4f9656485ddf5167229a03df81 100644 (file)
@@ -5,6 +5,14 @@
                <email>cinnamon@gentoo.org</email>
                <name>Cinnamon Project</name>
        </maintainer>
+       <maintainer type="project">
+               <email>proxy-maint@gentoo.org</email>
+               <name>Proxy Maintainers</name>
+       </maintainer>
+       <maintainer type="person">
+               <email>sparky@bluefang-logic.com</email>
+               <name>Matthew Turnbull</name>
+       </maintainer>
        <upstream>
                <remote-id type="github">linuxmint/cjs</remote-id>
        </upstream>