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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 397C1158015 for ; Sat, 23 Dec 2023 21:51:37 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7A9C52BC095; Sat, 23 Dec 2023 21:51:36 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 5D4452BC095 for ; Sat, 23 Dec 2023 21:51:36 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A053B33D0AF for ; Sat, 23 Dec 2023 21:51:35 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0949914AA for ; Sat, 23 Dec 2023 21:51:33 +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: <1703368280.ced698bbf263237f8d80253e0f62f5ee8098c80e.conikost@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lua/luasystem/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-lua/luasystem/Manifest dev-lua/luasystem/luasystem-0.3.0.ebuild dev-lua/luasystem/metadata.xml X-VCS-Directories: dev-lua/luasystem/ X-VCS-Committer: conikost X-VCS-Committer-Name: Conrad Kostecki X-VCS-Revision: ced698bbf263237f8d80253e0f62f5ee8098c80e X-VCS-Branch: master Date: Sat, 23 Dec 2023 21:51:33 +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: a4c2c04d-1d47-4ec7-90e1-49242d5a1f0d X-Archives-Hash: 8059fae3c0155aa96cd6f569c8b217e1 commit: ced698bbf263237f8d80253e0f62f5ee8098c80e Author: Conrad Kostecki gentoo org> AuthorDate: Sat Dec 23 21:46:08 2023 +0000 Commit: Conrad Kostecki gentoo org> CommitDate: Sat Dec 23 21:51:20 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ced698bb dev-lua/luasystem: add 0.3.0 Signed-off-by: Conrad Kostecki gentoo.org> dev-lua/luasystem/Manifest | 1 + dev-lua/luasystem/luasystem-0.3.0.ebuild | 91 ++++++++++++++++++++++++++++++++ dev-lua/luasystem/metadata.xml | 1 + 3 files changed, 93 insertions(+) diff --git a/dev-lua/luasystem/Manifest b/dev-lua/luasystem/Manifest index c1feeb4a855b..75382dfd485e 100644 --- a/dev-lua/luasystem/Manifest +++ b/dev-lua/luasystem/Manifest @@ -1 +1,2 @@ DIST luasystem-0.2.1_p0.tar.gz 8162 BLAKE2B ad8a6009823ad8202ff3884a3167d0779405c2a6be460b7ef2939622eb4d0fc8edbc6b04aba5dec9dd5e4e38f11ae0dcd582b9c348d5b516aa411858d55c6d71 SHA512 9dc323d4d1914cfa4f278a49ef22e58569d5cd7e369fa17fa6006cd47f9d90c6dfd4404067ea2436aa46a27cfbdf91e4aa26e20b89aeeefdf2aa7252c51fb32b +DIST luasystem-0.3.0.tar.gz 19607 BLAKE2B 82dd54dab61045d25d9d1dc074526c2443b9732adf27da052f65702f0941a04dce65582091b5ecb802e5aed9baa2f4dbd53e4cd1b624426341a83fbcb0109378 SHA512 1adf1167767d7d8233ed2c90c106b050dc2370e891465eeb13f16ebc96e8f467d67a89a40173064112117ac9db2451aa73fde0d11fab01f6d2c56bdef50cb6ac diff --git a/dev-lua/luasystem/luasystem-0.3.0.ebuild b/dev-lua/luasystem/luasystem-0.3.0.ebuild new file mode 100644 index 000000000000..ee1ca807ef71 --- /dev/null +++ b/dev-lua/luasystem/luasystem-0.3.0.ebuild @@ -0,0 +1,91 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +LUA_COMPAT=( lua5-{1..4} luajit ) +MY_PV="${PV/_p/-}" + +inherit lua toolchain-funcs + +DESCRIPTION="Platform independent system calls for Lua" +HOMEPAGE="https://github.com/lunarmodules/luasystem" +SRC_URI="https://github.com/lunarmodules/${PN}/archive/refs/tags/v${MY_PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/${PN}-${MY_PV}" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86" +IUSE="test" +REQUIRED_USE="${LUA_REQUIRED_USE}" +RESTRICT="!test? ( test )" + +RDEPEND="${LUA_DEPS}" +DEPEND="${RDEPEND}" +BDEPEND=" + virtual/pkgconfig + test? ( + dev-lua/busted[${LUA_USEDEP}] + dev-lua/lua_cliargs[${LUA_USEDEP}] + ${RDEPEND} + ) +" + +PATCHES=( "${FILESDIR}"/${PN}-0.2.1_p0-fix-makefile.patch ) + +src_prepare() { + default + + lua_copy_sources +} + +lua_src_test() { + busted --lua=${ELUA} || die +} + +src_test() { + lua_foreach_impl lua_src_test +} + +lua_src_compile() { + pushd "${BUILD_DIR}" || die + + local myemakeargs=( + "CC=$(tc-getCC)" + "LD=$(tc-getCC)" + "LUAINC_linux=$(lua_get_include_dir)" + "MYCFLAGS=${CFLAGS}" + "MYLDFLAGS=${LDFLAGS}" + ) + + emake "${myemakeargs[@]}" linux + + popd +} + +src_compile() { + lua_foreach_impl lua_src_compile +} + +lua_src_install () { + pushd "${BUILD_DIR}" || die + + local emakeargs=( + "INSTALL_TOP_CDIR=${ED}/$(lua_get_cmod_dir)" + "INSTALL_TOP_LDIR=${ED}/$(lua_get_lmod_dir)" + "LUA_INC=${ED}/$(lua_get_include_dir)" + ) + + emake "${emakeargs[@]}" install + + insinto $(lua_get_lmod_dir)/system + doins system/init.lua + + popd +} + +src_install() { + lua_foreach_impl lua_src_install + + einstalldocs +} diff --git a/dev-lua/luasystem/metadata.xml b/dev-lua/luasystem/metadata.xml index 7f9fa1b5f4a9..4d95a0681768 100644 --- a/dev-lua/luasystem/metadata.xml +++ b/dev-lua/luasystem/metadata.xml @@ -15,5 +15,6 @@ LuaDist2/luasystem + lunarmodules/luasystem