From b8325835c82367d22428eb41afa0f2d375338d3c Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 28 Jun 2024 07:59:59 +0100 Subject: gentoo auto-resync : 28:06:2024 - 07:59:59 --- dev-lang/fennel/Manifest | 2 ++ dev-lang/fennel/fennel-1.5.0.ebuild | 56 +++++++++++++++++++++++++++++++++++++ 2 files changed, 58 insertions(+) create mode 100644 dev-lang/fennel/fennel-1.5.0.ebuild (limited to 'dev-lang/fennel') diff --git a/dev-lang/fennel/Manifest b/dev-lang/fennel/Manifest index a788bc7eb745..e24f90d5d5ba 100644 --- a/dev-lang/fennel/Manifest +++ b/dev-lang/fennel/Manifest @@ -1,3 +1,5 @@ DIST fennel-1.4.2.tar.gz 301195 BLAKE2B f5a124725b4d2573275f179090b0400ed07dcc50d6ae661dd588887b8774a2cb48ab9f720dfb7bc7049d1e353f430e75da48e9a08b716cc1a80e4e09bf269bc7 SHA512 13b6020314d010566c7521b85065a446e09f8a0cfec9b9cb4bc2e23fe59369d105538bcb8a3a7cd865c399742d98a1742da932f8bde993c1136422f803069071 +DIST fennel-1.5.0.tar.gz 304755 BLAKE2B f7e7661b48925a40194aa8feaf2baf3209fa50ed87ae6e1c9976484682fee91206643cb7361200ca7f30f55a89e4534f1dcdf0e4a6bf73e084229e86979c5490 SHA512 64403e187cf9fa8939784cfeb518d26e52aee4eac3533592021e5c45864a16f1e1f6a7fd95838110f38ec8478eec7f78b961b70fc79c89da5959de81230b1e22 EBUILD fennel-1.4.2-r1.ebuild 1090 BLAKE2B 74a02106decb97dc192f7447d83f164508d41232c74c235320cddf4bf0f3d06eea3edd36f5749bdc1fd7a725842561a4f04631cd55e43add20c9e4c612a10f60 SHA512 733d00292745a9cd078a3b56ee09ec92f7c0a46e9d075ccdb46dcff6126a9aba4e225afb23fdcb5bc2ae6ec460357aa57035d992f6a74e015e2628f2eb0b6f64 +EBUILD fennel-1.5.0.ebuild 1086 BLAKE2B 7b90ba8fb917774c961ceadf3911e8b6aaee977c571d3c9381ff9de28dff52cb2b6e59bc19dd04f3bf8595f33635c7d9d8c6a98eff7417d7554e690a0736400c SHA512 76fe57a282b5251ce9d345466700dbd8957683d65e79f85d0393d43b2a46032c7c014041b20e47031a027133e5e9d9a38c08e57e1a81350842a1cd0c017d38cc MISC metadata.xml 1061 BLAKE2B 49ef84fd44f2efd7526055bfc6fd1a37fa0d426a0746d769844ad6fd4ae1efc7dcc541f61fe6f3d8e0e92cb324c6bdfb061312c15ed1d696cf1985aa4cb4097d SHA512 3381a38c5c2ae6482325e6aeea556db767cc6166e89280511d0597c06fbc532a6592d526954f8b1fd40badcac7a951eece9f6aeaf18802f85ca16ccb5da4510d diff --git a/dev-lang/fennel/fennel-1.5.0.ebuild b/dev-lang/fennel/fennel-1.5.0.ebuild new file mode 100644 index 000000000000..59c8d6da9566 --- /dev/null +++ b/dev-lang/fennel/fennel-1.5.0.ebuild @@ -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 +} -- cgit v1.2.3