diff options
Diffstat (limited to 'gnome-extra/cjs')
-rw-r--r-- | gnome-extra/cjs/Manifest | 12 | ||||
-rw-r--r-- | gnome-extra/cjs/cjs-3.0.1.ebuild | 71 | ||||
-rw-r--r-- | gnome-extra/cjs/cjs-3.4.1.ebuild | 67 | ||||
-rw-r--r-- | gnome-extra/cjs/cjs-3.4.4.ebuild | 67 | ||||
-rw-r--r-- | gnome-extra/cjs/files/cjs-2.4.0-disable-unittest-1.patch | 48 | ||||
-rw-r--r-- | gnome-extra/cjs/files/cjs-2.4.0-disable-unittest-2.patch | 40 | ||||
-rw-r--r-- | gnome-extra/cjs/files/cjs-2.4.0-disable-unittest-3.patch | 35 | ||||
-rw-r--r-- | gnome-extra/cjs/metadata.xml | 11 |
8 files changed, 351 insertions, 0 deletions
diff --git a/gnome-extra/cjs/Manifest b/gnome-extra/cjs/Manifest new file mode 100644 index 000000000000..05b33d2ed934 --- /dev/null +++ b/gnome-extra/cjs/Manifest @@ -0,0 +1,12 @@ +AUX cjs-2.4.0-disable-unittest-1.patch 1702 SHA256 9e24eb201ed8dc4aae9d5a3178321c38af47b47b493ed8a233822db97609fff3 SHA512 c19b4738a1b99a916ed8a1be5817c39b3436718655d38b748c00b68d94a033f0eac2a91f4c1b3604272d23175f93839aead446ae594789b5b7938e3f27411078 WHIRLPOOL 3fd6d4cfe4cf0b458413f2994480819f59d06eb752c6e95e32d773061ff10b4a14247ddb718d6500f308f278f803ee825c438fa392b71d4d9597a15241b9dc8f +AUX cjs-2.4.0-disable-unittest-2.patch 2128 SHA256 e0635d70b826154ba8cbf90b689aa6fc2647d64d5bce6f95f7270600aab5a837 SHA512 69c40eae62f9bb5a4944d8e8d63b0ba43346d0c0547df58c4693eddf149d735d7288b2857cb1c0a652be92e8c74142f15415ff1afe17445fdc63074d5335638a WHIRLPOOL 66ee22c0fd9ac19917ed9542011da55d921676ae145a3c8f509530b7479a7520b428b26b8d780269f72459c1b9df83ba53c471e139492dce295db1b2b5bb54b0 +AUX cjs-2.4.0-disable-unittest-3.patch 1119 SHA256 4f4eefee8e623bfd1a9fe38f790b6481b2abaae1fa5e3eb12716941b4ae27002 SHA512 c94e7248c5d9623a15fa8ff4c629029a2ca976300381ae03462ae53ce9c55dcb7ec2ce9b669dfc3ab9ccc03a56f58114c9eb43cbfb22fb40b937a4e08b3569a0 WHIRLPOOL 8be04902c0b5900ed088c26fccbfd226564c014d862d9ccb62a01b486551ef0b009b3489441dcf806eff7ffcf316dc118f9757646f2fd3bc53987a2a19674026 +DIST cjs-3.0.1.tar.gz 325349 SHA256 cafda5a8a21421e93720732debeea08c59e63c058d240ab0f7b3a6969654864f SHA512 3980e60ca005e616be264ec5bf6cb920452eec538da266dc0645ec1c340506b864886007b371b96830efa379e8ed9dd9127dc205b45e004705fd5c181d82e538 WHIRLPOOL 9368a53f9284d0f234d6e816f27dd6893338b4c6807f7fa0f44403ec0fbcaea3cc6908f86ad1e528f12351e008e93942f0769779f3c271e46e994d6ea7139b5f +DIST cjs-3.4.1.tar.gz 425003 SHA256 83254b01984452cc234891768e746f688924fe2904b6c1c76e214528ff44c060 SHA512 aab752aa03862979374bfe883d62968efab6b9137914b7ab9fcca2025bab6a6ae536db59aaee6deeeba06d2ff8c433d7f769ae0a4c0e2542e7c9a58f723d8690 WHIRLPOOL f6206a56b6e5b5984c567e3b8c4f48d3e0305c76da5c4d4320757248566975bddbf4b376118246beb6c447485e03b8a1a836598d215d6ba13a468ae91d6c7901 +DIST cjs-3.4.4.tar.gz 426665 SHA256 e2497bb3eb53a919776a2f4b869dcc2ba3deb09e955433272a8905e7f6ef9bee SHA512 318a1beef6f6a827266170f0c5c1cfaa8bf48908f96e0ce625aee20ddcd648ea967f09f465ed504f21f923830017d3c4a01f62bab26a1cb84181a96131058d33 WHIRLPOOL 8e774188cf6722075e019c8cac255fcae55ba6fc67c24a974ba033002d6faa8f12aad70c789666d14ed3bdcd63965bf60fe5782fa5b537f2b5e16e482f24664a +EBUILD cjs-3.0.1.ebuild 1664 SHA256 76df8a5cfc963a5257410e4a18f91c35a96d71c9414d5e0b5ae5edcc81474f71 SHA512 59de06e7315032403e0a831168ae45e5cd0da3026bd8ff583dc48d325ee4faa47951f30aa18eeb15cbcae501ab51faa7b4df81f263ad2fbb3f44ac159418fa7c WHIRLPOOL 1809d8cd330a4462cadf18087621ccfce973e36c2a0eb7579451737d2bfe89f60eff7e6100879a1526052e340fb2fc32ff2a794a421bac42ace8f34884e7be7e +EBUILD cjs-3.4.1.ebuild 1511 SHA256 950b7094b2df4480e1aa13c7c2ccf6513e5b166c0ce7218b144cd2e57e5a0133 SHA512 864f3058675865af299fc7cb57d562d3c20e13f5afd3c4b807cbd579c960c2192ee96b3dc60917be4f9aa12c2690098c16481e4dd14bdb48674325ceb6f1455e WHIRLPOOL 4dec6bc928e23d8db2c154b100728aacce83d804f307bd4c279d292aebfb6754f4c2d6618a5a34e641cea97475e043605b9f2a30f810f5badbdaefbc6566e935 +EBUILD cjs-3.4.4.ebuild 1511 SHA256 950b7094b2df4480e1aa13c7c2ccf6513e5b166c0ce7218b144cd2e57e5a0133 SHA512 864f3058675865af299fc7cb57d562d3c20e13f5afd3c4b807cbd579c960c2192ee96b3dc60917be4f9aa12c2690098c16481e4dd14bdb48674325ceb6f1455e WHIRLPOOL 4dec6bc928e23d8db2c154b100728aacce83d804f307bd4c279d292aebfb6754f4c2d6618a5a34e641cea97475e043605b9f2a30f810f5badbdaefbc6566e935 +MISC ChangeLog 4845 SHA256 76288dae5b50d6958f070c24aa1fad0340fa9a75cd652ec345e10c1c5ece1998 SHA512 1db4fe990fa0bf0cf596a9fed1aa612d52200d7842bca64610ac82c25a9440298dda151907d9b903138eea519d413c4f25c868ce8df576d2d83ba7a5178e659a WHIRLPOOL 08d284dffbcd75f5dc69841034cfb147df0e7db80eb4c9c09a6967694b3fcc2ecdc997e6b1611cf9509fa25997997be60fc965fae2c773d52f9e026076676542 +MISC ChangeLog-2015 2529 SHA256 03daf3b210223d5b374aa3b52b22a843fd70750dfa63135667943fa9f4d8c262 SHA512 c38190c33f6bf6e4417b127267c8ed015ca2b7426e7c3a1a2d63b753f9900d0e11b5ce9c8441aadc0873499675d8e82258b1df706f557d9b823ea494c05e7921 WHIRLPOOL ce6606b6f8d62fe2601b9a81b5b095d53f7cc6eadfd8e06dfa48220d8977b95eeec580e19dfb72a1aa1375b456f22a72ca85c079824c19c416f2872059799e7e +MISC metadata.xml 342 SHA256 9e57e7c177f8691635f91f93b802c8fb6afa216561c75f9a4c3f73af4ffa4275 SHA512 0f3a872b9a8255f708e81aad825a17dfe580ef7a5613b408406e3751f0aea0ca6e952b015451b1681efdc5b88cd1874d8d116481a128dd05a42cf21c7d168bce WHIRLPOOL 9f4e87ca759f95d74d54f0c960abb1cabdd2cd9cb84fa792b9b8784afeda76199dab5db8e5fd7a55efff4d98b61c2789a8c387470e706cbed3fcedcf3f6f02d6 diff --git a/gnome-extra/cjs/cjs-3.0.1.ebuild b/gnome-extra/cjs/cjs-3.0.1.ebuild new file mode 100644 index 000000000000..b56d402ca7ad --- /dev/null +++ b/gnome-extra/cjs/cjs-3.0.1.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2016 Gentoo Foundation +# 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:24 + >=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 ) +" +# Cinnamon 2.2 does not work with this release. +RDEPEND="${RDEPEND} + !<gnome-extra/cinnamon-2.4 +" + +src_prepare() { + # Disable broken unittests + eapply "${FILESDIR}"/${PN}-2.4.0-disable-unittest-*.patch + + eautoreconf + gnome2_src_prepare +} + +src_configure() { + # FIXME: add systemtap/dtrace support, like in glib:2 + # FIXME: --enable-systemtap installs files in ${D}/${D} for some reason + # XXX: Do NOT enable coverage, completely useless for portage installs + gnome2_src_configure \ + --disable-systemtap \ + --disable-dtrace \ + --disable-coverage \ + $(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" +} diff --git a/gnome-extra/cjs/cjs-3.4.1.ebuild b/gnome-extra/cjs/cjs-3.4.1.ebuild new file mode 100644 index 000000000000..23afc9055f7d --- /dev/null +++ b/gnome-extra/cjs/cjs-3.4.1.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2017 Gentoo Foundation +# 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:38 + >=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 +" + +src_prepare() { + eautoreconf + gnome2_src_prepare +} + +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" +} diff --git a/gnome-extra/cjs/cjs-3.4.4.ebuild b/gnome-extra/cjs/cjs-3.4.4.ebuild new file mode 100644 index 000000000000..23afc9055f7d --- /dev/null +++ b/gnome-extra/cjs/cjs-3.4.4.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2017 Gentoo Foundation +# 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:38 + >=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 +" + +src_prepare() { + eautoreconf + gnome2_src_prepare +} + +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" +} diff --git a/gnome-extra/cjs/files/cjs-2.4.0-disable-unittest-1.patch b/gnome-extra/cjs/files/cjs-2.4.0-disable-unittest-1.patch new file mode 100644 index 000000000000..5afd89293695 --- /dev/null +++ b/gnome-extra/cjs/files/cjs-2.4.0-disable-unittest-1.patch @@ -0,0 +1,48 @@ +From 554c220e78172213e9637f9a901009b4bc964e3a Mon Sep 17 00:00:00 2001 +From: "Jasper St. Pierre" <jstpierre@mecheye.net> +Date: Wed, 15 Jan 2014 17:00:22 -0500 +Subject: [PATCH] gjs-tests: Remove dumpstack test + +OK, I lied. This is the most useless test ever. +--- + test/gjs-tests.cpp | 17 ----------------- + 1 file changed, 17 deletions(-) + +diff --git a/test/gjs-tests.cpp b/test/gjs-tests.cpp +index b79b616..6cade7b 100644 +--- a/test/gs-tests.cpp ++++ b/test/gjs-tests.cpp +@@ -163,22 +163,6 @@ gjstest_test_func_gjs_jsapi_util_string_js_string_utf8(void) + } + + static void +-gjstest_test_func_gjs_stack_dump(void) +-{ +- GjsContext *context; +- +- /* TODO this test could be better - maybe expose dumpstack as a JS API +- * so that we have a JS stack to dump? At least here we're getting some +- * coverage. +- */ +- context = gjs_context_new(); +- +- gjs_dumpstack(); +- g_object_unref(context); +- gjs_dumpstack(); +-} +- +-static void + gjstest_test_func_gjs_jsapi_util_error_throw(void) + { + GjsUnitTestFixture fixture; +@@ -348,7 +332,6 @@ main(int argc, + g_test_add_func("/gjs/jsutil/strip_shebang/no_shebang", gjstest_test_strip_shebang_no_advance_for_no_shebang); + g_test_add_func("/gjs/jsutil/strip_shebang/have_shebang", gjstest_test_strip_shebang_advance_for_shebang); + g_test_add_func("/gjs/jsutil/strip_shebang/only_shebang", gjstest_test_strip_shebang_return_null_for_just_shebang); +- g_test_add_func("/gjs/stack/dump", gjstest_test_func_gjs_stack_dump); + g_test_add_func("/util/glib/strv/concat/null", gjstest_test_func_util_glib_strv_concat_null); + g_test_add_func("/util/glib/strv/concat/pointers", gjstest_test_func_util_glib_strv_concat_pointers); + +-- +2.1.2 + diff --git a/gnome-extra/cjs/files/cjs-2.4.0-disable-unittest-2.patch b/gnome-extra/cjs/files/cjs-2.4.0-disable-unittest-2.patch new file mode 100644 index 000000000000..2490a63fea90 --- /dev/null +++ b/gnome-extra/cjs/files/cjs-2.4.0-disable-unittest-2.patch @@ -0,0 +1,40 @@ +From 4ea9fda3f323355d10e946d19d817fe8c4e6b533 Mon Sep 17 00:00:00 2001 +From: Gilles Dartiguelongue <eva@gentoo.org> +Date: Sun, 12 Oct 2014 21:57:11 +0200 +Subject: [PATCH 1/2] Comment broken unittests + +--- + test/gjs-tests.cpp | 10 +++++----- + 1 file changed, 5 insertions(+), 5 deletions(-) + +diff --git a/test/gjs-tests.cpp b/test/gjs-tests.cpp +index 6cade7b..4d6c61e 100644 +--- a/test/gjs-tests.cpp ++++ b/test/gjs-tests.cpp +@@ -324,18 +324,18 @@ main(int argc, + + g_test_init(&argc, &argv, NULL); + +- g_test_add_func("/gjs/context/construct/destroy", gjstest_test_func_gjs_context_construct_destroy); ++ /* g_test_add_func("/gjs/context/construct/destroy", gjstest_test_func_gjs_context_construct_destroy); */ + g_test_add_func("/gjs/context/construct/eval", gjstest_test_func_gjs_context_construct_eval); +- g_test_add_func("/gjs/jsapi/util/array", gjstest_test_func_gjs_jsapi_util_array); +- g_test_add_func("/gjs/jsapi/util/error/throw", gjstest_test_func_gjs_jsapi_util_error_throw); +- g_test_add_func("/gjs/jsapi/util/string/js/string/utf8", gjstest_test_func_gjs_jsapi_util_string_js_string_utf8); ++ /* g_test_add_func("/gjs/jsapi/util/array", gjstest_test_func_gjs_jsapi_util_array); */ ++ /* g_test_add_func("/gjs/jsapi/util/error/throw", gjstest_test_func_gjs_jsapi_util_error_throw); */ ++ /* g_test_add_func("/gjs/jsapi/util/string/js/string/utf8", gjstest_test_func_gjs_jsapi_util_string_js_string_utf8); */ + g_test_add_func("/gjs/jsutil/strip_shebang/no_shebang", gjstest_test_strip_shebang_no_advance_for_no_shebang); + g_test_add_func("/gjs/jsutil/strip_shebang/have_shebang", gjstest_test_strip_shebang_advance_for_shebang); + g_test_add_func("/gjs/jsutil/strip_shebang/only_shebang", gjstest_test_strip_shebang_return_null_for_just_shebang); + g_test_add_func("/util/glib/strv/concat/null", gjstest_test_func_util_glib_strv_concat_null); + g_test_add_func("/util/glib/strv/concat/pointers", gjstest_test_func_util_glib_strv_concat_pointers); + +- gjs_test_add_tests_for_coverage (); ++ /* gjs_test_add_tests_for_coverage (); */ + + g_test_run(); + +-- +2.1.2 + diff --git a/gnome-extra/cjs/files/cjs-2.4.0-disable-unittest-3.patch b/gnome-extra/cjs/files/cjs-2.4.0-disable-unittest-3.patch new file mode 100644 index 000000000000..7b2898b75cf5 --- /dev/null +++ b/gnome-extra/cjs/files/cjs-2.4.0-disable-unittest-3.patch @@ -0,0 +1,35 @@ +From da18a2676477138693e893d3245316f987d74497 Mon Sep 17 00:00:00 2001 +From: Gilles Dartiguelongue <eva@gentoo.org> +Date: Sun, 12 Oct 2014 21:57:45 +0200 +Subject: [PATCH 2/2] Comment broken JS unittest + +--- + installed-tests/js/testLocale.js | 8 ++++---- + 1 file changed, 4 insertions(+), 4 deletions(-) + +diff --git a/installed-tests/js/testLocale.js b/installed-tests/js/testLocale.js +index b086a66..0c5abb1 100644 +--- a/installed-tests/js/testLocale.js ++++ b/installed-tests/js/testLocale.js +@@ -1,14 +1,14 @@ + // tests for JS_SetLocaleCallbacks(). + const JSUnit = imports.jsUnit; + +-function testToLocaleDateString() { +- let date = new Date(); ++//function testToLocaleDateString() { ++ //let date = new Date(); + // %A is the weekday name, this tests locale_to_unicode + // we're basically just testing for a non-crash, since + // we'd have to run in a specific locale to have any + // idea about the result. +- date.toLocaleDateString("%A"); +-} ++ //date.toLocaleDateString("%A"); ++//} + + function testToLocaleLowerCase() { + JSUnit.assertEquals("aaa", "AAA".toLocaleLowerCase()); +-- +2.1.2 + diff --git a/gnome-extra/cjs/metadata.xml b/gnome-extra/cjs/metadata.xml new file mode 100644 index 000000000000..1f87fb620863 --- /dev/null +++ b/gnome-extra/cjs/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>cinnamon@gentoo.org</email> + <name>Cinnamon Project</name> + </maintainer> + <upstream> + <remote-id type="github">linuxmint/cjs</remote-id> + </upstream> +</pkgmetadata> |