diff options
| author | Conrad Kostecki <conikost@gentoo.org> | 2025-04-16 21:53:12 +0200 |
|---|---|---|
| committer | Conrad Kostecki <conikost@gentoo.org> | 2025-04-16 21:53:36 +0200 |
| commit | a1cb1c569b4554af35626e039c1f2522c7f70f92 (patch) | |
| tree | 4a349f2c8dd9e21479f550454f44dab679e90514 /dev-lua/lua-zlib/lua-zlib-1.3.ebuild | |
| parent | a8763251b5bede487cb32dbb51911fa4c5a3eecd (diff) | |
| download | gentoo-a1cb1c569b4554af35626e039c1f2522c7f70f92.tar.gz gentoo-a1cb1c569b4554af35626e039c1f2522c7f70f92.tar.bz2 gentoo-a1cb1c569b4554af35626e039c1f2522c7f70f92.zip | |
dev-lua/lua-zlib: add 1.3
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'dev-lua/lua-zlib/lua-zlib-1.3.ebuild')
| -rw-r--r-- | dev-lua/lua-zlib/lua-zlib-1.3.ebuild | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/dev-lua/lua-zlib/lua-zlib-1.3.ebuild b/dev-lua/lua-zlib/lua-zlib-1.3.ebuild new file mode 100644 index 000000000000..5a6c368aeb9e --- /dev/null +++ b/dev-lua/lua-zlib/lua-zlib-1.3.ebuild @@ -0,0 +1,50 @@ +# 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 cmake lua + +DESCRIPTION="Simple streaming interface to zlib for Lua" +HOMEPAGE="https://github.com/brimworks/lua-zlib" +SRC_URI="https://github.com/brimworks/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86" +REQUIRED_USE="${LUA_REQUIRED_USE}" + +RDEPEND=" + sys-libs/zlib + ${LUA_DEPS} + +" +DEPEND="${RDEPEND}" + +lua_src_configure() { + local mycmakeargs=( + -DINSTALL_CMOD="$(lua_get_cmod_dir)" + -DLUA_INCLUDE_DIR="$(lua_get_include_dir)" + -DUSE_LUA_VERSION="$(lua_get_version)" + ) + + if [[ ${ELUA} == luajit ]]; then + mycmakeargs+=( -DUSE_LUAJIT="ON" ) + fi + + cmake_src_configure +} + +src_configure() { + lua_foreach_impl lua_src_configure +} + +src_compile() { + lua_foreach_impl cmake_src_compile +} + +src_install() { + lua_foreach_impl cmake_src_install +} |
