1 |
commit: e8bc344ba6af03b5efcb7ea2f00bdb3351c54545 |
2 |
Author: Maciej Barć <xgqt <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jan 1 11:23:21 2023 +0000 |
4 |
Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jan 1 12:30:10 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e8bc344b |
7 |
|
8 |
dev-lang/eisl: bump to 2.67 |
9 |
|
10 |
Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org> |
11 |
|
12 |
dev-lang/eisl/Manifest | 1 + |
13 |
dev-lang/eisl/eisl-2.67.ebuild | 40 ++++++++++++++++++++++++++++ |
14 |
dev-lang/eisl/files/eisl-2.67-Makefile.patch | 32 ++++++++++++++++++++++ |
15 |
3 files changed, 73 insertions(+) |
16 |
|
17 |
diff --git a/dev-lang/eisl/Manifest b/dev-lang/eisl/Manifest |
18 |
index 374f7b74a967..24e189efd23b 100644 |
19 |
--- a/dev-lang/eisl/Manifest |
20 |
+++ b/dev-lang/eisl/Manifest |
21 |
@@ -1,3 +1,4 @@ |
22 |
DIST eisl-2.62.tar.gz 2004955 BLAKE2B a69651f002d8ca418cb863670ddd5931ac8afbbe8dd922fe71717ec8d9e3edbd802dd70ea9035264bba50f4dbcac2657d59d9fd58733c8fce1572ac95b7693e8 SHA512 69674bab8bbb91ebc27abe319afeb71d6cef4eaa74e969b8c3e174f254422fcdeba006d11454fc9d82f1e96bc9b51e8f4a1c7a8a20f14b0006e596eea680397b |
23 |
DIST eisl-2.63.tar.gz 2004974 BLAKE2B f563c28ebfa6f45b1d5ace1087646fa63e99b98a6f44f42ed74f2bc4d7e29083bc1ad6c4e5234b5cdaf391fd07900fb309c153107a12e553b7636f978084a776 SHA512 fb2cead1cddb98ce63d471ef04f31cda3a8426d627f7d333fa5dc74401a075d923060dfb98ee9d399116535632983e649f2a99440157825f0528da03dae5d051 |
24 |
DIST eisl-2.65.tar.gz 2025074 BLAKE2B d4703b696ea28dd5113dba199ccaf6a37955ca27297efaff4fc7c575fb94d0adfca1a3ae3b2f2baa8fc17ab04cc1b0a5ee0eb2059743a0828b81d6a324a574ce SHA512 7e2f64b37211b119e8a12975403ceec7b0861826a5de0c5e776f1140323f5ee73c75443f2e3438dda4d4cf7e1a8738c6883b1ab6d579558813fa5ddbc6be7898 |
25 |
+DIST eisl-2.67.tar.gz 2123775 BLAKE2B 317440287e331eb4b4994fb17abe3ab2750410b8984a42760901fce6eedac895b3feca1f5ace709b59f78b5f4a71afe8bf13a6a9df36bcb583486d377b12149f SHA512 8c5262eb945a96f08b2c9f0211b78ddc1251af2024f807cc0d6277795ee5231313594bf267efcf59f10b302dd1e67cb8a8e0978d5de9c0154b369694696f8a85 |
26 |
|
27 |
diff --git a/dev-lang/eisl/eisl-2.67.ebuild b/dev-lang/eisl/eisl-2.67.ebuild |
28 |
new file mode 100644 |
29 |
index 000000000000..90b033daee8b |
30 |
--- /dev/null |
31 |
+++ b/dev-lang/eisl/eisl-2.67.ebuild |
32 |
@@ -0,0 +1,40 @@ |
33 |
+# Copyright 1999-2023 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=8 |
37 |
+ |
38 |
+inherit toolchain-funcs |
39 |
+ |
40 |
+DESCRIPTION="Interpreter and compiler compatible with the ISLisp standard" |
41 |
+HOMEPAGE="https://github.com/sasagawa888/eisl/" |
42 |
+SRC_URI="https://github.com/sasagawa888/eisl/archive/v${PV}.tar.gz |
43 |
+ -> ${P}.tar.gz" |
44 |
+ |
45 |
+LICENSE="BSD-2" |
46 |
+SLOT="0" |
47 |
+KEYWORDS="~amd64 ~x86" |
48 |
+RESTRICT="test" # Tests run cppcheck (and fail) |
49 |
+ |
50 |
+DOCS=( README{,-ja}.md documents ) |
51 |
+ |
52 |
+RDEPEND="sys-libs/ncurses:=" |
53 |
+DEPEND="${RDEPEND}" |
54 |
+ |
55 |
+PATCHES=( "${FILESDIR}"/${P}-Makefile.patch ) |
56 |
+ |
57 |
+src_compile() { |
58 |
+ emake CC="$(tc-getCC)" clean edlis eisl |
59 |
+} |
60 |
+ |
61 |
+src_install() { |
62 |
+ exeinto /usr/bin |
63 |
+ doexe edlis eisl |
64 |
+ |
65 |
+ # Compilation of ISLisp files on installation fails. |
66 |
+ # Do not compile them and mimic "make install". |
67 |
+ insinto /usr/share/${PN} |
68 |
+ doins -r library |
69 |
+ doins fast.h ffi.h |
70 |
+ |
71 |
+ einstalldocs |
72 |
+} |
73 |
|
74 |
diff --git a/dev-lang/eisl/files/eisl-2.67-Makefile.patch b/dev-lang/eisl/files/eisl-2.67-Makefile.patch |
75 |
new file mode 100644 |
76 |
index 000000000000..3cd6d09f5944 |
77 |
--- /dev/null |
78 |
+++ b/dev-lang/eisl/files/eisl-2.67-Makefile.patch |
79 |
@@ -0,0 +1,32 @@ |
80 |
+--- a/makefile |
81 |
++++ b/makefile |
82 |
+@@ -38,7 +38,7 @@ else |
83 |
+ endif |
84 |
+ endif |
85 |
+ endif |
86 |
+-CFLAGS += $(INCS) -Wall -Wextra -D_FORTIFY_SOURCE=2 $(CURSES_CFLAGS) -U_XOPEN_SOURCE -D_XOPEN_SOURCE=700 -D_XOPEN_SOURCE_EXTENDED -Inana/src |
87 |
++CFLAGS += $(INCS) -Wall -Wextra $(CURSES_CFLAGS) -U_XOPEN_SOURCE -D_XOPEN_SOURCE=700 -D_XOPEN_SOURCE_EXTENDED -Inana/src |
88 |
+ DFLAGS := --preview=all --de -w --O3 --release --betterC |
89 |
+ SRC_CII := cii/src/except.c cii/src/fmt.c cii/src/str.c cii/src/text.c |
90 |
+ SRC_D := dextension.d disl.d |
91 |
+@@ -65,7 +65,7 @@ ifeq ($(DEBUG),1) |
92 |
+ LDFLAGS += -fsanitize=undefined |
93 |
+ endif |
94 |
+ else |
95 |
+- CFLAGS += -O3 -flto -DNDEBUG=1 -DWITHOUT_NANA=1 |
96 |
++ CFLAGS += -DNDEBUG=1 -DWITHOUT_NANA=1 |
97 |
+ SRC_CII += cii/src/mem.c |
98 |
+ endif |
99 |
+ OBJ_CII := $(SRC_CII:.c=.o) |
100 |
+@@ -83,11 +83,9 @@ ifeq ($(shell uname -n),raspberrypi) |
101 |
+ CFLAGS += -D__rpi__ |
102 |
+ endif |
103 |
+ ifneq ($(DEBUG),1) |
104 |
+- LDFLAGS += -flto |
105 |
+ ifeq ($(shell uname),Darwin) |
106 |
+ LDFLAGS += -Wl,-S,-x |
107 |
+ else |
108 |
+- LDFLAGS += -s |
109 |
+ endif |
110 |
+ endif |
111 |
+ PREFIX := /usr/local |