summaryrefslogtreecommitdiff
path: root/dev-lua/lua-zlib
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2020-11-14 00:50:02 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2020-11-14 00:50:02 +0000
commitdb2eef1268d67090b0bdcc3e2ad2f370f1690f99 (patch)
treec6b508d78555e261cff4a7a439609de65c822083 /dev-lua/lua-zlib
parent0338798db292a26786e0458eccbda88c29543c48 (diff)
downloadbaldeagleos-repo-db2eef1268d67090b0bdcc3e2ad2f370f1690f99.tar.gz
baldeagleos-repo-db2eef1268d67090b0bdcc3e2ad2f370f1690f99.tar.xz
baldeagleos-repo-db2eef1268d67090b0bdcc3e2ad2f370f1690f99.zip
Updating liguros repo
Diffstat (limited to 'dev-lua/lua-zlib')
-rw-r--r--dev-lua/lua-zlib/lua-zlib-1.2-r100.ebuild49
1 files changed, 49 insertions, 0 deletions
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 000000000000..1fbf98752889
--- /dev/null
+++ b/dev-lua/lua-zlib/lua-zlib-1.2-r100.ebuild
@@ -0,0 +1,49 @@
+# 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"
+REQUIRED_USE="${LUA_REQUIRED_USE}"
+
+RDEPEND="
+ sys-libs/zlib
+ ${LUA_DEPS}
+
+"
+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
+}