summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Szuba <marecki@gentoo.org>2020-10-13 15:38:58 +0200
committerMarek Szuba <marecki@gentoo.org>2020-10-13 18:47:30 +0200
commit67c9145df03f3d7bf50c61baa44fa3d9dce7cb82 (patch)
treec141ae46b6ff3f758711a7c460548e3afbcca3e3 /dev-lua/messagepack
parentdev-lua/luv: migrate to lua-single.eclass (diff)
downloadgentoo-67c9145df03f3d7bf50c61baa44fa3d9dce7cb82.tar.gz
gentoo-67c9145df03f3d7bf50c61baa44fa3d9dce7cb82.tar.bz2
gentoo-67c9145df03f3d7bf50c61baa44fa3d9dce7cb82.zip
dev-lua/messagepack: migrate to lua.eclass
A pure-Lua module so simple enough. Signed-off-by: Marek Szuba <marecki@gentoo.org>
Diffstat (limited to 'dev-lua/messagepack')
-rw-r--r--dev-lua/messagepack/messagepack-0.3.2-r100.ebuild47
1 files changed, 47 insertions, 0 deletions
diff --git a/dev-lua/messagepack/messagepack-0.3.2-r100.ebuild b/dev-lua/messagepack/messagepack-0.3.2-r100.ebuild
new file mode 100644
index 000000000000..d9897a706c27
--- /dev/null
+++ b/dev-lua/messagepack/messagepack-0.3.2-r100.ebuild
@@ -0,0 +1,47 @@
+# 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 lua
+
+DESCRIPTION="A pure Lua implementation of the MessagePack serialization format"
+HOMEPAGE="http://fperrad.github.io/lua-MessagePack/"
+SRC_URI="https://dev.gentoo.org/~yngwin/distfiles/lua-${P}.tar.xz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+# Requires lua-TestMore, which we currently haven't got in the tree
+RESTRICT=test
+
+DEPEND="${LUA_DEPS}"
+RDEPEND="${DEPEND}"
+BDEPEND="virtual/pkgconfig"
+
+REQUIRED_USE="${LUA_REQUIRED_USE}"
+
+lua_src_install() {
+ local src_postfix=""
+ if [[ ${ELUA} != luajit ]] && $(ver_test $(lua_get_version) -ge 5.3); then
+ src_postfix="5.3"
+ fi
+
+ insinto "$(lua_get_lmod_dir)"
+ doins src${src_postfix}/MessagePack.lua
+}
+
+# nothing to compile
+src_compile() { :; }
+
+src_test() {
+ lua_foreach_impl default
+}
+
+src_install() {
+ lua_foreach_impl lua_src_install
+ dodoc CHANGES README.md
+}