summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-lang/nelua')
-rw-r--r--dev-lang/nelua/Manifest1
-rw-r--r--dev-lang/nelua/metadata.xml18
-rw-r--r--dev-lang/nelua/nelua-20240113.ebuild44
-rw-r--r--dev-lang/nelua/nelua-9999.ebuild44
4 files changed, 107 insertions, 0 deletions
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 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+
+<pkgmetadata>
+ <maintainer type="person">
+ <email>xgqt@gentoo.org</email>
+ <name>Maciej Barć</name>
+ </maintainer>
+ <longdescription>
+ 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.
+ </longdescription>
+ <upstream>
+ <bugs-to>https://github.com/edubart/nelua-lang/issues</bugs-to>
+ <remote-id type="github">edubart/nelua-lang</remote-id>
+ </upstream>
+</pkgmetadata>
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
+}