commit: dbf490d229867db663abdb97d47dac627ce20f68
Author: Mike Gilbert <floppym <AT> gentoo <DOT> org>
AuthorDate: Sun Jan 12 04:38:23 2025 +0000
Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Sun Jan 12 05:12:38 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dbf490d2
dev-lua/lutok: add 0.6
Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>
dev-lua/lutok/Manifest | 1 +
dev-lua/lutok/lutok-0.6.ebuild | 55 ++++++++++++++++++++++++++++++++++++++++++
2 files changed, 56 insertions(+)
diff --git a/dev-lua/lutok/Manifest b/dev-lua/lutok/Manifest
index 3e5ea1851b45..daf3fd0c8cab 100644
--- a/dev-lua/lutok/Manifest
+++ b/dev-lua/lutok/Manifest
@@ -1 +1,2 @@
DIST lutok-0.4.tar.gz 489570 BLAKE2B
b4bc26d9a4901901e6ca66a41bc42ccc2f82697ff14e64c1bea35b4a9ed08b6f13ecfa9aaabb54e25fb3e4f3aea03791c225c4c8fc6ed3e0387d34d933a228e9
SHA512
664f30099bfbb30978e24068a9232a4ff1b5b1839c601bf784f35f6bb1394558067495093a3b0343c94e756d2e4186a32a8227baf5934c15c45905f7c0a5d19c
+DIST lutok-0.6.tar.gz 47380 BLAKE2B
47f371dfa0cdc165398ad74b0d768d90c74c74ec4c7fa6fac747f915a5a35290a1e190950360c38d3f9165dcc1172aed0ababba3a84e33f54d52d83eea096e32
SHA512
b88d932ca151f72e48a0c6f3070418013e24083c142c745e35513406057686333f562e1fc159d5e35ca0e511b79e3c0b5dfd2431d050dc421b1e22283b88865d
diff --git a/dev-lua/lutok/lutok-0.6.ebuild b/dev-lua/lutok/lutok-0.6.ebuild
new file mode 100644
index 000000000000..3c7e1c9b70f8
--- /dev/null
+++ b/dev-lua/lutok/lutok-0.6.ebuild
@@ -0,0 +1,55 @@
+# Copyright 2017-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+LUA_COMPAT=( lua5-{3..4} )
+
+inherit autotools lua-single
+
+DESCRIPTION="Lightweight C++ API library for Lua"
+HOMEPAGE="https://github.com/freebsd/lutok"
+SRC_URI="https://github.com/freebsd/lutok/archive/refs/tags/${P}.tar.gz"
+S="${WORKDIR}/${PN}-${P}"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64
~riscv ~s390 ~sparc ~x86 ~ppc-macos ~x64-macos ~x64-solaris"
+IUSE="test"
+REQUIRED_USE="${LUA_REQUIRED_USE}"
+RESTRICT="!test? ( test )"
+
+BDEPEND="
+ virtual/pkgconfig
+ test? (
+ dev-libs/atf
+ dev-util/kyua
+ )
+"
+DEPEND="${LUA_DEPS}"
+RDEPEND="${DEPEND}"
+
+pkg_setup() {
+ :
+}
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+src_configure() {
+ lua_setup
+ local myconf=(
+ --enable-shared
+ --disable-static
+ $(use_enable test atf)
+ LUA_VERSION="${ELUA#lua}"
+ )
+ econf "${myconf[@]}"
+}
+
+src_install() {
+ default
+ rm -rf "${ED}"/usr/tests || die
+ find "${ED}" -name '*.la' -type f -delete || die
+}