From 61f2bada24236725f69daaa9bcb1f7a3b23dc56f Mon Sep 17 00:00:00 2001 From: Lukas Schmelting Date: Sat, 18 Jul 2026 13:47:47 +0200 Subject: [PATCH] dev-libs/gjs: add 1.88.1 Signed-off-by: Lukas Schmelting Part-of: https://codeberg.org/gentoo/gentoo/pulls/1458 Merges: https://codeberg.org/gentoo/gentoo/pulls/1458 Signed-off-by: Pacho Ramos --- dev-libs/gjs/Manifest | 1 + dev-libs/gjs/gjs-1.88.1.ebuild | 68 ++++++++++++++++++++++++++++++++++ 2 files changed, 69 insertions(+) create mode 100644 dev-libs/gjs/gjs-1.88.1.ebuild diff --git a/dev-libs/gjs/Manifest b/dev-libs/gjs/Manifest index 403c61ea297fe..133f22d381861 100644 --- a/dev-libs/gjs/Manifest +++ b/dev-libs/gjs/Manifest @@ -1,2 +1,3 @@ DIST gjs-1.84.2.tar.xz 790488 BLAKE2B ab94f3dbc74c2983ce0abfd603bdd09e8aae1b130ca6756debd3d6c9f8c6311dde421baeaee1662ce402defd9f08f755cb535adaab1a5c846eb234305eede8fe SHA512 359b1cc2e1ecb447cc0e2f5e4733e6a47ac5acf5b7ede1716045bde56f53fdbf15f4465227c7ea207a34190ce275486f9725f37080d678a51b0d2d5e9d7a1c9b DIST gjs-1.88.0.tar.xz 806440 BLAKE2B cffc5a698272f7f6e4315ac77d3bab2bc63f3a2c0940701a9326a87550115784f765ab584e132f86976e2a9acc85ca1614c189a2e5f32b1f2babee5f6b1487d6 SHA512 5a58dacbeda62dfb89bfb5d115e706a965eb04bf92f29592769e9ae7a687c4f943fb5e94bf2db20524c73f21ec61e53375cccc01156ed5f41bb3169df0695567 +DIST gjs-1.88.1.tar.xz 806632 BLAKE2B 02566c7644e13a7e342c0f8d309f063beb68334d69386dfa312ed54591f261fdb7a451efc82a0062c2820bc5d97c7f0fe158e46c8952a9c5ad0d7169dfc1a57f SHA512 4c243d618ca9d3ed48e7235b8a5c1816f3cb0fb6e664e3c429ff8375e23ee3de8f2b22846d6256ad347dc430e7bddccc8420d5bf7ffdbf7bf8a266daf5c2b9a6 diff --git a/dev-libs/gjs/gjs-1.88.1.ebuild b/dev-libs/gjs/gjs-1.88.1.ebuild new file mode 100644 index 0000000000000..11727e159a2f6 --- /dev/null +++ b/dev-libs/gjs/gjs-1.88.1.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit flag-o-matic gnome.org meson virtualx + +DESCRIPTION="Javascript bindings for GNOME" +HOMEPAGE="https://gjs.guide" + +LICENSE="MIT || ( MPL-1.1 LGPL-2+ GPL-2+ )" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~x86" +IUSE="examples readline sysprof test" +RESTRICT="!test? ( test )" + +RDEPEND=" + >=dev-libs/glib-2.86.0:2 + dev-libs/libffi:= + >=dev-libs/gobject-introspection-1.86.0:= + dev-lang/spidermonkey:140 + x11-libs/cairo[X,glib] + readline? ( sys-libs/readline:0= ) +" +DEPEND="${RDEPEND} + sysprof? ( >=dev-util/sysprof-capture-3.40.1:4 ) + test? ( + sys-apps/dbus + >=x11-libs/gtk+-3.20:3[introspection] + gui-libs/gtk:4[introspection] + ) +" +BDEPEND=" + virtual/pkgconfig +" + +src_configure() { + append-cppflags -DG_DISABLE_CAST_CHECKS + + # On musl, it's required that either gjs, pixman or gnome-shell to be built + # with a larger stack otherwise librsvg fails to render a particular SVG, as + # a result we fail to get gdm or gnome-shell running (greeted with a fail + # whale screen). The bug has been reported to librsvg. This is ideally just + # a temporary workaround until we understand what exactly needs a larger + # stack size, as it's not sufficient to do just librsvg. + # + # Please refer to: + # https://gitlab.gnome.org/GNOME/librsvg/-/issues/686 + # https://gitlab.gnome.org/GNOME/librsvg/-/issues/874 + # + # TODO: Find an actual fix instead of increasing the stack + use elibc_musl && append-ldflags -Wl,-z,stack-size=2097152 + + # FIXME: add systemtap/dtrace support, like in glib:2 + local emesonargs=( + $(meson_feature readline) + $(meson_feature sysprof profiler) + -Dinstalled_tests=false + $(meson_use !test skip_dbus_tests) + $(meson_use !test skip_gtk_tests) + ) + meson_src_configure +} + +src_test() { + # tests may fail on slow arches + virtx meson_src_test --timeout-multiplier 10 +}