commit: 15b6240275a378fa4d46184d359cdf8cec34515f Author: Maciej Barć <xgqt <AT> gentoo <DOT> org> AuthorDate: Thu Sep 18 20:49:19 2025 +0000 Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org> CommitDate: Thu Sep 18 21:50:22 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=15b62402
dev-lang/eisl: bump to 5.53 Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org> dev-lang/eisl/Manifest | 1 + dev-lang/eisl/eisl-5.53.ebuild | 63 ++++++++++++++++++++++++++++ dev-lang/eisl/files/eisl-5.53-makefile.patch | 34 +++++++++++++++ 3 files changed, 98 insertions(+) diff --git a/dev-lang/eisl/Manifest b/dev-lang/eisl/Manifest index 99364d8e81be..e839b2ae532b 100644 --- a/dev-lang/eisl/Manifest +++ b/dev-lang/eisl/Manifest @@ -1 +1,2 @@ DIST eisl-5.43.gh.tar.gz 3140842 BLAKE2B ac860c8d2896a9959b34f441725f8b33692be514691e92c70736e1e8ce4bf54c8549c9c017d84edaefa046d339cf4259e68cf22e4b800d733d6e4adc1b7af8aa SHA512 45a4ab8227c8756a8364d30010274f6a945f9b185921fb3330b72732f12e403a112d116c8b00ec7ed4c80b1c2e05c4387d27518e40948ee77af2020207d7183c +DIST eisl-5.53.gh.tar.gz 1804498 BLAKE2B c6dbb7c68d216c796ef143d1fb3b5a29a03f51625eb0f073cb878606a65a69ad4b6661092611c24efa3beea1cd2f9f4f1ded34334a8b0959cfec00817f84412e SHA512 a1edf56026226df936c2ea518640aaf805f00e4b87e2b57b4c14b58a37d2e4bd6fd77c5703884050e8402738037b5e5ec7be6bbe261999596f53e6b6683df336 diff --git a/dev-lang/eisl/eisl-5.53.ebuild b/dev-lang/eisl/eisl-5.53.ebuild new file mode 100644 index 000000000000..a560935ddec8 --- /dev/null +++ b/dev-lang/eisl/eisl-5.53.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs + +DESCRIPTION="Interpreter and compiler compatible with the ISLisp standard" +HOMEPAGE="https://github.com/sasagawa888/eisl/" + +if [[ "${PV}" == *9999* ]] ; then + inherit git-r3 + + EGIT_REPO_URI="https://github.com/sasagawa888/${PN}" +else + SRC_URI="https://github.com/sasagawa888/${PN}/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz" + + KEYWORDS="~amd64 ~x86" +fi + +LICENSE="BSD-2" +SLOT="0" +RESTRICT="test" + +DOCS=( README{,-ja}.md documents ) + +RDEPEND=" + sys-libs/ncurses:= +" +DEPEND=" + ${RDEPEND} +" + +PATCHES=( + "${FILESDIR}/${PN}-5.53-makefile.patch" +) + +src_compile() { + # bug https://bugs.gentoo.org/939771 + # don't clean and compile in one invocation with --shuffle possible + local target="" + for target in clean edlis eisl ; do + emake CC="$(tc-getCC)" FLAGS="${CFLAGS} ${LDFLAGS}" "${target}" + done +} + +src_test() { + # Tests run cppcheck (and fail). + : +} + +src_install() { + dobin edlis eisl + + # Compilation of ISLisp files on installation fails. + # Do not compile them and mimic "make install". + insinto "/usr/share/${PN}" + doins -r library + doins fast.h ffi.h + + einstalldocs +} diff --git a/dev-lang/eisl/files/eisl-5.53-makefile.patch b/dev-lang/eisl/files/eisl-5.53-makefile.patch new file mode 100644 index 000000000000..a0d95ffe0ec5 --- /dev/null +++ b/dev-lang/eisl/files/eisl-5.53-makefile.patch @@ -0,0 +1,34 @@ +--- a/makefile ++++ b/makefile +@@ -13,7 +13,9 @@ CURSES_CFLAGS := $(shell ncursesw6-config --cflags) + CURSES_LIBS := $(shell ncursesw6-config --libs) + + +-CFLAGS += $(INCS) -Wall $(CURSES_CFLAGS) ++LIBS += $(CURSES_LIBS) ++FLAGS := ++CFLAGS += $(FLAGS) $(INCS) -Wall $(CURSES_CFLAGS) + SRC_CII := cii/src/except.c cii/src/fmt.c cii/src/str.c cii/src/text.c + + # Files in library/ that need to be compiled +@@ -31,17 +33,17 @@ SRC_LISP := library/bit.lsp \ + library/plot.lsp \ + library/unistd.lsp + +-CFLAGS += -O3 -DNDEBUG=1 -Wno-stringop-truncation ++CFLAGS += -DNDEBUG=1 -Wno-stringop-truncation + + ifeq ($(USE_FLTO),1) +-CFLAGS += -O3 -flto -DNDEBUG=1 -Wno-stringop-truncation ++CFLAGS += -flto -DNDEBUG=1 -Wno-stringop-truncation + endif + ifeq ($(USE_GDB),1) + CFLAGS += -O0 -g -DNDEBUG=1 -Wno-stringop-truncation + endif + + ifeq ($(shell uname -n),raspberrypi) +-CFLAGS += -O3 -DNDEBUG=1 -Wno-stringop-truncation -Wno-array-bounds ++CFLAGS += -DNDEBUG=1 -Wno-stringop-truncation -Wno-array-bounds + endif + + SRC_CII += cii/src/mem.c
