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 | |
| 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')
| -rw-r--r-- | dev-lua/lua-zlib/Manifest | 1 | ||||
| -rw-r--r-- | dev-lua/lua-zlib/lua-zlib-1.3.ebuild | 50 |
2 files changed, 51 insertions, 0 deletions
diff --git a/dev-lua/lua-zlib/Manifest b/dev-lua/lua-zlib/Manifest index 581fe51d0237..5508ff84f2a8 100644 --- a/dev-lua/lua-zlib/Manifest +++ b/dev-lua/lua-zlib/Manifest @@ -1 +1,2 @@ DIST lua-zlib-1.2.tar.gz 16612 BLAKE2B ca2ff51c97929fac0918de3902a175eda583da3ca415f9eff5e68a9c3ba0414827c3a96b968e9fcbccbe9612b1ade3fdc4498e50c4df53b0fa768912f428a287 SHA512 da13239089c1027b0bfb4ee463043b326ef5586206c5d76af8707736da3c03622b2fc38e732761a5b7a6422ad81a09557abc8548f37fef07ada0d4064eabfcf4 +DIST lua-zlib-1.3.tar.gz 18840 BLAKE2B b273d5475b97d8eb25dae60e80091bf3d62093be4e7721e906e1974f3acf640e095f2f953d9a2ef48343e74c192a16d435c2a8b6d3f9ca3064dc5710eaa2fdd2 SHA512 e65ddb4e4361a9594c9dd96bb649f0c274369fb18e1e8a25ae38a08a2d534069e669e29d15fa486d003598988fb642503ad9062c8abd7739b9f03b5f345d03e4 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 +} |
