dev-lua/lutok: add 0.6

Signed-off-by: Mike Gilbert <floppym@gentoo.org>
This commit is contained in:
Mike Gilbert
2025-01-12 00:12:38 -05:00
parent 4870dfd40a
commit dbf490d229
2 changed files with 56 additions and 0 deletions
+1
View File
@@ -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
+55
View File
@@ -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
}