diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-libs/gjs | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-libs/gjs')
-rw-r--r-- | dev-libs/gjs/Manifest | 8 | ||||
-rw-r--r-- | dev-libs/gjs/files/1.48.6-disable-unittest.patch | 24 | ||||
-rw-r--r-- | dev-libs/gjs/files/gjs-1.43.3-disable-unittest-1.patch | 40 | ||||
-rw-r--r-- | dev-libs/gjs/files/gjs-1.43.3-disable-unittest-2.patch | 35 | ||||
-rw-r--r-- | dev-libs/gjs/gjs-1.46.0.ebuild | 66 | ||||
-rw-r--r-- | dev-libs/gjs/gjs-1.48.7.ebuild | 62 | ||||
-rw-r--r-- | dev-libs/gjs/metadata.xml | 8 |
7 files changed, 243 insertions, 0 deletions
diff --git a/dev-libs/gjs/Manifest b/dev-libs/gjs/Manifest new file mode 100644 index 000000000000..17260d41e75b --- /dev/null +++ b/dev-libs/gjs/Manifest @@ -0,0 +1,8 @@ +AUX 1.48.6-disable-unittest.patch 854 BLAKE2B ea819adc1a2922093d3f79ecd96ac9f599b82839bac4ca51c0814b398d56984a81536b3ee25939f964985cbe6534e178e2dcdabfc3d60cd139257c7f0194e42a SHA512 d905f40bec47f6c643307dee88c95eb22e995b191caceb5c1faa0b6eecdb7b3d4c79c96ee54917aae26cba75d59880bd71a3728ce468c6caa824e677edaa36b0 +AUX gjs-1.43.3-disable-unittest-1.patch 2128 BLAKE2B 73921b6b0f8b77bb98fdbe79e3a4debbad4577e856fdfba7ef57e22630a71672e6a3e330f3aa561c6c09cc7feb1d2339de4fb136643df5faa322c09179b0e804 SHA512 6fd3134bb5c19c46ee2b1f0d87e8644bc5c7a92e32fd62963fe6051ca49f20affde5f6cfbc134aaea0b7b6a5b9833e946796c689e7ebec56951b805b96cc56f2 +AUX gjs-1.43.3-disable-unittest-2.patch 1119 BLAKE2B 8ab995513b63faee201f84ec45fce226c7e7838f85160342a15e9b283c0020de52d35b43999ddfe9c06ec190e3eab5366665734bd5abe40767510b8ed548f6eb SHA512 a6f8df3c3454a635852b83ad1c3733182f2e7a28874476d1c28fb2edf8a8c0bcd7fece723c2baa43141c0ac252c2450a6b57e73821a991cb0ddd5a49aca62251 +DIST gjs-1.46.0.tar.xz 490812 BLAKE2B d7b71d6c611404d9313cdd19959e2a0cb7f035bbd2528db77ccb0030e685019b756216bfbc64885b3641c14cab2f29110492c87047c3ceb1a627765857b19a95 SHA512 14af40668e95d269ac87556c75cf45680c41bc8246f04c46726d34bd80e9344045c0a510567f156c2c25c1f10dd474dc38bd50581d1b2e5abe0daa0cf570e2bc +DIST gjs-1.48.7.tar.xz 595324 BLAKE2B eac8b5b2f7e909e94e3fb305cac443da3f433047ee07fa8fbd15905890f77d57449c8689867df61f1ac849b8b4bddc089a9b1ddc3aa79d4b3d054226c58fa909 SHA512 b8c58e068eaecfca2fa40cebe209fa8058e603809be4307099a0f3dbd561752a540d587d546ffa74aef0268a111f2b2846a1e0febda1adcefdac8c02e716e2dd +EBUILD gjs-1.46.0.ebuild 1559 BLAKE2B 8e46f9f4a7f06ed43132e023b25203eef301345e8de0d52183edb25c07b79fc1dec1c2285ea5b4b57b4923092e165901ebba049362cbce73c50a377b4a7e5d0e SHA512 083fd06684cd111f77b35f251c9d1418614550947366e838408daa2f214204d530273a2954304f6e3aba092c8160dec9ae581d7422f033cbf3aaaf72ec99ccae +EBUILD gjs-1.48.7.ebuild 1553 BLAKE2B 2557beed75a4747209898983b0bd3ebf863ff3f1d40a1e6f3c8c85b9e6b15ae948b3b081488d7b6a0fc03d5bb1dd108bc218918614ff4ed7d42b87a8451717a4 SHA512 92004a2797688b4e275d83185d655cd2c027f53c768fc039223e2db2bfcd8a2d0703cf01e9b4886d6a97dce53f71619a68d05179a13db331c16e40950a354f02 +MISC metadata.xml 259 BLAKE2B 32f8c5208a55a1dda504b7df969127393a2c70e672aba383fcdc870de8fe778366d3dde3c3313bd043068d2e7831d1e18bad6fb428e82266fc2a630104e0a193 SHA512 fbef629394690b3a5608abc6344816f6acf1e8e2663f29949fd14a662c628f16fee77a1ec1641066806d143fb94c1571bc5b46b829dc53620af6956377fe15cc diff --git a/dev-libs/gjs/files/1.48.6-disable-unittest.patch b/dev-libs/gjs/files/1.48.6-disable-unittest.patch new file mode 100644 index 000000000000..3925fed0140d --- /dev/null +++ b/dev-libs/gjs/files/1.48.6-disable-unittest.patch @@ -0,0 +1,24 @@ +commit e9b7360c9a057c4a6718c9561e5cb6dcee279ec2 +Author: Timo Tambet <ttambet@gmail.com> +Date: Sat Apr 22 22:32:36 2017 +0300 + + Comment out broken JS unittest + +diff --git a/installed-tests/js/testLocale.js b/installed-tests/js/testLocale.js +index edd8a6e..0b0847a 100644 +--- a/installed-tests/js/testLocale.js ++++ b/installed-tests/js/testLocale.js +@@ -4,11 +4,12 @@ describe('JS_SetLocaleCallbacks', function () { + }); + + // Requesting the weekday name tests locale_to_unicode ++ /* + it('toLocaleDateString() works', function () { + let date = new Date('12/15/1981'); + let datestr = date.toLocaleDateString('pt-BR', { weekday: 'long' }); + expect(datestr).toEqual('terça-feira'); +- }); ++ });*/ + + it('toLocaleLowerCase() works', function () { + expect('AAA'.toLocaleLowerCase()).toEqual('aaa'); diff --git a/dev-libs/gjs/files/gjs-1.43.3-disable-unittest-1.patch b/dev-libs/gjs/files/gjs-1.43.3-disable-unittest-1.patch new file mode 100644 index 000000000000..c6d740ad5537 --- /dev/null +++ b/dev-libs/gjs/files/gjs-1.43.3-disable-unittest-1.patch @@ -0,0 +1,40 @@ +From 115c97bb07f71ac91e20b84f9da6389434d31999 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.3.6 + diff --git a/dev-libs/gjs/files/gjs-1.43.3-disable-unittest-2.patch b/dev-libs/gjs/files/gjs-1.43.3-disable-unittest-2.patch new file mode 100644 index 000000000000..fe21f92dfc2b --- /dev/null +++ b/dev-libs/gjs/files/gjs-1.43.3-disable-unittest-2.patch @@ -0,0 +1,35 @@ +From c9d63c7531a29418c64dc44556519d7bd1664ce4 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.3.6 + diff --git a/dev-libs/gjs/gjs-1.46.0.ebuild b/dev-libs/gjs/gjs-1.46.0.ebuild new file mode 100644 index 000000000000..a93e55bea193 --- /dev/null +++ b/dev-libs/gjs/gjs-1.46.0.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit gnome2 pax-utils virtualx + +DESCRIPTION="Javascript bindings for GNOME" +HOMEPAGE="https://wiki.gnome.org/Projects/Gjs" + +LICENSE="MIT || ( MPL-1.1 LGPL-2+ GPL-2+ )" +SLOT="0" +IUSE="+cairo examples gtk test" +KEYWORDS="alpha amd64 arm ia64 ppc ppc64 sparc x86" + +RDEPEND=" + >=dev-libs/glib-2.36:2 + >=dev-libs/gobject-introspection-1.41.4:= + + sys-libs/readline:0 + dev-lang/spidermonkey:24 + virtual/libffi + cairo? ( x11-libs/cairo[X] ) + gtk? ( x11-libs/gtk+:3 ) +" +DEPEND="${RDEPEND} + gnome-base/gnome-common + sys-devel/gettext + virtual/pkgconfig + test? ( sys-apps/dbus ) +" + +PATCHES=( + # Disable broken unittests, upstream bug #???? + "${FILESDIR}"/${PN}-1.43.3-disable-unittest-{1,2}.patch +) + +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 cairo) \ + $(use_with gtk) \ + $(use_with test dbus-tests) \ + $(use_with test xvfb-tests) +} + +src_test() { + virtx emake check +} + +src_install() { + # installation sometimes fails in parallel, bug #??? + gnome2_src_install -j1 + + if use examples; then + insinto /usr/share/doc/"${PF}"/examples + doins "${S}"/examples/* + fi + + # Required for gjs-console to run correctly on PaX systems + pax-mark mr "${ED}/usr/bin/gjs-console" +} diff --git a/dev-libs/gjs/gjs-1.48.7.ebuild b/dev-libs/gjs/gjs-1.48.7.ebuild new file mode 100644 index 000000000000..910ff1edc3e1 --- /dev/null +++ b/dev-libs/gjs/gjs-1.48.7.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit gnome2 pax-utils virtualx + +DESCRIPTION="Javascript bindings for GNOME" +HOMEPAGE="https://wiki.gnome.org/Projects/Gjs" + +LICENSE="MIT || ( MPL-1.1 LGPL-2+ GPL-2+ )" +SLOT="0" +IUSE="+cairo examples gtk test" +KEYWORDS="~alpha amd64 ~arm ia64 ~ppc ~ppc64 sparc x86" + +RDEPEND=" + >=dev-libs/glib-2.52.1 + >=dev-libs/gobject-introspection-1.52.1:= + + sys-libs/readline:0= + dev-lang/spidermonkey:38 + virtual/libffi + cairo? ( x11-libs/cairo[X] ) + gtk? ( >=x11-libs/gtk+-3.20:3 ) +" +DEPEND="${RDEPEND} + gnome-base/gnome-common + sys-devel/gettext + virtual/pkgconfig + test? ( sys-apps/dbus ) +" + +#PATCHES=( + # Disable unittest failing without pt_BR locale, upstream bug #???? +# "${FILESDIR}"/1.48.6-disable-unittest.patch +#) + +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-code-coverage \ + $(use_with cairo cairo) \ + $(use_with gtk) \ + $(use_with test dbus-tests) \ + $(use_with test xvfb-tests) +} + +src_install() { + # installation sometimes fails in parallel, bug #??? + gnome2_src_install -j1 + + if use examples; then + insinto /usr/share/doc/"${PF}"/examples + doins "${S}"/examples/* + fi + + # Required for gjs-console to run correctly on PaX systems + pax-mark mr "${ED}/usr/bin/gjs-console" +} diff --git a/dev-libs/gjs/metadata.xml b/dev-libs/gjs/metadata.xml new file mode 100644 index 000000000000..4cbddcaa19ad --- /dev/null +++ b/dev-libs/gjs/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>gnome@gentoo.org</email> + <name>Gentoo GNOME Desktop</name> + </maintainer> +</pkgmetadata> |