From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 984871584AD for ; Wed, 16 Apr 2025 19:53:47 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 672B5343161 for ; Wed, 16 Apr 2025 19:53:47 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 9B6841104B7; Wed, 16 Apr 2025 19:53:42 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 918841104B7 for ; Wed, 16 Apr 2025 19:53:42 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 4177B34313F for ; Wed, 16 Apr 2025 19:53:42 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9842822E5 for ; Wed, 16 Apr 2025 19:53:40 +0000 (UTC) From: "Conrad Kostecki" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Conrad Kostecki" Message-ID: <1744833216.a1cb1c569b4554af35626e039c1f2522c7f70f92.conikost@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lua/lua-zlib/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-lua/lua-zlib/Manifest dev-lua/lua-zlib/lua-zlib-1.3.ebuild X-VCS-Directories: dev-lua/lua-zlib/ X-VCS-Committer: conikost X-VCS-Committer-Name: Conrad Kostecki X-VCS-Revision: a1cb1c569b4554af35626e039c1f2522c7f70f92 X-VCS-Branch: master Date: Wed, 16 Apr 2025 19:53:40 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: b7542e45-ccdd-4b5b-8b74-c8e9b9d4ad5c X-Archives-Hash: 27cc2442906634bf71c4956a778f4c96 commit: a1cb1c569b4554af35626e039c1f2522c7f70f92 Author: Conrad Kostecki gentoo org> AuthorDate: Wed Apr 16 19:53:12 2025 +0000 Commit: Conrad Kostecki gentoo org> CommitDate: Wed Apr 16 19:53:36 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a1cb1c56 dev-lua/lua-zlib: add 1.3 Signed-off-by: Conrad Kostecki gentoo.org> dev-lua/lua-zlib/Manifest | 1 + dev-lua/lua-zlib/lua-zlib-1.3.ebuild | 50 ++++++++++++++++++++++++++++++++++++ 2 files changed, 51 insertions(+) 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 +}