summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej Barć <xgqt@gentoo.org>2023-01-01 12:23:21 +0100
committerMaciej Barć <xgqt@gentoo.org>2023-01-01 13:30:10 +0100
commite8bc344ba6af03b5efcb7ea2f00bdb3351c54545 (patch)
tree6ad4fe888fea7ebb43cfda6fadf8ed60be527dbe /dev-lang
parentgames-emulation/ppsspp: properly pick up python (diff)
downloadgentoo-e8bc344ba6af03b5efcb7ea2f00bdb3351c54545.tar.gz
gentoo-e8bc344ba6af03b5efcb7ea2f00bdb3351c54545.tar.bz2
gentoo-e8bc344ba6af03b5efcb7ea2f00bdb3351c54545.zip
dev-lang/eisl: bump to 2.67
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
Diffstat (limited to 'dev-lang')
-rw-r--r--dev-lang/eisl/Manifest1
-rw-r--r--dev-lang/eisl/eisl-2.67.ebuild40
-rw-r--r--dev-lang/eisl/files/eisl-2.67-Makefile.patch32
3 files changed, 73 insertions, 0 deletions
diff --git a/dev-lang/eisl/Manifest b/dev-lang/eisl/Manifest
index 374f7b74a967..24e189efd23b 100644
--- a/dev-lang/eisl/Manifest
+++ b/dev-lang/eisl/Manifest
@@ -1,3 +1,4 @@
DIST eisl-2.62.tar.gz 2004955 BLAKE2B a69651f002d8ca418cb863670ddd5931ac8afbbe8dd922fe71717ec8d9e3edbd802dd70ea9035264bba50f4dbcac2657d59d9fd58733c8fce1572ac95b7693e8 SHA512 69674bab8bbb91ebc27abe319afeb71d6cef4eaa74e969b8c3e174f254422fcdeba006d11454fc9d82f1e96bc9b51e8f4a1c7a8a20f14b0006e596eea680397b
DIST eisl-2.63.tar.gz 2004974 BLAKE2B f563c28ebfa6f45b1d5ace1087646fa63e99b98a6f44f42ed74f2bc4d7e29083bc1ad6c4e5234b5cdaf391fd07900fb309c153107a12e553b7636f978084a776 SHA512 fb2cead1cddb98ce63d471ef04f31cda3a8426d627f7d333fa5dc74401a075d923060dfb98ee9d399116535632983e649f2a99440157825f0528da03dae5d051
DIST eisl-2.65.tar.gz 2025074 BLAKE2B d4703b696ea28dd5113dba199ccaf6a37955ca27297efaff4fc7c575fb94d0adfca1a3ae3b2f2baa8fc17ab04cc1b0a5ee0eb2059743a0828b81d6a324a574ce SHA512 7e2f64b37211b119e8a12975403ceec7b0861826a5de0c5e776f1140323f5ee73c75443f2e3438dda4d4cf7e1a8738c6883b1ab6d579558813fa5ddbc6be7898
+DIST eisl-2.67.tar.gz 2123775 BLAKE2B 317440287e331eb4b4994fb17abe3ab2750410b8984a42760901fce6eedac895b3feca1f5ace709b59f78b5f4a71afe8bf13a6a9df36bcb583486d377b12149f SHA512 8c5262eb945a96f08b2c9f0211b78ddc1251af2024f807cc0d6277795ee5231313594bf267efcf59f10b302dd1e67cb8a8e0978d5de9c0154b369694696f8a85
diff --git a/dev-lang/eisl/eisl-2.67.ebuild b/dev-lang/eisl/eisl-2.67.ebuild
new file mode 100644
index 000000000000..90b033daee8b
--- /dev/null
+++ b/dev-lang/eisl/eisl-2.67.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2023 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/"
+SRC_URI="https://github.com/sasagawa888/eisl/archive/v${PV}.tar.gz
+ -> ${P}.tar.gz"
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+RESTRICT="test" # Tests run cppcheck (and fail)
+
+DOCS=( README{,-ja}.md documents )
+
+RDEPEND="sys-libs/ncurses:="
+DEPEND="${RDEPEND}"
+
+PATCHES=( "${FILESDIR}"/${P}-Makefile.patch )
+
+src_compile() {
+ emake CC="$(tc-getCC)" clean edlis eisl
+}
+
+src_install() {
+ exeinto /usr/bin
+ doexe 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-2.67-Makefile.patch b/dev-lang/eisl/files/eisl-2.67-Makefile.patch
new file mode 100644
index 000000000000..3cd6d09f5944
--- /dev/null
+++ b/dev-lang/eisl/files/eisl-2.67-Makefile.patch
@@ -0,0 +1,32 @@
+--- a/makefile
++++ b/makefile
+@@ -38,7 +38,7 @@ else
+ endif
+ endif
+ endif
+-CFLAGS += $(INCS) -Wall -Wextra -D_FORTIFY_SOURCE=2 $(CURSES_CFLAGS) -U_XOPEN_SOURCE -D_XOPEN_SOURCE=700 -D_XOPEN_SOURCE_EXTENDED -Inana/src
++CFLAGS += $(INCS) -Wall -Wextra $(CURSES_CFLAGS) -U_XOPEN_SOURCE -D_XOPEN_SOURCE=700 -D_XOPEN_SOURCE_EXTENDED -Inana/src
+ DFLAGS := --preview=all --de -w --O3 --release --betterC
+ SRC_CII := cii/src/except.c cii/src/fmt.c cii/src/str.c cii/src/text.c
+ SRC_D := dextension.d disl.d
+@@ -65,7 +65,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)
+@@ -83,11 +83,9 @@ 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