dev-lua/luafilesystem: add 1.9.0

Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
This commit is contained in:
Conrad Kostecki
2026-02-08 00:44:34 +01:00
parent c10691c830
commit fbd3b02e9f
2 changed files with 83 additions and 0 deletions

View File

@@ -1 +1,2 @@
DIST luafilesystem-1.8.0.tar.gz 30374 BLAKE2B 396dc1a4604b88d9a0cfccf252623a65bcd45859547a56d3d860efd2b960329696ff92cb63064c12ee56ed234e04d881b5ca876154b3bd714d39f6ed9da79986 SHA512 79d964f13ae43716281dc8521d2f128b22f2261234c443e242b857cfdf621e208bdf4512f8ba710baa113e9b3b71e2544609de65e2c483f569c243a5cf058247
DIST luafilesystem-1.9.0.tar.gz 29279 BLAKE2B 610c4f4d53ef8222f0a74e6690da1fd7b40d0085f3b5915e64858b6ab91899e310429ea94889103e9e00b728b52ae25349aba2550309a870a8af21cf9e34c523 SHA512 753ae633966364835b9c81a020cf0b7674da443adeafee70b7a9637571a8180c7f1526d3b7f4bea4f85ec201e8609ebd93e82e309b54cff1e7b7dcb5e6481b39

View File

@@ -0,0 +1,82 @@
# Copyright 1999-2026 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
MY_PV=${PV//./_}
DESCRIPTION="File System Library for the Lua programming language"
HOMEPAGE="https://keplerproject.github.io/luafilesystem/"
SRC_URI="https://github.com/keplerproject/${PN}/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${PN}-${MY_PV}"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86"
IUSE="test"
REQUIRED_USE="${LUA_REQUIRED_USE}"
RESTRICT="!test? ( test )"
RDEPEND="${LUA_DEPS}"
DEPEND="${RDEPEND}"
BDEPEND="
virtual/pkgconfig
test? ( ${RDEPEND} )
"
HTML_DOCS=( "docs/." )
lua_src_prepare() {
pushd "${BUILD_DIR}" || die
cat > "config-${ELUA}" <<-EOF
CC=$(tc-getCC)
DESTDIR=${ED}
CFLAGS=${CFLAGS} $(lua_get_CFLAGS) -fPIC
LIB_OPTION=${LDFLAGS} -shared
LUA_LIBDIR=$(lua_get_cmod_dir)
EOF
popd
}
src_prepare() {
default
lua_copy_sources
lua_foreach_impl lua_src_prepare
}
lua_src_compile() {
pushd "${BUILD_DIR}" || die
emake CONFIG="config-${ELUA}"
popd
}
src_compile() {
lua_foreach_impl lua_src_compile
}
lua_src_test() {
pushd "${BUILD_DIR}" || die
LUA_CPATH="${BUILD_DIR}/src/?.so" ${ELUA} tests/test.lua || die
popd
}
src_test() {
lua_foreach_impl lua_src_test
}
lua_src_install() {
pushd "${BUILD_DIR}" || die
emake CONFIG="config-${ELUA}" install
popd
}
src_install() {
lua_foreach_impl lua_src_install
einstalldocs
}