dev-lua/croissant: new package, add 0.0.1

Signed-off-by: Suleyman Farajli <suleyman@farajli.net>
This commit is contained in:
Suleyman Farajli
2025-07-07 21:06:36 +04:00
parent 711e1e237f
commit 5b20920d87
3 changed files with 62 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST croissant-0.0.1.tar.gz 374425 BLAKE2B 54f6bd31d703b6a8383afcfe2d22b84c42b0543149df73c7e8e25d0fd97a59988867f0bd38d38aeed65fb222c31ac6a5a757fbb51041b3f288c6b0e193181ce1 SHA512 98fee3c1df77795c166f96661a7f9547fa7012665a134a131c8445f83606fa2c84d93e0eacb7c887d439ddd825734001a8218f2c9bbd0dd327f46ffd1596291e

View File

@@ -0,0 +1,50 @@
# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
# sirocco dependency does not yet support newer Lua implementations
LUA_COMPAT=( lua5-1 luajit )
inherit lua
DESCRIPTION="A Lua REPL and debugger "
HOMEPAGE="https://github.com/giann/croissant"
EGIT_COMMIT="dc633a0ac3b5bcab9b72b660e926af80944125b3"
SRC_URI="https://github.com/giann/croissant/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${PN}-${EGIT_COMMIT}"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
IUSE="examples"
REQUIRED_USE="${LUA_REQUIRED_USE}"
RDEPEND="
dev-lua/lua-term[${LUA_USEDEP}]
dev-lua/sirocco[${LUA_USEDEP}]
dev-lua/hump[${LUA_USEDEP}]
dev-lua/lpeg[${LUA_USEDEP}]
dev-lua/lua-argparse[${LUA_USEDEP}]
dev-lua/compat53[${LUA_USEDEP}]
${LUA_DEPS}
"
DEPEND="${RDEPEND}"
lua_src_install() {
insinto "$(lua_get_lmod_dir)/${PN}"
doins croissant/*.lua
}
src_install() {
lua_foreach_impl lua_src_install
dobin bin/croissant
dodoc README.md
if use examples; then
docinto examples
dodoc debugtest.lua
fi
}

View File

@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>suleyman@farajli.net</email>
<name>Suleyman Farajli</name>
</maintainer>
<upstream>
<remote-id type="github">giann/croissant</remote-id>
</upstream>
</pkgmetadata>