1 |
commit: c844d8a3d27e0465481e22a35e2bb2e37020ec6d |
2 |
Author: Maciej Barć <xgqt <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jul 6 12:45:10 2022 +0000 |
4 |
Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jul 6 12:46:46 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c844d8a3 |
7 |
|
8 |
dev-lang/eisl: new package; add version 2.50 |
9 |
|
10 |
Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org> |
11 |
|
12 |
dev-lang/eisl/Manifest | 1 + |
13 |
dev-lang/eisl/eisl-2.50.ebuild | 33 ++++++++++++++++++++++++++++ |
14 |
dev-lang/eisl/files/eisl-2.50-Makefile.patch | 33 ++++++++++++++++++++++++++++ |
15 |
dev-lang/eisl/metadata.xml | 18 +++++++++++++++ |
16 |
4 files changed, 85 insertions(+) |
17 |
|
18 |
diff --git a/dev-lang/eisl/Manifest b/dev-lang/eisl/Manifest |
19 |
new file mode 100644 |
20 |
index 000000000000..475684b5a840 |
21 |
--- /dev/null |
22 |
+++ b/dev-lang/eisl/Manifest |
23 |
@@ -0,0 +1 @@ |
24 |
+DIST eisl-2.50.tar.gz 1757697 BLAKE2B 83c68213522320c815d9c7930c58181adba6f7fd3387421b7c7de55aca0fb6cabd78f65543c71adb89408531ea59855aafcf5bafd466bf517626a49cd252641f SHA512 4865c09dbbc0db885af69ec5ef0a731e2f55455f296b343b1cb05d3233e1e18c397b3b0a21eb0a6a86f85f20bf4e62f5e968fdf3cab45f6b5e3e3f9ee27d5e80 |
25 |
|
26 |
diff --git a/dev-lang/eisl/eisl-2.50.ebuild b/dev-lang/eisl/eisl-2.50.ebuild |
27 |
new file mode 100644 |
28 |
index 000000000000..fcc0fddcbb37 |
29 |
--- /dev/null |
30 |
+++ b/dev-lang/eisl/eisl-2.50.ebuild |
31 |
@@ -0,0 +1,33 @@ |
32 |
+# Copyright 1999-2022 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=8 |
36 |
+ |
37 |
+inherit toolchain-funcs |
38 |
+ |
39 |
+DESCRIPTION="Interpreter and compiler compatible for the ISLisp standard" |
40 |
+HOMEPAGE="https://github.com/sasagawa888/eisl/" |
41 |
+SRC_URI="https://github.com/sasagawa888/eisl/archive/v${PV}.tar.gz |
42 |
+ -> ${P}.tar.gz" |
43 |
+ |
44 |
+LICENSE="BSD-2" |
45 |
+SLOT="0" |
46 |
+KEYWORDS="~amd64 ~x86" |
47 |
+RESTRICT="test" # Tests run cppcheck (and fail) |
48 |
+ |
49 |
+DOCS=( README-ja.md README.md documents ) |
50 |
+ |
51 |
+RDEPEND="sys-libs/ncurses:=" |
52 |
+DEPEND="${RDEPEND}" |
53 |
+ |
54 |
+PATCHES=( "${FILESDIR}"/${P}-Makefile.patch ) |
55 |
+ |
56 |
+src_compile() { |
57 |
+ emake CC="$(tc-getCC)" clean all |
58 |
+} |
59 |
+ |
60 |
+src_install() { |
61 |
+ dobin edlis eisl |
62 |
+ |
63 |
+ einstalldocs |
64 |
+} |
65 |
|
66 |
diff --git a/dev-lang/eisl/files/eisl-2.50-Makefile.patch b/dev-lang/eisl/files/eisl-2.50-Makefile.patch |
67 |
new file mode 100644 |
68 |
index 000000000000..3c30adff8fd2 |
69 |
--- /dev/null |
70 |
+++ b/dev-lang/eisl/files/eisl-2.50-Makefile.patch |
71 |
@@ -0,0 +1,33 @@ |
72 |
+--- a/makefile |
73 |
++++ b/makefile |
74 |
+@@ -29,7 +29,7 @@ else |
75 |
+ CURSES_LIBS := $(shell ncurses6-config --libs) |
76 |
+ endif |
77 |
+ endif |
78 |
+-CFLAGS := $(INCS) -Wall -Wextra -D_FORTIFY_SOURCE=2 $(CURSES_CFLAGS) -U_XOPEN_SOURCE -D_XOPEN_SOURCE=700 -Inana/src |
79 |
++CFLAGS += $(INCS) -Wall -Wextra $(CURSES_CFLAGS) -U_XOPEN_SOURCE -D_XOPEN_SOURCE=700 -Inana/src |
80 |
+ DFLAGS := --O3 --release --betterC |
81 |
+ SRC_CII := cii/src/except.c cii/src/fmt.c cii/src/str.c cii/src/text.c |
82 |
+ SRC_D := dextension.d disl.d |
83 |
+@@ -42,7 +42,7 @@ ifeq ($(DEBUG),1) |
84 |
+ LDFLAGS := -fsanitize=undefined |
85 |
+ endif |
86 |
+ else |
87 |
+- CFLAGS += -O3 -flto -DNDEBUG=1 -DWITHOUT_NANA=1 |
88 |
++ CFLAGS += -DNDEBUG=1 -DWITHOUT_NANA=1 |
89 |
+ SRC_CII += cii/src/mem.c |
90 |
+ endif |
91 |
+ OBJ_CII := $(SRC_CII:.c=.o) |
92 |
+@@ -56,11 +56,10 @@ else |
93 |
+ CFLAGS += -std=c17 |
94 |
+ endif |
95 |
+ ifneq ($(DEBUG),1) |
96 |
+- LDFLAGS += -flto |
97 |
+ ifeq ($(OPSYS),macos) |
98 |
+ LDFLAGS += -Wl,-S,-x |
99 |
+ else |
100 |
+- LDFLAGS += -s |
101 |
++ LDFLAGS += |
102 |
+ endif |
103 |
+ endif |
104 |
+ PREFIX := /usr/local |
105 |
|
106 |
diff --git a/dev-lang/eisl/metadata.xml b/dev-lang/eisl/metadata.xml |
107 |
new file mode 100644 |
108 |
index 000000000000..4351ebea821e |
109 |
--- /dev/null |
110 |
+++ b/dev-lang/eisl/metadata.xml |
111 |
@@ -0,0 +1,18 @@ |
112 |
+<?xml version="1.0" encoding="UTF-8"?> |
113 |
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> |
114 |
+ |
115 |
+<pkgmetadata> |
116 |
+ <maintainer type="person"> |
117 |
+ <email>xgqt@g.o</email> |
118 |
+ <name>Maciej Barć</name> |
119 |
+ </maintainer> |
120 |
+ <longdescription> |
121 |
+ Easy-ISLisp(EISL) is an interpreter and compiler compatible with the ISLisp |
122 |
+ standard. EISL was written by Kenichi Sasagawa |
123 |
+ https://qiita.com/sym_num/items/793adfe118514668e5b0 |
124 |
+ </longdescription> |
125 |
+ <upstream> |
126 |
+ <bugs-to>https://github.com/sasagawa888/eisl/issues</bugs-to> |
127 |
+ <remote-id type="github">sasagawa888/eisl</remote-id> |
128 |
+ </upstream> |
129 |
+</pkgmetadata> |