diff options
| author | root <root@alpha.trunkmasters.com> | 2026-06-04 16:24:49 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-06-04 16:24:49 -0500 |
| commit | a3ceca1b4c0d9bdb550dc23f06ffbb5a8e033bc7 (patch) | |
| tree | 0c52bbae1c242fbc296bd650fcd1167685f81492 /dev-lua/lgi | |
| parent | bfd9c39e4712ebdb442d4ca0673061faed1e70e1 (diff) | |
| download | baldeagleos-repo-a3ceca1b4c0d9bdb550dc23f06ffbb5a8e033bc7.tar.gz baldeagleos-repo-a3ceca1b4c0d9bdb550dc23f06ffbb5a8e033bc7.tar.xz baldeagleos-repo-a3ceca1b4c0d9bdb550dc23f06ffbb5a8e033bc7.zip | |
Adding metadata
Diffstat (limited to 'dev-lua/lgi')
| -rw-r--r-- | dev-lua/lgi/Manifest | 3 | ||||
| -rw-r--r-- | dev-lua/lgi/files/lgi-0.9.2-fix_glib287.patch | 32 | ||||
| -rw-r--r-- | dev-lua/lgi/files/lgi-0.9.2-fix_tests.patch | 36 | ||||
| -rw-r--r-- | dev-lua/lgi/files/lgi-0.9.2-lua54.patch | 29 | ||||
| -rw-r--r-- | dev-lua/lgi/files/lgi-0.9.2-multi_lua_impl.patch | 32 | ||||
| -rw-r--r-- | dev-lua/lgi/lgi-0.9.2-r100.ebuild | 131 | ||||
| -rw-r--r-- | dev-lua/lgi/lgi-0.9.2_p20251219.ebuild | 131 | ||||
| -rw-r--r-- | dev-lua/lgi/lgi-0.9.2_p20260407.ebuild | 132 | ||||
| -rw-r--r-- | dev-lua/lgi/metadata.xml | 10 |
9 files changed, 0 insertions, 536 deletions
diff --git a/dev-lua/lgi/Manifest b/dev-lua/lgi/Manifest deleted file mode 100644 index 743b01e15b84..000000000000 --- a/dev-lua/lgi/Manifest +++ /dev/null @@ -1,3 +0,0 @@ -DIST lgi-0.9.2.tar.gz 291463 BLAKE2B d89752e7c56f9a695f97f90680515fd9acab57991121ec3455fcd88aa0b64828f060d9bf222fb1ab14bdfc956ec3ad296af848168532d09694a0cacbb55dac71 SHA512 755a96b78530f42da6d4e2664f8e37cb07a356419e7e6448003c3f841c9d98ad18b851715d9eb203ea7eb27b13ec46223fa8a1c90a99fd12960ce85b0a695335 -DIST lgi-0.9.2_p20251219.tar.gz 305320 BLAKE2B d60a873873eec2784e3cc90c59eb0264502a4ad60363a04bdf7b81a5bc5850b230a80923f30602a0f6b57d653854563897a9a671ef884c0e3a8ed6f4371c2192 SHA512 92dd53f441601deff970eb02a002d763c69fcba82b3067d92fd69e92042e4f6e4e5f98c22e0a044a9b34d62799880af858c3454018f46ae071e93aecedb0cbdf -DIST lgi-0.9.2_p20260407.tar.gz 305354 BLAKE2B ca937513a7db2a3a37926db2a7e3a31d1afdd9cb33ab312540e461f7b06453e6d8a16f98580b5f6f891ea9be39c1dbc7fbbbf62b3890c829bef78a7d2a31a3f5 SHA512 8a302d72c8faf02e89389b599e9159b36d4d89ed91db266c1c2591ce6239a4781d535965011664728f1ef588d092d35477b3cf03bcea6440b4c94d4f9e9c1580 diff --git a/dev-lua/lgi/files/lgi-0.9.2-fix_glib287.patch b/dev-lua/lgi/files/lgi-0.9.2-fix_glib287.patch deleted file mode 100644 index 423601ad76db..000000000000 --- a/dev-lua/lgi/files/lgi-0.9.2-fix_glib287.patch +++ /dev/null @@ -1,32 +0,0 @@ -see PR pending https://github.com/lgi-devs/lgi/pull/352.patch -fix https://bugs.gentoo.org/973586 -ffi: conform load_enum to GLib 2.87.0 ---- a/lgi/ffi.lua -+++ b/lgi/ffi.lua -@@ -75,16 +75,22 @@ end - - -- Creates new enum/flags table with all values from specified gtype. - function ffi.load_enum(gtype, name) -- local GObject = core.repo.GObject -+ local GLib, GObject = core.repo.GLib, core.repo.GObject - local is_flags = GObject.Type.is_a(gtype, GObject.Type.FLAGS) - local enum_component = component.create( - gtype, is_flags and enum.bitflags_mt or enum.enum_mt, name) - local type_class = GObject.TypeClass.ref(gtype) - local enum_class = core.record.cast( - type_class, is_flags and GObject.FlagsClass or GObject.EnumClass) -- for i = 0, enum_class.n_values - 1 do -- local val = core.record.fromarray(enum_class.values, i) -- enum_component[core.upcase(val.value_nick):gsub('%-', '_')] = val.value -+ if GLib.check_version(2, 87, 0) then -+ for i = 0, enum_class.n_values - 1 do -+ local val = core.record.fromarray(enum_class.values, i) -+ enum_component[core.upcase(val.value_nick):gsub('%-', '_')] = val.value -+ end -+ else -+ for _, val in ipairs(enum_class.values) do -+ enum_component[core.upcase(val.value_nick):gsub('%-', '_')] = val.value -+ end - end - type_class:unref() - return enum_component diff --git a/dev-lua/lgi/files/lgi-0.9.2-fix_tests.patch b/dev-lua/lgi/files/lgi-0.9.2-fix_tests.patch deleted file mode 100644 index be6527ceb79a..000000000000 --- a/dev-lua/lgi/files/lgi-0.9.2-fix_tests.patch +++ /dev/null @@ -1,36 +0,0 @@ -#1 PR pending https://github.com/lgi-devs/lgi/pull/342.patch -fix test with pango >= 1.56.2 ---- a/tests/pango.lua -+++ b/tests/pango.lua -@@ -35,8 +35,7 @@ function pango.glyphstring() - local offset = items[i].offset - local length = items[i].length - local analysis = items[i].analysis -- local pgs = Pango.GlyphString() -- Pango.shape(string.sub(s,1+offset), length, analysis, pgs) -+ pgs = Pango.shape(string.sub(s,1+offset), length, analysis) - -- Pull out individual glyphs with pgs.glyphs - local glyphs = pgs.glyphs - check(type(glyphs) == 'table') - -#2 failing progress.lua, see https://github.com/lgi-devs/lgi/issues/348 -fixed by a fork https://github.com/vtrlx/LuaGObject/commit/cd261460f275ea07a4b47cc0c9d0113e17f98b11.patch ---- a/tests/progress.lua -+++ b/tests/progress.lua -@@ -11,6 +11,7 @@ - local lgi = require 'lgi' - local Gio = lgi.Gio - local GLib = lgi.GLib -+local GObject = lgi.GObject - - local check = testsuite.check - -@@ -46,6 +47,7 @@ function progress.file_copy() - end - - src:copy_async(dst, flags, priority, cancellable, -- progress_callback, finish_callback) -+ GObject.Closure (progress_callback), -+ GObject.Closure (finish_callback)) - loop:run() - end diff --git a/dev-lua/lgi/files/lgi-0.9.2-lua54.patch b/dev-lua/lgi/files/lgi-0.9.2-lua54.patch deleted file mode 100644 index b1451a7566d7..000000000000 --- a/dev-lua/lgi/files/lgi-0.9.2-lua54.patch +++ /dev/null @@ -1,29 +0,0 @@ -From 5cfd42c386d3adae6d211fbb4011179c3c141b04 Mon Sep 17 00:00:00 2001 -From: Uli Schlachter <psychon@znc.in> -Date: Sun, 2 Aug 2020 16:14:27 +0200 -Subject: [PATCH] Fix the build with Lua 5.4 - -Lua 5.4 changed the API to lua_resume(). This commit changes the code to -cope with that. - -Signed-off-by: Uli Schlachter <psychon@znc.in> ---- - lgi/callable.c | 5 ++++- - 1 file changed, 4 insertions(+), 1 deletion(-) - -diff --git a/lgi/callable.c b/lgi/callable.c -index e96d3af..3234b64 100644 ---- a/lgi/callable.c -+++ b/lgi/callable.c -@@ -1355,7 +1355,10 @@ closure_callback (ffi_cif *cif, void *ret, void **args, void *closure_arg) - } - else - { --#if LUA_VERSION_NUM >= 502 -+#if LUA_VERSION_NUM >= 504 -+ int nresults; -+ res = lua_resume (L, NULL, npos, &nresults); -+#elif LUA_VERSION_NUM >= 502 - res = lua_resume (L, NULL, npos); - #else - res = lua_resume (L, npos); diff --git a/dev-lua/lgi/files/lgi-0.9.2-multi_lua_impl.patch b/dev-lua/lgi/files/lgi-0.9.2-multi_lua_impl.patch deleted file mode 100644 index 728d5068db19..000000000000 --- a/dev-lua/lgi/files/lgi-0.9.2-multi_lua_impl.patch +++ /dev/null @@ -1,32 +0,0 @@ -allow lua multi-implementation -@GENTOO_LUA_VERSION@ will be replaced after sources copied for each lua implementation ---- a/lgi/core.c -+++ b/lgi/core.c -@@ -697,7 +697,7 @@ set_resident (lua_State *L) - } - - G_MODULE_EXPORT int --luaopen_lgi_corelgilua51 (lua_State* L) -+luaopen_lgi_corelgi@GENTOO_LUA_VERSION@ (lua_State* L) - { - LgiStateMutex *mutex; - gint state_id; ---- a/lgi/core.lua -+++ b/lgi/core.lua -@@ -11,7 +11,7 @@ - -- This module decides what kind of core routines should be loaded. - -- Currently only one implementation exists, standard-Lua C-side - -- implementation, LuaJIT-FFI-based one is planned. --local core = require 'lgi.corelgilua51' -+local core = require 'lgi.corelgi@GENTOO_LUA_VERSION@' - - -- Helper methods for converting between CamelCase and uscore_delim - -- names. ---- a/lgi/meson.build -+++ b/lgi/meson.build -@@ -1,4 +1,4 @@ --liblgi = shared_module('corelgilua51', -+liblgi = shared_module('corelgi@GENTOO_LUA_VERSION@', - sources: [ - 'buffer.c', - 'callable.c', diff --git a/dev-lua/lgi/lgi-0.9.2-r100.ebuild b/dev-lua/lgi/lgi-0.9.2-r100.ebuild deleted file mode 100644 index 0f42bf58b368..000000000000 --- a/dev-lua/lgi/lgi-0.9.2-r100.ebuild +++ /dev/null @@ -1,131 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -VIRTUALX_REQUIRED="manual" -LUA_COMPAT=( lua5-{1,3,4} luajit ) - -inherit lua toolchain-funcs virtualx - -DESCRIPTION="Lua bindings using gobject-introspection" -HOMEPAGE="https://github.com/pavouk/lgi" -SRC_URI="https://github.com/pavouk/lgi/archive/${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="amd64 arm ~arm64 ~loong ppc ppc64 ~riscv x86" -IUSE="examples test" -RESTRICT="!test? ( test )" -REQUIRED_USE="${LUA_REQUIRED_USE}" - -BDEPEND="${LUA_DEPS}" -RDEPEND="${LUA_DEPS} - >=dev-libs/gobject-introspection-1.82.0-r2 - dev-libs/glib - dev-libs/libffi:0=" -DEPEND="${RDEPEND} - test? ( - x11-libs/cairo[glib] - x11-libs/gtk+[introspection] - ${VIRTUALX_DEPEND} - )" - -PATCHES=( "${FILESDIR}/${P}-lua54.patch" ) - -lua_src_prepare() { - pushd "${BUILD_DIR}" || die - # The Makefile & several source files use the LUA version as part of the - # direct filename, dynamically created, and we respect that. - _slug=${ELUA} - _slug=${_slug/.} - _slug=${_slug/-} - _slug=${_slug/_} - - # Makefile: CORE = corelgilua51.so (and similar lines) - sed -r -i \ - -e "/^CORE\>/s,lua5.,${_slug},g" \ - lgi/Makefile \ - || die "sed failed" - - # ./lgi/core.lua:local core = require 'lgi.corelgilua51' - # ./lgi/core.c:luaopen_lgi_corelgilua51 (lua_State* L) - sed -r -i \ - -e "/lgi.corelgilua5./s,lua5.,${_slug},g" \ - lgi/core.lua \ - lgi/core.c \ - || die "sed failed" - - # Verify the change as it's important! - for f in lgi/core.lua lgi/core.c lgi/Makefile ; do - grep -sq "corelgi${_slug}" "${f}" || die "Failed to sed .lua & .c for corelgi${_slug}: ${f}" - done - - # Cleanup - unset _slug - popd -} - -src_prepare() { - default - lua_copy_sources - lua_foreach_impl lua_src_prepare -} - -lgi_emake_wrapper() { - emake \ - CC="$(tc-getCC)" \ - COPTFLAGS="-Wall -Wextra ${CFLAGS}" \ - LIBFLAG="-shared ${LDFLAGS}" \ - LUA_CFLAGS="$(lua_get_CFLAGS)" \ - LUA="${LUA}" \ - LUA_VERSION="${ELUA#lua}" \ - LUA_LIBDIR="$(lua_get_cmod_dir)" \ - LUA_SHAREDIR="$(lua_get_lmod_dir)" \ - "$@" -} - -lua_src_compile() { - pushd "${BUILD_DIR}" || die - lgi_emake_wrapper all - popd -} - -src_compile() { - lua_foreach_impl lua_src_compile -} - -lua_src_test() { - pushd "${BUILD_DIR}" || die - - if [[ ${ELUA} == luajit ]]; then - einfo "Tests are currently not supported on LuaJIT" - else - virtx \ - lgi_emake_wrapper \ - check - fi - popd -} - -src_test() { - lua_foreach_impl lua_src_test -} - -lua_src_install() { - pushd "${BUILD_DIR}" || die - lgi_emake_wrapper \ - DESTDIR="${D}" \ - install - popd -} - -src_install() { - lua_foreach_impl lua_src_install - docompress -x /usr/share/doc/${PF} - dodoc README.md - dodoc -r docs/* - if use examples; then - dodoc -r samples - fi -} diff --git a/dev-lua/lgi/lgi-0.9.2_p20251219.ebuild b/dev-lua/lgi/lgi-0.9.2_p20251219.ebuild deleted file mode 100644 index 79eb9887037e..000000000000 --- a/dev-lua/lgi/lgi-0.9.2_p20251219.ebuild +++ /dev/null @@ -1,131 +0,0 @@ -# Copyright 1999-2026 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -VIRTUALX_REQUIRED="manual" -LUA_COMPAT=( lua5-{1,3,4} luajit ) -inherit lua meson virtualx - -DESCRIPTION="Lua bindings using gobject-introspection" -HOMEPAGE="https://github.com/lgi-devs/lgi" -if [[ ${PV} == *_p* ]]; then - HASH_COMMIT="a1308b23b07a787d21fad86157b0b60eb3079f64" - SRC_URI="https://github.com/lgi-devs/lgi/archive/${HASH_COMMIT}.tar.gz -> ${P}.tar.gz" - S="${WORKDIR}/${PN}-${HASH_COMMIT}" -else - SRC_URI="https://github.com/lgi-devs/lgi/archive/${PV}.tar.gz -> ${P}.tar.gz" -fi - -LICENSE="MIT" -SLOT="0" -KEYWORDS="amd64 ~arm ~arm64 ~loong ~ppc ppc64 ~riscv ~x86" -IUSE="test" -RESTRICT="!test? ( test )" -REQUIRED_USE="${LUA_REQUIRED_USE}" - -BDEPEND=" - ${LUA_DEPS} - virtual/pkgconfig - test? ( - ${VIRTUALX_DEPEND} - sys-apps/dbus - x11-misc/xvfb-run - ) -" -RDEPEND=" - ${LUA_DEPS} - >=dev-libs/gobject-introspection-1.82.0-r2 - dev-libs/glib:2 - dev-libs/libffi:0= -" -DEPEND=" - ${RDEPEND} - test? ( - x11-libs/cairo[glib,X] - || ( - x11-libs/gtk+:3[introspection,X] - gui-libs/gtk:4[introspection,X] - ) - ) -" - -PATCHES=( - "${FILESDIR}"/${PN}-0.9.2-multi_lua_impl.patch - "${FILESDIR}"/${PN}-0.9.2-fix_tests.patch -) - -lua_src_prepare() { - pushd "${BUILD_DIR}" || die - # lgi/meson.build & several source files use the LUA version as part of the - # direct filename, dynamically created, and we respect that. - - # replace @GENTOO_LUA_VERSION@ with lua version in patched files: - # lgi/core.c:luaopen_lgi_corelgilua51 (lua_State* L) - # lgi/core.lua:local core = require 'lgi.corelgilua51' - # lgi/meson.build: liblgi = shared_module('corelgilua51' - sed -i \ - -e "s/@GENTOO_LUA_VERSION@/${ELUA/.}/" \ - lgi/core.c \ - lgi/core.lua \ - lgi/meson.build \ - || die "sed failed" - - popd -} - -src_prepare() { - default - lua_copy_sources - lua_foreach_impl lua_src_prepare -} - -lua_src_configure() { - local emesonargs=( - -Dlua-pc="${ELUA}" - -Dlua-bin="${LUA}" - $(meson_use test tests) - ) - EMESON_SOURCE="${BUILD_DIR}" \ - BUILD_DIR="${BUILD_DIR}-meson" \ - meson_src_configure -} - -src_configure() { - lua_foreach_impl lua_src_configure -} - -lua_src_compile() { - EMESON_SOURCE="${BUILD_DIR}" \ - BUILD_DIR="${BUILD_DIR}-meson" \ - meson_src_compile -} - -src_compile() { - lua_foreach_impl lua_src_compile -} - -lua_src_test() { - if [[ ${ELUA} == luajit ]]; then - einfo "Tests are currently not supported on LuaJIT" - else - BUILD_DIR="${BUILD_DIR}-meson" \ - virtx meson_src_test - fi -} - -src_test() { - lua_foreach_impl lua_src_test -} - -lua_src_install() { - BUILD_DIR="${BUILD_DIR}-meson" \ - meson_install -} - -src_install() { - lua_foreach_impl lua_src_install - local DOCS=( README.md docs/. samples ) - docompress -x /usr/share/doc/${PF}/samples - einstalldocs -} diff --git a/dev-lua/lgi/lgi-0.9.2_p20260407.ebuild b/dev-lua/lgi/lgi-0.9.2_p20260407.ebuild deleted file mode 100644 index 7f0c72008432..000000000000 --- a/dev-lua/lgi/lgi-0.9.2_p20260407.ebuild +++ /dev/null @@ -1,132 +0,0 @@ -# Copyright 1999-2026 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -VIRTUALX_REQUIRED="manual" -LUA_COMPAT=( lua5-{1,3,4} luajit ) -inherit lua meson virtualx - -DESCRIPTION="Lua bindings using gobject-introspection" -HOMEPAGE="https://github.com/lgi-devs/lgi" -if [[ ${PV} == *_p* ]]; then - HASH_COMMIT="dfa82978d0f0f1ed1e817c9f0c5ea46824069e34" - SRC_URI="https://github.com/lgi-devs/lgi/archive/${HASH_COMMIT}.tar.gz -> ${P}.tar.gz" - S="${WORKDIR}/${PN}-${HASH_COMMIT}" -else - SRC_URI="https://github.com/lgi-devs/lgi/archive/${PV}.tar.gz -> ${P}.tar.gz" -fi - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~x86" -IUSE="test" -RESTRICT="!test? ( test )" -REQUIRED_USE="${LUA_REQUIRED_USE}" - -BDEPEND=" - ${LUA_DEPS} - virtual/pkgconfig - test? ( - ${VIRTUALX_DEPEND} - sys-apps/dbus - x11-misc/xvfb-run - ) -" -RDEPEND=" - ${LUA_DEPS} - >=dev-libs/gobject-introspection-1.82.0-r2 - dev-libs/glib:2 - dev-libs/libffi:0= -" -DEPEND=" - ${RDEPEND} - test? ( - x11-libs/cairo[glib,X] - || ( - x11-libs/gtk+:3[introspection,X] - gui-libs/gtk:4[introspection,X] - ) - ) -" - -PATCHES=( - "${FILESDIR}"/${PN}-0.9.2-multi_lua_impl.patch - "${FILESDIR}"/${PN}-0.9.2-fix_tests.patch - "${FILESDIR}"/${PN}-0.9.2-fix_glib287.patch -) - -lua_src_prepare() { - pushd "${BUILD_DIR}" || die - # lgi/meson.build & several source files use the LUA version as part of the - # direct filename, dynamically created, and we respect that. - - # replace @GENTOO_LUA_VERSION@ with lua version in patched files: - # lgi/core.c:luaopen_lgi_corelgilua51 (lua_State* L) - # lgi/core.lua:local core = require 'lgi.corelgilua51' - # lgi/meson.build: liblgi = shared_module('corelgilua51' - sed -i \ - -e "s/@GENTOO_LUA_VERSION@/${ELUA/.}/" \ - lgi/core.c \ - lgi/core.lua \ - lgi/meson.build \ - || die "sed failed" - - popd -} - -src_prepare() { - default - lua_copy_sources - lua_foreach_impl lua_src_prepare -} - -lua_src_configure() { - local emesonargs=( - -Dlua-pc="${ELUA}" - -Dlua-bin="${LUA}" - $(meson_use test tests) - ) - EMESON_SOURCE="${BUILD_DIR}" \ - BUILD_DIR="${BUILD_DIR}-meson" \ - meson_src_configure -} - -src_configure() { - lua_foreach_impl lua_src_configure -} - -lua_src_compile() { - EMESON_SOURCE="${BUILD_DIR}" \ - BUILD_DIR="${BUILD_DIR}-meson" \ - meson_src_compile -} - -src_compile() { - lua_foreach_impl lua_src_compile -} - -lua_src_test() { - if [[ ${ELUA} == luajit ]]; then - einfo "Tests are currently not supported on LuaJIT" - else - BUILD_DIR="${BUILD_DIR}-meson" \ - virtx meson_src_test - fi -} - -src_test() { - lua_foreach_impl lua_src_test -} - -lua_src_install() { - BUILD_DIR="${BUILD_DIR}-meson" \ - meson_install -} - -src_install() { - lua_foreach_impl lua_src_install - local DOCS=( README.md docs/. samples ) - docompress -x /usr/share/doc/${PF}/samples - einstalldocs -} diff --git a/dev-lua/lgi/metadata.xml b/dev-lua/lgi/metadata.xml deleted file mode 100644 index c4f09fac82f4..000000000000 --- a/dev-lua/lgi/metadata.xml +++ /dev/null @@ -1,10 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> - <maintainer type="person"> - <email>robbat2@gentoo.org</email> - </maintainer> - <upstream> - <remote-id type="github">lgi-devs/lgi</remote-id> - </upstream> -</pkgmetadata> |
