dev-lang/fennel: bump to 1.5.0

Signed-off-by: Maciej Barć <xgqt@gentoo.org>
This commit is contained in:
Maciej Barć
2024-06-27 23:22:13 +02:00
parent d950b931f8
commit 9aef446279
2 changed files with 57 additions and 0 deletions

View File

@@ -1 +1,2 @@
DIST fennel-1.4.2.tar.gz 301195 BLAKE2B f5a124725b4d2573275f179090b0400ed07dcc50d6ae661dd588887b8774a2cb48ab9f720dfb7bc7049d1e353f430e75da48e9a08b716cc1a80e4e09bf269bc7 SHA512 13b6020314d010566c7521b85065a446e09f8a0cfec9b9cb4bc2e23fe59369d105538bcb8a3a7cd865c399742d98a1742da932f8bde993c1136422f803069071
DIST fennel-1.5.0.tar.gz 304755 BLAKE2B f7e7661b48925a40194aa8feaf2baf3209fa50ed87ae6e1c9976484682fee91206643cb7361200ca7f30f55a89e4534f1dcdf0e4a6bf73e084229e86979c5490 SHA512 64403e187cf9fa8939784cfeb518d26e52aee4eac3533592021e5c45864a16f1e1f6a7fd95838110f38ec8478eec7f78b961b70fc79c89da5959de81230b1e22

View File

@@ -0,0 +1,56 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
# Fails to build with "lua5-1".
LUA_COMPAT=( lua5-{3,4} luajit )
inherit lua-single
DESCRIPTION="Lisp-like language that compiles to Lua"
HOMEPAGE="https://fennel-lang.org/
https://sr.ht/~technomancy/fennel/"
if [[ "${PV}" == *9999* ]] ; then
inherit git-r3
EGIT_REPO_URI="https://git.sr.ht/~technomancy/${PN}"
else
SRC_URI="https://git.sr.ht/~technomancy/${PN}/archive/${PV}.tar.gz
-> ${P}.tar.gz"
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~x86"
fi
LICENSE="MIT"
SLOT="0/${PV}"
REQUIRED_USE="${LUA_REQUIRED_USE}"
RDEPEND="
${LUA_DEPS}
"
BDEPEND="
${RDEPEND}
"
src_prepare() {
default
# Turn off failing tests. bug https://bugs.gentoo.org/906351
sed -e 's|"failures",||' -e 's|"repl",||' -i test/init.lua || die
# Remove bad tests, bug #923281
rm test/macro.fnl || die
sed -i test/init.lua -e 's|"test.macro",||' || die
}
src_test() {
emake test
}
src_install() {
emake LUA_LIB_DIR="${ED}/$(lua_get_lmod_dir)" PREFIX="${ED}/usr" install
dodoc *.md
}