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 5617213835A for ; Mon, 24 Aug 2020 14:39:09 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E4C67E0866; Mon, 24 Aug 2020 14:39:07 +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 7431FE0858 for ; Mon, 24 Aug 2020 14:39:07 +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 0EEE9340D49 for ; Mon, 24 Aug 2020 14:39:05 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 87A4531C for ; Mon, 24 Aug 2020 14:39:03 +0000 (UTC) From: "Joonas Niilola" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Joonas Niilola" Message-ID: <1598279924.1454027f487a9c9a37bbdc0b98151270659c8d8d.juippis@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.ebuild dev-lua/lua-bit32/metadata.xml X-VCS-Directories: dev-lua/lua-bit32/ X-VCS-Committer: juippis X-VCS-Committer-Name: Joonas Niilola X-VCS-Revision: 1454027f487a9c9a37bbdc0b98151270659c8d8d X-VCS-Branch: master Date: Mon, 24 Aug 2020 14:39:03 +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: 6c43e3ce-de7c-4282-b8e0-69dcc7594b86 X-Archives-Hash: b7d4e0a111b1234e0b82a83b68a3098b commit: 1454027f487a9c9a37bbdc0b98151270659c8d8d Author: Azamat H. Hackimov gmail com> AuthorDate: Thu Aug 6 16:48:14 2020 +0000 Commit: Joonas Niilola gentoo org> CommitDate: Mon Aug 24 14:38:44 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1454027f dev-lua/lua-bit32: new package Compatibility library for dev-lua/luaposix Package-Manager: Portage-2.3.103, Repoman-2.3.23 Signed-off-by: Azamat H. Hackimov gmail.com> Signed-off-by: Joonas Niilola gentoo.org> dev-lua/lua-bit32/Manifest | 1 + dev-lua/lua-bit32/lua-bit32-5.3.5.ebuild | 48 ++++++++++++++++++++++++++++++++ dev-lua/lua-bit32/metadata.xml | 15 ++++++++++ 3 files changed, 64 insertions(+) diff --git a/dev-lua/lua-bit32/Manifest b/dev-lua/lua-bit32/Manifest new file mode 100644 index 00000000000..e2a2c4db2bf --- /dev/null +++ b/dev-lua/lua-bit32/Manifest @@ -0,0 +1 @@ +DIST lua-compat53-0.9.tar.gz 53599 BLAKE2B 7d9efe0afb49c40a68b1d6c28f975080b3331e07d0aa788e0f1f77d5c360504a5cac9cca4e6074b2c64aa7ad8934df3fe2609ff8009db52b046b2f639b670213 SHA512 bec15b6e95cb5cc775785515eba1f094e453059a0ba1eefa433d328b823378b7f48d9c7a34080ad77478cffb2008bead93418f809793afa6021e6046562acc58 diff --git a/dev-lua/lua-bit32/lua-bit32-5.3.5.ebuild b/dev-lua/lua-bit32/lua-bit32-5.3.5.ebuild new file mode 100644 index 00000000000..82297b4fe6a --- /dev/null +++ b/dev-lua/lua-bit32/lua-bit32-5.3.5.ebuild @@ -0,0 +1,48 @@ +# Copyright 2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit toolchain-funcs + +DESCRIPTION="Backported Lua bit manipulation library" +HOMEPAGE="https://github.com/keplerproject/lua-compat-5.3" +# Wierd upstream version descisions... +# Result tarball may be reused for future lua-compat53 package +LUA_COMPAT_V=0.9 +SRC_URI="https://github.com/keplerproject/lua-compat-5.3/archive/v${LUA_COMPAT_V}.tar.gz -> lua-compat53-${LUA_COMPAT_V}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="test" + +RESTRICT="!test? ( test )" + +# Strictly for lua 5.1 +DEPEND="dev-lang/lua:0=" +RDEPEND="${DEPEND}" +BDEPEND="virtual/pkgconfig" + +S="${WORKDIR}/lua-compat-5.3-${LUA_COMPAT_V}" + +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 +} diff --git a/dev-lua/lua-bit32/metadata.xml b/dev-lua/lua-bit32/metadata.xml new file mode 100644 index 00000000000..32feba46305 --- /dev/null +++ b/dev-lua/lua-bit32/metadata.xml @@ -0,0 +1,15 @@ + + + + + azamat.hackimov@gmail.com + Azamat H. Hackimov + + + proxy-maint@gentoo.org + Proxy Maintainers + + + keplerproject/lua-compat-5.3 + +