diff options
| author | Maciej Barć <xgqt@gentoo.org> | 2025-04-28 13:53:50 +0200 |
|---|---|---|
| committer | Maciej Barć <xgqt@gentoo.org> | 2025-04-28 15:40:41 +0200 |
| commit | d85c246fd0de9638acf5a04c8e95a7174f1aacad (patch) | |
| tree | 744217bcdb8d84fab7a92f48a0729b0e3031860c /dev-lang/eisl | |
| parent | f3cf668d98177b8a49d605610637faf5be3557ce (diff) | |
| download | gentoo-d85c246fd0de9638acf5a04c8e95a7174f1aacad.tar.gz gentoo-d85c246fd0de9638acf5a04c8e95a7174f1aacad.tar.bz2 gentoo-d85c246fd0de9638acf5a04c8e95a7174f1aacad.zip | |
dev-lang/eisl: bump to 5.42
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
Diffstat (limited to 'dev-lang/eisl')
| -rw-r--r-- | dev-lang/eisl/Manifest | 1 | ||||
| -rw-r--r-- | dev-lang/eisl/eisl-5.42.ebuild | 60 | ||||
| -rw-r--r-- | dev-lang/eisl/files/eisl-5.42-makefile.patch | 23 |
3 files changed, 84 insertions, 0 deletions
diff --git a/dev-lang/eisl/Manifest b/dev-lang/eisl/Manifest index accdd8fa1695..1f5c880db153 100644 --- a/dev-lang/eisl/Manifest +++ b/dev-lang/eisl/Manifest @@ -1 +1,2 @@ DIST eisl-5.41.tar.gz 3140179 BLAKE2B b60ec0209313973af31b0940317fdecd8e87c9de46093830d7e3c3924bbab9ef5da638a67b43b91a3c351d3d357817fcf26a56aeb2203e3f2a1865c797c743b1 SHA512 1b87a4c16b75289a95ffee20b7182151701736c96f3ddcdf1e00ef51356b668059b43cab39e9dd3b1f193b102f1f7cd32e435c0d212342e2544fff9507dfb99a +DIST eisl-5.42.gh.tar.gz 3140792 BLAKE2B 340023c9f4c49053699a681818491fbf25b0078a7dbabca0ce76249f38cb3e3c477240a454782a0deb370c1e128cca491efcd30e12f79ca72beee9e2aa9fc1e3 SHA512 454cbf8e5c3cef8b80d5c0376f9a7fb3474c946a122f81338e7b087b87cf48de56564321e7fced635896c77b6454c1462e4981711e7d81769772102482ddac62 diff --git a/dev-lang/eisl/eisl-5.42.ebuild b/dev-lang/eisl/eisl-5.42.ebuild new file mode 100644 index 000000000000..473c6f75754e --- /dev/null +++ b/dev-lang/eisl/eisl-5.42.ebuild @@ -0,0 +1,60 @@ +# 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" # Tests run cppcheck (and fail). + +DOCS=( README{,-ja}.md documents ) + +RDEPEND=" + sys-libs/ncurses:= +" +DEPEND=" + ${RDEPEND} +" + +PATCHES=( + "${FILESDIR}/${PN}-5.42-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)" "${target}" + done +} + +src_install() { + exeinto /usr/bin + doexe edlis + doexe 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.42-makefile.patch b/dev-lang/eisl/files/eisl-5.42-makefile.patch new file mode 100644 index 000000000000..770b78af7e6c --- /dev/null +++ b/dev-lang/eisl/files/eisl-5.42-makefile.patch @@ -0,0 +1,23 @@ +--- a/makefile ++++ b/makefile +@@ -69,7 +69,7 @@ ifeq ($(DEBUG),1) + LDFLAGS += -fsanitize=undefined + endif + else +- CFLAGS += -O3 -flto -DNDEBUG=1 -DWITHOUT_NANA=1 ++ CFLAGS += -DNDEBUG=1 -DWITHOUT_NANA=1 + SRC_CII += cii/src/mem.c + endif + OBJ_CII := $(SRC_CII:.c=.o) +@@ -87,11 +87,8 @@ ifeq ($(shell uname -n),raspberrypi) + CFLAGS += -D__rpi__ + endif + ifneq ($(DEBUG),1) +- LDFLAGS += -flto + ifeq ($(shell uname),Darwin) + LDFLAGS += -Wl,-S,-x +- else +- LDFLAGS += -s + endif + endif + PREFIX := /usr/local |
