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 5517A138359 for ; Sun, 18 Oct 2020 13:27:31 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AE43EE0985; Sun, 18 Oct 2020 13:27:30 +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 8CD1DE097D for ; Sun, 18 Oct 2020 13:27:30 +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 32459340E0D for ; Sun, 18 Oct 2020 13:27:29 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9DC42366 for ; Sun, 18 Oct 2020 13:27:27 +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: <1603026719.714cf5b1ea59db1e077e8ac9f6fa591b168a469a.conikost@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lua/lua-bit32/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-lua/lua-bit32/Manifest dev-lua/lua-bit32/lua-bit32-5.3.5-r2.ebuild X-VCS-Directories: dev-lua/lua-bit32/ X-VCS-Committer: conikost X-VCS-Committer-Name: Conrad Kostecki X-VCS-Revision: 714cf5b1ea59db1e077e8ac9f6fa591b168a469a X-VCS-Branch: master Date: Sun, 18 Oct 2020 13:27:27 +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: f5d102b6-0d8a-4b3d-81ea-beec24d28731 X-Archives-Hash: 5d099df7a7b66a2b3df9d244996a10d2 commit: 714cf5b1ea59db1e077e8ac9f6fa591b168a469a Author: Conrad Kostecki gentoo org> AuthorDate: Sun Oct 18 13:11:59 2020 +0000 Commit: Conrad Kostecki gentoo org> CommitDate: Sun Oct 18 13:11:59 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=714cf5b1 dev-lua/lua-bit32: bump to newest version Package-Manager: Portage-3.0.8, Repoman-3.0.1 Signed-off-by: Conrad Kostecki gentoo.org> dev-lua/lua-bit32/Manifest | 1 + dev-lua/lua-bit32/lua-bit32-5.3.5-r2.ebuild | 49 +++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+) diff --git a/dev-lua/lua-bit32/Manifest b/dev-lua/lua-bit32/Manifest index e2a2c4db2bf..ff46965f4b2 100644 --- a/dev-lua/lua-bit32/Manifest +++ b/dev-lua/lua-bit32/Manifest @@ -1 +1,2 @@ +DIST lua-compat53-0.10.tar.gz 53695 BLAKE2B e570aedb23b8ed7ca38c4316ffab25b93a0f9f6f0fae79af563ca8a81dd6453ac273e1f9e70674c484a2dec68749e7d53a1c1736a72616c210b8e38a31b3f191 SHA512 f7f39085f4f6b16095f41e635b4c5477b3dab5e42b5b65a9d522941a3807ea521d4a27a77293a3c9d0ecea78a1f6c2a2497394b2d220f4d7d65e23510563d46d DIST lua-compat53-0.9.tar.gz 53599 BLAKE2B 7d9efe0afb49c40a68b1d6c28f975080b3331e07d0aa788e0f1f77d5c360504a5cac9cca4e6074b2c64aa7ad8934df3fe2609ff8009db52b046b2f639b670213 SHA512 bec15b6e95cb5cc775785515eba1f094e453059a0ba1eefa433d328b823378b7f48d9c7a34080ad77478cffb2008bead93418f809793afa6021e6046562acc58 diff --git a/dev-lua/lua-bit32/lua-bit32-5.3.5-r2.ebuild b/dev-lua/lua-bit32/lua-bit32-5.3.5-r2.ebuild new file mode 100644 index 00000000000..9004734fa97 --- /dev/null +++ b/dev-lua/lua-bit32/lua-bit32-5.3.5-r2.ebuild @@ -0,0 +1,49 @@ +# Copyright 2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit toolchain-funcs + +# Weird upstream version descisions... +# Result tarball may be reused for future lua-compat53 package +LUA_COMPAT_PN="lua-compat-5.3" +LUA_COMPAT_PV="0.10" + +DESCRIPTION="Backported Lua bit manipulation library" +HOMEPAGE="https://github.com/keplerproject/lua-compat-5.3" +SRC_URI="https://github.com/keplerproject/${LUA_COMPAT_PN}/archive/v${LUA_COMPAT_PV}.tar.gz -> lua-compat53-${LUA_COMPAT_PV}.tar.gz" + +S="${WORKDIR}/${LUA_COMPAT_PN}-${LUA_COMPAT_PV}" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux" +IUSE="test" + +RESTRICT="!test? ( test )" + +DEPEND="dev-lang/lua:0=" +RDEPEND="${DEPEND}" +BDEPEND="virtual/pkgconfig" + +src_compile() { + # TODO maybe sometime there will be luarocks eclass... + compile="$(tc-getCC) ${CFLAGS} ${LDFLAGS} -fPIC -I/usr/include -c lbitlib.c -o lbitlib.o -DLUA_COMPAT_BITLIB -Ic-api" + einfo "${compile}" + eval "${compile}" || die + + link="$(tc-getCC) -shared ${LDFLAGS} -o bit32.so lbitlib.o" + einfo "${link}" + eval "${link}" || die +} + +src_test() { + LUA_CPATH=./?.so lua tests/test-bit32.lua || die +} + +src_install() { + exeinto $($(tc-getPKG_CONFIG) --variable INSTALL_CMOD lua) + doexe bit32.so + dodoc README.md +}