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 673A813835A for ; Sun, 29 Nov 2020 18:49:39 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7FBC5E0844; Sun, 29 Nov 2020 18:49:38 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 6BF37E0844 for ; Sun, 29 Nov 2020 18:49:38 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 8DBE2341243 for ; Sun, 29 Nov 2020 18:49:33 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 046D4473 for ; Sun, 29 Nov 2020 18:49:32 +0000 (UTC) From: "Conrad Kostecki" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Conrad Kostecki" Message-ID: <1606675706.a953d9771f23a7f2646bdd23e7c194a5a5428fbd.conikost@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lua/mpack/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-lua/mpack/mpack-1.0.8.ebuild X-VCS-Directories: dev-lua/mpack/ X-VCS-Committer: conikost X-VCS-Committer-Name: Conrad Kostecki X-VCS-Revision: a953d9771f23a7f2646bdd23e7c194a5a5428fbd X-VCS-Branch: master Date: Sun, 29 Nov 2020 18:49:32 +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: 6a57ac43-1023-4005-ae02-5dbdfc32c866 X-Archives-Hash: b99cdefffb5ece27be44fe6e2bb5e1e8 commit: a953d9771f23a7f2646bdd23e7c194a5a5428fbd Author: Conrad Kostecki gentoo org> AuthorDate: Sun Nov 29 18:48:02 2020 +0000 Commit: Conrad Kostecki gentoo org> CommitDate: Sun Nov 29 18:48:26 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a953d977 dev-lua/mpack: bump to version 1.0.8 (non slotted lua) Package-Manager: Portage-3.0.9, Repoman-3.0.2 Signed-off-by: Conrad Kostecki gentoo.org> dev-lua/mpack/mpack-1.0.8.ebuild | 71 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) diff --git a/dev-lua/mpack/mpack-1.0.8.ebuild b/dev-lua/mpack/mpack-1.0.8.ebuild new file mode 100644 index 00000000000..d43aed70bcc --- /dev/null +++ b/dev-lua/mpack/mpack-1.0.8.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +MY_PN="lib${PN}-lua" + +inherit toolchain-funcs + +DESCRIPTION="Lua bindings for libmpack" +HOMEPAGE="https://github.com/libmpack/libmpack/" +SRC_URI="https://github.com/${MY_PN/-lua/}/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/${MY_PN}-${PV}" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~x86" +IUSE="luajit test" +RESTRICT="!test? ( test )" + +RDEPEND=" + dev-libs/libmpack + luajit? ( >=dev-lang/lua-5.1:= ) + !luajit? ( dev-lang/luajit:2= ) +" +DEPEND="${RDEPEND}" +BDEPEND=" + virtual/pkgconfig + test? ( + dev-lua/busted + ${RDEPEND} + ) +" + +src_compile() { + local myemakeargs=( + "CC=$(tc-getCC)" + "LUA_INCLUDE=$($(tc-getPKG_CONFIG) --cflags $(usex luajit 'luajit' 'lua'))" + "LUA_LIB=$($(tc-getPKG_CONFIG) --libs $(usex luajit 'luajit' 'lua'))" + "USE_SYSTEM_MPACK=yes" + "USE_SYSTEM_LUA=yes" + ) + + emake "${myemakeargs[@]}" +} + +src_test() { + if use luajit; then + # "[ FAILED ] test.lua @ 279: mpack should not leak memory" + # It doesn't seem upstream actually support LuaJIT so were this up to me + # I would drop it from LUA_COMPAT, unfortunately there are packages in the + # tree which currently expect it to be supported. + ewarn "Not running tests under ${ELUA} because they are known to fail" + return + else + busted --lua=lua test.lua || die + fi +} + +src_install() { + local myemakeargs=( + "DESTDIR=${ED}" + "LUA_CMOD_INSTALLDIR=$($(tc-getPKG_CONFIG) --variable INSTALL_CMOD $(usex luajit 'luajit' 'lua'))" + "USE_SYSTEM_MPACK=yes" + "USE_SYSTEM_LUA=yes" + ) + + emake "${myemakeargs[@]}" install + + einstalldocs +}