From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 0A665138359 for ; Tue, 13 Oct 2020 16:55:24 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0DEFDE088D; Tue, 13 Oct 2020 16:55:23 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E66CBE088D for ; Tue, 13 Oct 2020 16:55:22 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id EB07D33BE4E for ; Tue, 13 Oct 2020 16:55:21 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 65F34395 for ; Tue, 13 Oct 2020 16:55:20 +0000 (UTC) From: "Marek Szuba" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Marek Szuba" Message-ID: <1602607650.67c9145df03f3d7bf50c61baa44fa3d9dce7cb82.marecki@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lua/messagepack/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-lua/messagepack/messagepack-0.3.2-r100.ebuild X-VCS-Directories: dev-lua/messagepack/ X-VCS-Committer: marecki X-VCS-Committer-Name: Marek Szuba X-VCS-Revision: 67c9145df03f3d7bf50c61baa44fa3d9dce7cb82 X-VCS-Branch: master Date: Tue, 13 Oct 2020 16:55:20 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 376e9354-0ade-4094-9a65-e5ca4533d4fa X-Archives-Hash: e6f9de0bd5064aba7f9fda974d0ade3e commit: 67c9145df03f3d7bf50c61baa44fa3d9dce7cb82 Author: Marek Szuba gentoo org> AuthorDate: Tue Oct 13 13:38:58 2020 +0000 Commit: Marek Szuba gentoo org> CommitDate: Tue Oct 13 16:47:30 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=67c9145d dev-lua/messagepack: migrate to lua.eclass A pure-Lua module so simple enough. Signed-off-by: Marek Szuba gentoo.org> dev-lua/messagepack/messagepack-0.3.2-r100.ebuild | 47 +++++++++++++++++++++++ 1 file changed, 47 insertions(+) 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 00000000000..d9897a706c2 --- /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 +}