diff options
Diffstat (limited to 'dev-lua')
-rw-r--r-- | dev-lua/messagepack/Manifest | 1 | ||||
-rw-r--r-- | dev-lua/messagepack/messagepack-0.5.4.ebuild | 49 |
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 +} |