From 376c99421c7deda7c2b7f924d89599f976ec742a Mon Sep 17 00:00:00 2001 From: Maciej Barć Date: Tue, 23 Jan 2024 20:41:58 +0100 Subject: dev-lang/nelua: new package; add 20240113 and live 9999 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maciej Barć --- dev-lang/nelua/Manifest | 1 + dev-lang/nelua/metadata.xml | 18 +++++++++++++++ dev-lang/nelua/nelua-20240113.ebuild | 44 ++++++++++++++++++++++++++++++++++++ dev-lang/nelua/nelua-9999.ebuild | 44 ++++++++++++++++++++++++++++++++++++ 4 files changed, 107 insertions(+) create mode 100644 dev-lang/nelua/Manifest create mode 100644 dev-lang/nelua/metadata.xml create mode 100644 dev-lang/nelua/nelua-20240113.ebuild create mode 100644 dev-lang/nelua/nelua-9999.ebuild (limited to 'dev-lang/nelua') diff --git a/dev-lang/nelua/Manifest b/dev-lang/nelua/Manifest new file mode 100644 index 000000000000..c082a18932c2 --- /dev/null +++ b/dev-lang/nelua/Manifest @@ -0,0 +1 @@ +DIST nelua-20240113.tar.gz 885879 BLAKE2B 9b2c7bbbcd626d153e879459c4ffc9b4a1673a71342c584d1e482d6eee5c0286833d17f773751df9326e73e57167f26827fb5de8ec822d4df77c59fbf076c91a SHA512 e81bd8ff73bd0b3d458353d64a12aec833717ff18e7a3360b6a16edc3900edc078d308ce464b67fdb3c2b2d16a06da4227e82d1f6ef74204a743f466dc85feb9 diff --git a/dev-lang/nelua/metadata.xml b/dev-lang/nelua/metadata.xml new file mode 100644 index 000000000000..3d1a31e468ce --- /dev/null +++ b/dev-lang/nelua/metadata.xml @@ -0,0 +1,18 @@ + + + + + + xgqt@gentoo.org + Maciej Barć + + + Nelua (stands for Native Extensible Lua) is a minimal, efficient, + statically-typed and meta-programmable systems programming language heavily + inspired by Lua, which compiles to C and native code. + + + https://github.com/edubart/nelua-lang/issues + edubart/nelua-lang + + diff --git a/dev-lang/nelua/nelua-20240113.ebuild b/dev-lang/nelua/nelua-20240113.ebuild new file mode 100644 index 000000000000..1c9a4a93c841 --- /dev/null +++ b/dev-lang/nelua/nelua-20240113.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs + +DESCRIPTION="Statically-typed systems programming language inspired by Lua" +HOMEPAGE="https://nelua.io/ + https://github.com/edubart/nelua-lang/" + +if [[ "${PV}" == *9999* ]] ; then + inherit git-r3 + + EGIT_REPO_URI="https://github.com/edubart/nelua-lang.git" +else + SRC_URI="https://github.com/edubart/nelua-lang/archive/refs/tags/${PV}.tar.gz + -> ${P}.tar.gz" + S="${WORKDIR}/nelua-lang-${PV}" + + KEYWORDS="~amd64 ~x86" +fi + +LICENSE="MIT" +SLOT="0" +IUSE="test" +RESTRICT="!test? ( test )" + +BDEPEND=" + test? ( + dev-lua/luacheck + ) +" + +DOCS=( CONTRIBUTING.md README.md ) + +src_compile() { + emake CC="$(tc-getCC)" +} + +src_install() { + emake DESTDIR="${ED}" PREFIX="/usr" install + einstalldocs +} diff --git a/dev-lang/nelua/nelua-9999.ebuild b/dev-lang/nelua/nelua-9999.ebuild new file mode 100644 index 000000000000..1c9a4a93c841 --- /dev/null +++ b/dev-lang/nelua/nelua-9999.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs + +DESCRIPTION="Statically-typed systems programming language inspired by Lua" +HOMEPAGE="https://nelua.io/ + https://github.com/edubart/nelua-lang/" + +if [[ "${PV}" == *9999* ]] ; then + inherit git-r3 + + EGIT_REPO_URI="https://github.com/edubart/nelua-lang.git" +else + SRC_URI="https://github.com/edubart/nelua-lang/archive/refs/tags/${PV}.tar.gz + -> ${P}.tar.gz" + S="${WORKDIR}/nelua-lang-${PV}" + + KEYWORDS="~amd64 ~x86" +fi + +LICENSE="MIT" +SLOT="0" +IUSE="test" +RESTRICT="!test? ( test )" + +BDEPEND=" + test? ( + dev-lua/luacheck + ) +" + +DOCS=( CONTRIBUTING.md README.md ) + +src_compile() { + emake CC="$(tc-getCC)" +} + +src_install() { + emake DESTDIR="${ED}" PREFIX="/usr" install + einstalldocs +} -- cgit v1.2.3-65-gdbad