summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Zamarin <arthurzam@gentoo.org>2024-08-30 17:46:17 +0300
committerArthur Zamarin <arthurzam@gentoo.org>2024-08-30 17:50:47 +0300
commit8815c672d5935f0711f64a9bcbce4c58f4a6fd94 (patch)
tree2ad79e1c71728c9ea509b7df63109f7b9a6e17e2 /dev-lua
parentkde-plasma/libplasma: Empty revbump for $CATEGORY/$PN:6 stabilisation (diff)
downloadgentoo-8815c672d5935f0711f64a9bcbce4c58f4a6fd94.tar.gz
gentoo-8815c672d5935f0711f64a9bcbce4c58f4a6fd94.tar.bz2
gentoo-8815c672d5935f0711f64a9bcbce4c58f4a6fd94.zip
dev-lua/messagepack: add 0.5.4, EAPI=8
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'dev-lua')
-rw-r--r--dev-lua/messagepack/Manifest1
-rw-r--r--dev-lua/messagepack/messagepack-0.5.4.ebuild49
2 files changed, 50 insertions, 0 deletions
diff --git a/dev-lua/messagepack/Manifest b/dev-lua/messagepack/Manifest
index 7214b8587bf0..65f267282038 100644
--- a/dev-lua/messagepack/Manifest
+++ b/dev-lua/messagepack/Manifest
@@ -1 +1,2 @@
DIST messagepack-0.5.2_p20201025.tar.gz 19652 BLAKE2B 5f85081daf2ab7f57399cb47782fbde0dfd2afe9514fdb652da1ba0eacd832e5c0924258b788d919b0a07e227f37ee58a239004086e7d6759b4727922ea57d76 SHA512 245790163ec819438fd3426f59ab2e5672864be647748dace35155be712ad4eaf78f8d7228d5a0ce94bfb92f6a1d1071cf871483bf99e02ba18872c31b3d0682
+DIST messagepack-0.5.4.tar.bz2 18952 BLAKE2B f2632c4402b8a333deb4773543c60c7b7fd2a07601212b958b673fb4f10a603bbc6d3aa01b2674c0f23ff92ec6097473ae98deeb11c1c305bb31b10c06c7d0b8 SHA512 f40501beaa56b02a80070c8dc30ea49ae4e4ba9f6dd4a7d628c8c670915da3840c96d16451ab363b34fee239d00be41c9cee659b67b670f961bc59b99b945b53
diff --git a/dev-lua/messagepack/messagepack-0.5.4.ebuild b/dev-lua/messagepack/messagepack-0.5.4.ebuild
new file mode 100644
index 000000000000..41b7e3cc57d7
--- /dev/null
+++ b/dev-lua/messagepack/messagepack-0.5.4.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+LUA_COMPAT=( lua5-{1..4} luajit )
+MY_PN="lua-MessagePack"
+MY_P="${MY_PN}-${PV}"
+
+inherit lua
+
+DESCRIPTION="pure Lua implementation of the MessagePack serialization format"
+HOMEPAGE="https://fperrad.frama.io/lua-MessagePack"
+SRC_URI="https://framagit.org/fperrad/${MY_PN}/-/archive/${PV}/${MY_P}.tar.bz2 -> ${P}.tar.bz2"
+S=${WORKDIR}/${MY_P}
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+REQUIRED_USE="${LUA_REQUIRED_USE}"
+
+# Needed 'lua-TestMore' Lua module not in tree
+RESTRICT="test"
+
+RDEPEND="${LUA_DEPS}"
+BDEPEND="
+ virtual/pkgconfig
+ test? ( ${RDEPEND} )
+"
+
+src_compile() {
+ :;
+}
+
+lua_src_install() {
+ local myemakeargs=(
+ "LIBDIR=${ED}/$(lua_get_lmod_dir)"
+ "LUAVER=$(ver_cut 1-2 $(lua_get_version))"
+ )
+
+ emake "${myemakeargs[@]}" install
+}
+
+src_install() {
+ lua_foreach_impl lua_src_install
+
+ einstalldocs
+}