* [gentoo-commits] repo/gentoo:master commit in: profiles/, dev-lua/lua-zlib/
@ 2020-11-13 21:18 Conrad Kostecki
0 siblings, 0 replies; only message in thread
From: Conrad Kostecki @ 2020-11-13 21:18 UTC (permalink / raw
To: gentoo-commits
commit: a34ff1ecd522eab43186d0152c29757ed26d408c
Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
AuthorDate: Fri Nov 13 21:18:06 2020 +0000
Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
CommitDate: Fri Nov 13 21:18:51 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a34ff1ec
dev-lua/lua-zlib: migrate to lua eclass
Closes: https://bugs.gentoo.org/752630
Package-Manager: Portage-3.0.9, Repoman-3.0.2
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>
dev-lua/lua-zlib/lua-zlib-1.2-r100.ebuild | 44 +++++++++++++++++++++++++++++++
profiles/package.mask | 1 +
2 files changed, 45 insertions(+)
diff --git a/dev-lua/lua-zlib/lua-zlib-1.2-r100.ebuild b/dev-lua/lua-zlib/lua-zlib-1.2-r100.ebuild
new file mode 100644
index 00000000000..51adad6b25f
--- /dev/null
+++ b/dev-lua/lua-zlib/lua-zlib-1.2-r100.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+LUA_COMPAT=( lua5-{1..3} 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 ~x86"
+
+RDEPEND="sys-libs/zlib"
+DEPEND="${RDEPEND}"
+
+lua_src_configure() {
+ local mycmakeargs=(
+ -DINSTALL_CMOD="$(lua_get_cmod_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
+}
diff --git a/profiles/package.mask b/profiles/package.mask
index 5d826a5dde9..bc5cdfd8738 100644
--- a/profiles/package.mask
+++ b/profiles/package.mask
@@ -337,6 +337,7 @@ dev-lua/luacrypto
# Added sci-visualization/gnuplot.
>=app-misc/worker-3.8.3-r100
=dev-libs/efl-1.25.1-r10
+>=dev-lua/lua-zlib-1.2-r100
>=dev-lua/luv-1.32.0.0-r100
>=dev-lua/luadbi-0.7.2-r100
>=dev-lua/lutok-0.4-r10
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2020-11-13 21:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-11-13 21:18 [gentoo-commits] repo/gentoo:master commit in: profiles/, dev-lua/lua-zlib/ Conrad Kostecki
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox