public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Conrad Kostecki" <conikost@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lua/luasystem/
Date: Sun, 15 Sep 2024 14:59:22 +0000 (UTC)	[thread overview]
Message-ID: <1726412271.2c4e7022e3d22607931e388eae3a3e772ba11195.conikost@gentoo> (raw)

commit:     2c4e7022e3d22607931e388eae3a3e772ba11195
Author:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
AuthorDate: Sun Sep 15 14:57:51 2024 +0000
Commit:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
CommitDate: Sun Sep 15 14:57:51 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2c4e7022

dev-lua/luasystem: add 0.4.4

Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>

 dev-lua/luasystem/Manifest               |  1 +
 dev-lua/luasystem/luasystem-0.4.4.ebuild | 89 ++++++++++++++++++++++++++++++++
 2 files changed, 90 insertions(+)

diff --git a/dev-lua/luasystem/Manifest b/dev-lua/luasystem/Manifest
index 42613a329eb6..6cd86b09494e 100644
--- a/dev-lua/luasystem/Manifest
+++ b/dev-lua/luasystem/Manifest
@@ -1,3 +1,4 @@
 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
 DIST luasystem-0.4.2.tar.gz 74837 BLAKE2B 09d307ab2764bc68eb0fe3aae2c556ca70490e738e3ffcd620f4b43d00c22f19d47c67014b7f14ae1d561a4a2bee8d4b79dee3a76a47c832af602cbe8f9186f0 SHA512 98681005dfcab3807a794eec78550903a2f39de59de39c92016bbd690215946f22c17fb802b40c7e12ad19ab846a118414ab082408b11559030c35fd69ac9314
+DIST luasystem-0.4.4.tar.gz 75423 BLAKE2B d38798fdc07bb5ee0c85832e17cb631820ce0cad88fd8d0c48b34c097c5280bdffa410adbfb6d97115c075891204b7a5609a423f5fa887f166597b8bcb50a52d SHA512 e2a5c1a242fcb8f50fe694d89a954a7d73d18507325fa316592289e25dbf8bcdff8f59ad5593937923def390962bb56046ef8d137869ad287a16c2b23534b032

diff --git a/dev-lua/luasystem/luasystem-0.4.4.ebuild b/dev-lua/luasystem/luasystem-0.4.4.ebuild
new file mode 100644
index 000000000000..1ea1339bdc05
--- /dev/null
+++ b/dev-lua/luasystem/luasystem-0.4.4.ebuild
@@ -0,0 +1,89 @@
+# Copyright 1999-2024 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 ~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}
+	)
+"
+
+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
+}


             reply	other threads:[~2024-09-15 14:59 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-15 14:59 Conrad Kostecki [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-07-14 12:30 [gentoo-commits] repo/gentoo:master commit in: dev-lua/luasystem/ Conrad Kostecki
2024-06-27 15:40 Conrad Kostecki
2024-06-10 20:39 William Hubbs
2023-12-23 21:51 Conrad Kostecki
2021-09-18 12:29 Marek Szuba
2021-04-22 19:31 Sergei Trofimovich
2021-04-21 21:03 Conrad Kostecki
2021-04-21 20:44 Conrad Kostecki
2021-04-20 21:20 Sergei Trofimovich
2021-03-16 17:37 Conrad Kostecki
2021-01-24  3:52 Sam James
2021-01-23 22:51 Sam James
2021-01-23 22:51 Sam James
2020-12-03 13:11 Marek Szuba
2020-11-30 13:33 Conrad Kostecki
2020-11-29 17:11 Sergei Trofimovich
2020-11-29 15:37 Conrad Kostecki
2020-11-29 15:37 Conrad Kostecki
2020-11-28 17:45 Conrad Kostecki
2020-11-28 17:45 Conrad Kostecki
2020-11-26 23:04 Sergei Trofimovich
2020-11-26  8:32 Sam James
2020-11-25 10:28 Thomas Deutschmann
2020-11-24  1:52 Sam James
2020-10-12 10:57 Conrad Kostecki
2018-12-29 12:10 Mikle Kolyada
2018-04-01 11:48 Mikle Kolyada
2018-03-27  8:06 Sergei Trofimovich
2018-03-27  7:31 Sergei Trofimovich
2017-03-16 10:27 Michael Palimaka
2017-01-07  1:52 Aaron Bauman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1726412271.2c4e7022e3d22607931e388eae3a3e772ba11195.conikost@gentoo \
    --to=conikost@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox