1 |
commit: bf7f92a01ec0c0304d5ef7fd3d35c25cea4e6fdd |
2 |
Author: Maciej Barć <xgqt <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jul 4 15:08:35 2022 +0000 |
4 |
Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jul 4 15:08:35 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bf7f92a0 |
7 |
|
8 |
dev-ml/utop: enable Emacs support |
9 |
|
10 |
Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org> |
11 |
|
12 |
dev-ml/utop/files/50utop-gentoo.el | 3 ++ |
13 |
dev-ml/utop/utop-2.8.0-r1.ebuild | 63 ++++++++++++++++++++++++++++++++++++++ |
14 |
dev-ml/utop/utop-2.8.0.ebuild | 27 ---------------- |
15 |
dev-ml/utop/utop-2.9.0-r1.ebuild | 63 ++++++++++++++++++++++++++++++++++++++ |
16 |
dev-ml/utop/utop-2.9.0.ebuild | 27 ---------------- |
17 |
dev-ml/utop/utop-2.9.1-r1.ebuild | 63 ++++++++++++++++++++++++++++++++++++++ |
18 |
dev-ml/utop/utop-2.9.1.ebuild | 27 ---------------- |
19 |
7 files changed, 192 insertions(+), 81 deletions(-) |
20 |
|
21 |
diff --git a/dev-ml/utop/files/50utop-gentoo.el b/dev-ml/utop/files/50utop-gentoo.el |
22 |
new file mode 100644 |
23 |
index 000000000000..958c8398e602 |
24 |
--- /dev/null |
25 |
+++ b/dev-ml/utop/files/50utop-gentoo.el |
26 |
@@ -0,0 +1,3 @@ |
27 |
+(add-to-list 'load-path "@SITELISP@") |
28 |
+(autoload 'utop "utop" |
29 |
+ "A universal toplevel for OCaml." t) |
30 |
|
31 |
diff --git a/dev-ml/utop/utop-2.8.0-r1.ebuild b/dev-ml/utop/utop-2.8.0-r1.ebuild |
32 |
new file mode 100644 |
33 |
index 000000000000..cd05e5fc7a0c |
34 |
--- /dev/null |
35 |
+++ b/dev-ml/utop/utop-2.8.0-r1.ebuild |
36 |
@@ -0,0 +1,63 @@ |
37 |
+# Copyright 1999-2022 Gentoo Authors |
38 |
+# Distributed under the terms of the GNU General Public License v2 |
39 |
+ |
40 |
+EAPI=8 |
41 |
+ |
42 |
+inherit dune elisp-common |
43 |
+ |
44 |
+DESCRIPTION="Universal toplevel for OCaml" |
45 |
+HOMEPAGE="https://github.com/ocaml-community/utop" |
46 |
+SRC_URI="https://github.com/ocaml-community/utop/archive/${PV}.tar.gz -> ${P}.tar.gz" |
47 |
+ |
48 |
+LICENSE="BSD" |
49 |
+SLOT="0/${PV}" |
50 |
+KEYWORDS="~amd64 ~x86" |
51 |
+IUSE="emacs +ocamlopt" |
52 |
+ |
53 |
+ELISP_DEPEND=" |
54 |
+ emacs? ( |
55 |
+ >=app-editors/emacs-24:* |
56 |
+ >=app-emacs/tuareg-mode-2.2.0 |
57 |
+ ) |
58 |
+" |
59 |
+DEPEND=" |
60 |
+ dev-ml/camomile:= |
61 |
+ dev-ml/lambda-term:= |
62 |
+ dev-ml/lwt:= |
63 |
+ dev-ml/react:= |
64 |
+" |
65 |
+RDEPEND=" |
66 |
+ ${DEPEND} |
67 |
+ ${ELISP_DEPEND} |
68 |
+" |
69 |
+BDEPEND=" |
70 |
+ dev-ml/cppo |
71 |
+ dev-ml/findlib |
72 |
+ ${ELISP_DEPEND} |
73 |
+" |
74 |
+ |
75 |
+SITEFILE="50${PN}-gentoo.el" |
76 |
+ |
77 |
+src_compile() { |
78 |
+ dune_src_compile |
79 |
+ |
80 |
+ use emacs && |
81 |
+ BYTECOMPFLAGS="-L src/top" elisp-compile src/top/*.el |
82 |
+} |
83 |
+ |
84 |
+src_install() { |
85 |
+ dune_src_install |
86 |
+ |
87 |
+ if use emacs ; then |
88 |
+ elisp-install ${PN} src/top/*.el{,c} |
89 |
+ elisp-site-file-install "${FILESDIR}/${SITEFILE}" |
90 |
+ fi |
91 |
+} |
92 |
+ |
93 |
+pkg_postinst() { |
94 |
+ use emacs && elisp-site-regen |
95 |
+} |
96 |
+ |
97 |
+pkg_postrm() { |
98 |
+ use emacs && elisp-site-regen |
99 |
+} |
100 |
|
101 |
diff --git a/dev-ml/utop/utop-2.8.0.ebuild b/dev-ml/utop/utop-2.8.0.ebuild |
102 |
deleted file mode 100644 |
103 |
index d5b493a8c2cf..000000000000 |
104 |
--- a/dev-ml/utop/utop-2.8.0.ebuild |
105 |
+++ /dev/null |
106 |
@@ -1,27 +0,0 @@ |
107 |
-# Copyright 1999-2021 Gentoo Authors |
108 |
-# Distributed under the terms of the GNU General Public License v2 |
109 |
- |
110 |
-EAPI=7 |
111 |
- |
112 |
-inherit dune |
113 |
- |
114 |
-DESCRIPTION="Universal toplevel for OCaml" |
115 |
-HOMEPAGE="https://github.com/ocaml-community/utop" |
116 |
-SRC_URI="https://github.com/ocaml-community/utop/archive/${PV}.tar.gz -> ${P}.tar.gz" |
117 |
- |
118 |
-LICENSE="BSD" |
119 |
-SLOT="0/${PV}" |
120 |
-KEYWORDS="~amd64 ~x86" |
121 |
-IUSE="+ocamlopt" |
122 |
- |
123 |
-RDEPEND=" |
124 |
- dev-ml/camomile:= |
125 |
- dev-ml/lambda-term:= |
126 |
- dev-ml/lwt:= |
127 |
- dev-ml/react:= |
128 |
-" |
129 |
-DEPEND="${RDEPEND}" |
130 |
-BDEPEND=" |
131 |
- dev-ml/cppo |
132 |
- dev-ml/findlib |
133 |
-" |
134 |
|
135 |
diff --git a/dev-ml/utop/utop-2.9.0-r1.ebuild b/dev-ml/utop/utop-2.9.0-r1.ebuild |
136 |
new file mode 100644 |
137 |
index 000000000000..cd05e5fc7a0c |
138 |
--- /dev/null |
139 |
+++ b/dev-ml/utop/utop-2.9.0-r1.ebuild |
140 |
@@ -0,0 +1,63 @@ |
141 |
+# Copyright 1999-2022 Gentoo Authors |
142 |
+# Distributed under the terms of the GNU General Public License v2 |
143 |
+ |
144 |
+EAPI=8 |
145 |
+ |
146 |
+inherit dune elisp-common |
147 |
+ |
148 |
+DESCRIPTION="Universal toplevel for OCaml" |
149 |
+HOMEPAGE="https://github.com/ocaml-community/utop" |
150 |
+SRC_URI="https://github.com/ocaml-community/utop/archive/${PV}.tar.gz -> ${P}.tar.gz" |
151 |
+ |
152 |
+LICENSE="BSD" |
153 |
+SLOT="0/${PV}" |
154 |
+KEYWORDS="~amd64 ~x86" |
155 |
+IUSE="emacs +ocamlopt" |
156 |
+ |
157 |
+ELISP_DEPEND=" |
158 |
+ emacs? ( |
159 |
+ >=app-editors/emacs-24:* |
160 |
+ >=app-emacs/tuareg-mode-2.2.0 |
161 |
+ ) |
162 |
+" |
163 |
+DEPEND=" |
164 |
+ dev-ml/camomile:= |
165 |
+ dev-ml/lambda-term:= |
166 |
+ dev-ml/lwt:= |
167 |
+ dev-ml/react:= |
168 |
+" |
169 |
+RDEPEND=" |
170 |
+ ${DEPEND} |
171 |
+ ${ELISP_DEPEND} |
172 |
+" |
173 |
+BDEPEND=" |
174 |
+ dev-ml/cppo |
175 |
+ dev-ml/findlib |
176 |
+ ${ELISP_DEPEND} |
177 |
+" |
178 |
+ |
179 |
+SITEFILE="50${PN}-gentoo.el" |
180 |
+ |
181 |
+src_compile() { |
182 |
+ dune_src_compile |
183 |
+ |
184 |
+ use emacs && |
185 |
+ BYTECOMPFLAGS="-L src/top" elisp-compile src/top/*.el |
186 |
+} |
187 |
+ |
188 |
+src_install() { |
189 |
+ dune_src_install |
190 |
+ |
191 |
+ if use emacs ; then |
192 |
+ elisp-install ${PN} src/top/*.el{,c} |
193 |
+ elisp-site-file-install "${FILESDIR}/${SITEFILE}" |
194 |
+ fi |
195 |
+} |
196 |
+ |
197 |
+pkg_postinst() { |
198 |
+ use emacs && elisp-site-regen |
199 |
+} |
200 |
+ |
201 |
+pkg_postrm() { |
202 |
+ use emacs && elisp-site-regen |
203 |
+} |
204 |
|
205 |
diff --git a/dev-ml/utop/utop-2.9.0.ebuild b/dev-ml/utop/utop-2.9.0.ebuild |
206 |
deleted file mode 100644 |
207 |
index d5b493a8c2cf..000000000000 |
208 |
--- a/dev-ml/utop/utop-2.9.0.ebuild |
209 |
+++ /dev/null |
210 |
@@ -1,27 +0,0 @@ |
211 |
-# Copyright 1999-2021 Gentoo Authors |
212 |
-# Distributed under the terms of the GNU General Public License v2 |
213 |
- |
214 |
-EAPI=7 |
215 |
- |
216 |
-inherit dune |
217 |
- |
218 |
-DESCRIPTION="Universal toplevel for OCaml" |
219 |
-HOMEPAGE="https://github.com/ocaml-community/utop" |
220 |
-SRC_URI="https://github.com/ocaml-community/utop/archive/${PV}.tar.gz -> ${P}.tar.gz" |
221 |
- |
222 |
-LICENSE="BSD" |
223 |
-SLOT="0/${PV}" |
224 |
-KEYWORDS="~amd64 ~x86" |
225 |
-IUSE="+ocamlopt" |
226 |
- |
227 |
-RDEPEND=" |
228 |
- dev-ml/camomile:= |
229 |
- dev-ml/lambda-term:= |
230 |
- dev-ml/lwt:= |
231 |
- dev-ml/react:= |
232 |
-" |
233 |
-DEPEND="${RDEPEND}" |
234 |
-BDEPEND=" |
235 |
- dev-ml/cppo |
236 |
- dev-ml/findlib |
237 |
-" |
238 |
|
239 |
diff --git a/dev-ml/utop/utop-2.9.1-r1.ebuild b/dev-ml/utop/utop-2.9.1-r1.ebuild |
240 |
new file mode 100644 |
241 |
index 000000000000..cd05e5fc7a0c |
242 |
--- /dev/null |
243 |
+++ b/dev-ml/utop/utop-2.9.1-r1.ebuild |
244 |
@@ -0,0 +1,63 @@ |
245 |
+# Copyright 1999-2022 Gentoo Authors |
246 |
+# Distributed under the terms of the GNU General Public License v2 |
247 |
+ |
248 |
+EAPI=8 |
249 |
+ |
250 |
+inherit dune elisp-common |
251 |
+ |
252 |
+DESCRIPTION="Universal toplevel for OCaml" |
253 |
+HOMEPAGE="https://github.com/ocaml-community/utop" |
254 |
+SRC_URI="https://github.com/ocaml-community/utop/archive/${PV}.tar.gz -> ${P}.tar.gz" |
255 |
+ |
256 |
+LICENSE="BSD" |
257 |
+SLOT="0/${PV}" |
258 |
+KEYWORDS="~amd64 ~x86" |
259 |
+IUSE="emacs +ocamlopt" |
260 |
+ |
261 |
+ELISP_DEPEND=" |
262 |
+ emacs? ( |
263 |
+ >=app-editors/emacs-24:* |
264 |
+ >=app-emacs/tuareg-mode-2.2.0 |
265 |
+ ) |
266 |
+" |
267 |
+DEPEND=" |
268 |
+ dev-ml/camomile:= |
269 |
+ dev-ml/lambda-term:= |
270 |
+ dev-ml/lwt:= |
271 |
+ dev-ml/react:= |
272 |
+" |
273 |
+RDEPEND=" |
274 |
+ ${DEPEND} |
275 |
+ ${ELISP_DEPEND} |
276 |
+" |
277 |
+BDEPEND=" |
278 |
+ dev-ml/cppo |
279 |
+ dev-ml/findlib |
280 |
+ ${ELISP_DEPEND} |
281 |
+" |
282 |
+ |
283 |
+SITEFILE="50${PN}-gentoo.el" |
284 |
+ |
285 |
+src_compile() { |
286 |
+ dune_src_compile |
287 |
+ |
288 |
+ use emacs && |
289 |
+ BYTECOMPFLAGS="-L src/top" elisp-compile src/top/*.el |
290 |
+} |
291 |
+ |
292 |
+src_install() { |
293 |
+ dune_src_install |
294 |
+ |
295 |
+ if use emacs ; then |
296 |
+ elisp-install ${PN} src/top/*.el{,c} |
297 |
+ elisp-site-file-install "${FILESDIR}/${SITEFILE}" |
298 |
+ fi |
299 |
+} |
300 |
+ |
301 |
+pkg_postinst() { |
302 |
+ use emacs && elisp-site-regen |
303 |
+} |
304 |
+ |
305 |
+pkg_postrm() { |
306 |
+ use emacs && elisp-site-regen |
307 |
+} |
308 |
|
309 |
diff --git a/dev-ml/utop/utop-2.9.1.ebuild b/dev-ml/utop/utop-2.9.1.ebuild |
310 |
deleted file mode 100644 |
311 |
index 55ec4f6fd152..000000000000 |
312 |
--- a/dev-ml/utop/utop-2.9.1.ebuild |
313 |
+++ /dev/null |
314 |
@@ -1,27 +0,0 @@ |
315 |
-# Copyright 1999-2022 Gentoo Authors |
316 |
-# Distributed under the terms of the GNU General Public License v2 |
317 |
- |
318 |
-EAPI=8 |
319 |
- |
320 |
-inherit dune |
321 |
- |
322 |
-DESCRIPTION="Universal toplevel for OCaml" |
323 |
-HOMEPAGE="https://github.com/ocaml-community/utop" |
324 |
-SRC_URI="https://github.com/ocaml-community/utop/archive/${PV}.tar.gz -> ${P}.tar.gz" |
325 |
- |
326 |
-LICENSE="BSD" |
327 |
-SLOT="0/${PV}" |
328 |
-KEYWORDS="~amd64 ~x86" |
329 |
-IUSE="+ocamlopt" |
330 |
- |
331 |
-RDEPEND=" |
332 |
- dev-ml/camomile:= |
333 |
- dev-ml/lambda-term:= |
334 |
- dev-ml/lwt:= |
335 |
- dev-ml/react:= |
336 |
-" |
337 |
-DEPEND="${RDEPEND}" |
338 |
-BDEPEND=" |
339 |
- dev-ml/cppo |
340 |
- dev-ml/findlib |
341 |
-" |