summaryrefslogtreecommitdiff
path: root/dev-lua/messagepack
diff options
context:
space:
mode:
Diffstat (limited to 'dev-lua/messagepack')
-rw-r--r--dev-lua/messagepack/Manifest1
-rw-r--r--dev-lua/messagepack/messagepack-0.3.2-r100.ebuild47
2 files changed, 48 insertions, 0 deletions
diff --git a/dev-lua/messagepack/Manifest b/dev-lua/messagepack/Manifest
index a5facd4b1461..9379c5012593 100644
--- a/dev-lua/messagepack/Manifest
+++ b/dev-lua/messagepack/Manifest
@@ -1,3 +1,4 @@
DIST lua-messagepack-0.3.2.tar.xz 13416 BLAKE2B 03d80c3a1fc8d8bfa30821f3b83ead61bc0a8ccf565d9ac17ca0b1d97ac7c72d0550695ee13feb6ff38cd8098fa331c3acaf4b52c0f95bfc3141b70a655ba9df SHA512 d5b0193f157ea5ce4df6fa54fab3662c279bdf03679ba4e5f9d4341875c66c4a96a5f11fd68e06a92fe2c47681584708dc79b9a9337356391c41f4de76c6ddcd
+EBUILD messagepack-0.3.2-r100.ebuild 978 BLAKE2B a53ba1880589a4919da703cd41d1cc9bffc4e3e492e6c49a9c84c882ac4bf031f638550a345be5c82f7d98c582eb66fa91150cc0c6d0a227c0b9136942e3e1ed SHA512 40b43b12bdfeb03c3067a4a0f583cd9ee82ccf6d8df728b1441ce72988e4c07d4ce5f069c33f5a0f9983de9f44f0bc57da66d6ccce31d6b8f17eec10ecf09f48
EBUILD messagepack-0.3.2.ebuild 688 BLAKE2B e4c72a03d21716dc334d6c0b6a028fe8a038d33998f75fdeaba53981632bcf611ac4e430356e9ee5c1d07c0ed5a212ad1edf8c4cb1e4700749dea4d62c90ddbc SHA512 d2eeeffe2fe4c8596924b0655108854f1798a4b0dcb5136415a6065f01da145eb1c448fd74ded4cb94e63fdbfcc7f45553191daa0d3c80f494559f7092b80772
MISC metadata.xml 167 BLAKE2B e4dadf27fd344484f2bccb5b904909c89aac568c32e5b3c44bdf139eacefd4b4fae74419f503d2b7da0dccc1b68ba05d777d11292c0f89270d1ac5c9c703e8ca SHA512 7c8decb24ee3a850e38186cf3c7f8933a28017426806870ad6ef9ceb2533be147a2681fc789b535a81cb528af8c29d90d3006e4f250aee23bd7dea4561294e33
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
+}