dev-lua/luaposix: add 36.3

Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
This commit is contained in:
Conrad Kostecki
2025-03-01 02:13:12 +01:00
parent 82d25094cb
commit 6849facb12
2 changed files with 74 additions and 0 deletions

View File

@@ -1 +1,2 @@
DIST luaposix-36.2.1.tar.gz 188010 BLAKE2B 7f1d3cf0d766e32433f4946be92f3f0036652ae09e4816c8423e65ce47237b20151fec8ffa3d4b32079b247a98cb79f9c35758aff3c56c116b903a3b44c2c550 SHA512 cd7deeaa9179306f90bafdc6cfb2668cf42d5378e72e5baa09419198f2d42c5eab5d881e5584ac511f317bbfd850f2ad46b8cb743f1ae5e1a96f8153e03599d8
DIST luaposix-36.3.tar.gz 189299 BLAKE2B 2d19844499dd48e71cd86216ee5bc27857a5d96586722f8395c7558c54c95a65c5675df6fe5c150f6d096b582a9cc1d3834a0731c9b865bbb66add9983006b30 SHA512 a2ad040089e2d334fe3e73ee1fb4cc741287e180962f54c0fbf9f74a0b4fd648eabef85f1d3260d904e1ba7072cdc3388d08c868da81c79f5a446004db92b7ef

View File

@@ -0,0 +1,73 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
LUA_COMPAT=( lua5-{1..4} luajit )
inherit lua toolchain-funcs
DESCRIPTION="Bindings for POSIX APIs"
HOMEPAGE="https://luaposix.github.io/luaposix/ https://github.com/luaposix/luaposix"
SRC_URI="https://github.com/luaposix/luaposix/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~riscv-linux ~x86-linux"
IUSE="doc"
REQUIRED_USE="${LUA_REQUIRED_USE}"
# Requires specl, which is not in the tree yet
RESTRICT="test"
DEPEND="${LUA_DEPS}
virtual/libcrypt:=
"
RDEPEND="${DEPEND}
lua_targets_lua5-1? ( dev-lua/lua-bit32[lua_targets_lua5-1(-)] )
lua_targets_luajit? ( dev-lua/lua-bit32[lua_targets_luajit(-)] )
"
BDEPEND="virtual/pkgconfig"
src_prepare() {
default
lua_copy_sources
}
lua_src_compile() {
pushd "${BUILD_DIR}" || die
# LDOC=true means disable ldoc update documentation
./build-aux/luke --verbose package="${PN}" version="${PV}" \
LDOC=true \
PREFIX="${ED}/usr" \
INST_LIBDIR="${ED}/$(lua_get_cmod_dir)" \
INST_LUADIR="${ED}/$(lua_get_lmod_dir)" \
LUA_INCDIR="${EPREFIX}/$(lua_get_include_dir)" \
CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" CC="$(tc-getCC)" || die
popd || die
}
src_compile() {
lua_foreach_impl lua_src_compile
}
lua_src_install() {
pushd "${BUILD_DIR}" || die
./build-aux/luke install \
LDOC=true \
PREFIX="${ED}/usr" \
INST_LIBDIR="${ED}/$(lua_get_cmod_dir)" \
INST_LUADIR="${ED}/$(lua_get_lmod_dir)" \
|| die
popd || die
}
src_install() {
lua_foreach_impl lua_src_install
dodoc {NEWS,README}.md
use doc && dodoc -r doc
}