From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 51ED813835A for ; Tue, 13 Oct 2020 16:55:25 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 89AE8E0909; Tue, 13 Oct 2020 16:55:24 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 73B1BE0909 for ; Tue, 13 Oct 2020 16:55:24 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0974533BE99 for ; Tue, 13 Oct 2020 16:55:22 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 78A6E3A1 for ; Tue, 13 Oct 2020 16:55:20 +0000 (UTC) From: "Marek Szuba" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Marek Szuba" Message-ID: <1602607654.3af402bb34f314334ec7496a9fec777e197b7b99.marecki@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lua/toluapp/, dev-lua/toluapp/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-lua/toluapp/files/toluapp-1.0.93_p20190513-lua-version.patch dev-lua/toluapp/toluapp-1.0.93_p20190513-r100.ebuild X-VCS-Directories: dev-lua/toluapp/ dev-lua/toluapp/files/ X-VCS-Committer: marecki X-VCS-Committer-Name: Marek Szuba X-VCS-Revision: 3af402bb34f314334ec7496a9fec777e197b7b99 X-VCS-Branch: master Date: Tue, 13 Oct 2020 16:55:20 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 6b739740-30c6-46c3-944c-f0593615e81d X-Archives-Hash: 6919f8b2a51727c6220cac6679b447ce commit: 3af402bb34f314334ec7496a9fec777e197b7b99 Author: Marek Szuba gentoo org> AuthorDate: Tue Oct 13 14:00:04 2020 +0000 Commit: Marek Szuba gentoo org> CommitDate: Tue Oct 13 16:47:34 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3af402bb dev-lua/toluapp: migrate to lua-single.eclass Does not support Lua versions newer than 5.1 so didn't even bother adapting this to multi-impl. Signed-off-by: Marek Szuba gentoo.org> .../toluapp-1.0.93_p20190513-lua-version.patch | 11 ++++++ .../toluapp/toluapp-1.0.93_p20190513-r100.ebuild | 40 ++++++++++++++++++++++ 2 files changed, 51 insertions(+) diff --git a/dev-lua/toluapp/files/toluapp-1.0.93_p20190513-lua-version.patch b/dev-lua/toluapp/files/toluapp-1.0.93_p20190513-lua-version.patch new file mode 100644 index 00000000000..fda6c253c2e --- /dev/null +++ b/dev-lua/toluapp/files/toluapp-1.0.93_p20190513-lua-version.patch @@ -0,0 +1,11 @@ +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -8,7 +8,7 @@ + cmake_minimum_required ( VERSION 2.8 ) + include ( cmake/dist.cmake ) + +-find_package ( Lua REQUIRED ) ++find_package ( Lua ${LUA_VERSION} EXACT REQUIRED ) + include_directories ( include src/lib ${LUA_INCLUDE_DIR} ) + + # Build lib diff --git a/dev-lua/toluapp/toluapp-1.0.93_p20190513-r100.ebuild b/dev-lua/toluapp/toluapp-1.0.93_p20190513-r100.ebuild new file mode 100644 index 00000000000..ab25d1fac8d --- /dev/null +++ b/dev-lua/toluapp/toluapp-1.0.93_p20190513-r100.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +# Newer Lua versions are NOT supported, see Bug #508222 +LUA_COMPAT=( lua5-1 ) + +inherit cmake lua-single + +MY_PN=${PN/pp/++} +COMMIT_ID="b34075b76835b778bb6b2ce0aa224afd9d182887" + +DESCRIPTION="A 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" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86" + +REQUIRED_USE="${LUA_REQUIRED_USE}" + +RDEPEND="${LUA_DEPS}" +DEPEND="${RDEPEND}" + +S="${WORKDIR}/${PN}-${COMMIT_ID}" + +PATCHES=( + "${FILESDIR}"/${PN}-1.0.93_p20190513-fix-multilib.patch + "${FILESDIR}"/${PN}-1.0.93_p20190513-lua-version.patch +) +CMAKE_REMOVE_MODULES_LIST="dist.cmake lua.cmake FindLua.cmake" + +src_configure() { + local mycmakeargs=( + -DLUA_VERSION=$(ver_cut 1-2 $(lua_get_version)) + ) + cmake_src_configure +}