commit:     f0f2b39e275f65430786dde843da6323a21f255a
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu May 29 21:37:17 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu May 29 21:44:38 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f0f2b39e

dev-lua/toluapp: EAPI 8, fix build w/ cmake-4

Closes: https://bugs.gentoo.org/955898
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../files/toluapp-1.0.93_p20190513-cmake-4.patch   | 13 ++++++++
 .../toluapp/toluapp-1.0.93_p20190513-r101.ebuild   | 38 ++++++++++++++++++++++
 2 files changed, 51 insertions(+)

diff --git a/dev-lua/toluapp/files/toluapp-1.0.93_p20190513-cmake-4.patch 
b/dev-lua/toluapp/files/toluapp-1.0.93_p20190513-cmake-4.patch
new file mode 100644
index 000000000000..cadb755bb19b
--- /dev/null
+++ b/dev-lua/toluapp/files/toluapp-1.0.93_p20190513-cmake-4.patch
@@ -0,0 +1,13 @@
+https://bugs.gentoo.org/955898
+
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -5,7 +5,7 @@
+ # Please note that the package source code is licensed under its own license.
+ 
+ project ( toluapp C )
+-cmake_minimum_required ( VERSION 2.8 )
++cmake_minimum_required ( VERSION 3.15 )
+ include ( GNUInstallDirs )
+ 
+ find_package ( Lua ${LUA_VERSION} EXACT REQUIRED )

diff --git a/dev-lua/toluapp/toluapp-1.0.93_p20190513-r101.ebuild 
b/dev-lua/toluapp/toluapp-1.0.93_p20190513-r101.ebuild
new file mode 100644
index 000000000000..e01378c506c7
--- /dev/null
+++ b/dev-lua/toluapp/toluapp-1.0.93_p20190513-r101.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+# Newer Lua versions are NOT supported, see Bug #508222
+LUA_COMPAT=( lua5-1 )
+CMAKE_REMOVE_MODULES_LIST=( dist lua FindLua )
+inherit cmake lua-single
+
+MY_PN=${PN/pp/++}
+COMMIT_ID="b34075b76835b778bb6b2ce0aa224afd9d182887"
+
+DESCRIPTION="Tool to integrate C/C++ code with Lua"
+HOMEPAGE="https://github.com/LuaDist/toluapp";
+SRC_URI="https://github.com/LuaDist/toluapp/archive/${COMMIT_ID}.tar.gz -> 
${P}.tar.gz"
+S="${WORKDIR}/${PN}-${COMMIT_ID}"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86"
+REQUIRED_USE="${LUA_REQUIRED_USE}"
+
+RDEPEND="${LUA_DEPS}"
+DEPEND="${RDEPEND}"
+
+PATCHES=(
+       "${FILESDIR}"/${PN}-1.0.93_p20190513-fix-multilib.patch
+       "${FILESDIR}"/${PN}-1.0.93_p20190513-lua-version.patch
+       "${FILESDIR}"/${PN}-1.0.93_p20190513-cmake-4.patch
+)
+
+src_configure() {
+       local mycmakeargs=(
+               -DLUA_VERSION=$(ver_cut 1-2 $(lua_get_version))
+       )
+       cmake_src_configure
+}

Reply via email to