1 |
commit: fc2dc078e950840193afd1a90df022b7ed2cd002 |
2 |
Author: Maciej Barć <xgqt <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Nov 29 23:53:09 2022 +0000 |
4 |
Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Nov 29 23:53:09 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fc2dc078 |
7 |
|
8 |
dev-ml/merlin: bump to 4.7 |
9 |
|
10 |
Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org> |
11 |
|
12 |
dev-ml/merlin/Manifest | 3 ++ |
13 |
dev-ml/merlin/merlin-4.7.ebuild | 106 ++++++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 109 insertions(+) |
15 |
|
16 |
diff --git a/dev-ml/merlin/Manifest b/dev-ml/merlin/Manifest |
17 |
index 536daa402927..7166b9a9a28a 100644 |
18 |
--- a/dev-ml/merlin/Manifest |
19 |
+++ b/dev-ml/merlin/Manifest |
20 |
@@ -13,3 +13,6 @@ DIST merlin-4.5-414.tbz 1964688 BLAKE2B 41cb76fb367545af3b5ac7d62f5b69ae031ed999 |
21 |
DIST merlin-4.6-412.tbz 1767545 BLAKE2B 95b4f4e53accf55f4d2bc381779fa31bb5db39c21fa2cd8dc0b1d5b0e4a4acf484f2eb58327bce1c990cbbb2205bb87215aeba1b923ba6a62c82862d884dd410 SHA512 4362482ecd7c8af1c4e740e3816100cd5408eba3aebc01b867b45bdd1dcc237819cb0640e0f618b6ecf00aa8d55e58e55ecfeb176ed7b358c404ea71302443b0 |
22 |
DIST merlin-4.6-413.tbz 2292506 BLAKE2B ec61d3b9cbfd9cddbb27fed70ebf7b69816244afb8a6c36347fbb762fc6aee1e6dd2b728db0687cd984603c3847ba3fe858b9663a7b3dcd17aedede662848299 SHA512 fe88a52c4c3c94505da142fbb7d400fce11bfafe6e47ec7cd39437308baa7122399a008bb6d0ef7b8f29636c2a51f4d49e3535136010fec198a1188293914a56 |
23 |
DIST merlin-4.6-414.tbz 1969647 BLAKE2B fdb55f7ba9a597fb03bb377556238dedc2a5d60bdc772a479a9ad98c0feb243a7fc61dd47a65194ddba9afb8509858d8956a87ca5af9fc68597ba746b0d56d60 SHA512 7373fadf05c692c9f054c7fe6a7d4bdfeefe237b9df432024ef9923782ee72e09021c0c3fba869da8347728105cb2d3ff0aa94b0c5eb09811bb25aa8da9fb520 |
24 |
+DIST merlin-4.7-412.tbz 1771126 BLAKE2B 1454873ecc1d533a5e82adaa71082339c44b93c2626d46cc5147d1b8049b397ef34e6137256560d6c9b7eaf826155e34617c071d1aae3aa3f02807e73c209cf1 SHA512 d13e307d87b4719b56397e54e6f771a3ea77a766ab38b22414c4b1d4d5828b5f790c82f28d3feaf7fe45be10abd50d9a905ece932f43fdad98c88b73b35dd936 |
25 |
+DIST merlin-4.7-413.tbz 2296558 BLAKE2B 2e6d9918c911eab017bb3491cab97f2b0362d13e072a0c39a6637f25d2a15ac7f3027cec51ab0d66a2239fea055f70b5b1e3294c05985faae5d11c57bff81501 SHA512 71068a6b50628c57003b29de3968e41c24b67394dcc1d1f1a0b335211e9d1ef3e527584b868514bd5489db5a130f2ff6fd145d3665a7d2bca5a117074cb08ce8 |
26 |
+DIST merlin-4.7-414.tbz 1976276 BLAKE2B 91fc5221b536d20174e36c4fdf4bc32f125f2af0f23c95c2e917f425826b0c58fe65b1b849eded570b8f4aece0fb00f1bdf7d0a00fa67f6c4e58892a095e1466 SHA512 c325c29bea91699739d7cb7df12876b7ffb8edf685deabb5dce5553b570a6bf8ff415c45e3295b674edbc7711f69f4be202b866d157516380f888e80dcee1082 |
27 |
|
28 |
diff --git a/dev-ml/merlin/merlin-4.7.ebuild b/dev-ml/merlin/merlin-4.7.ebuild |
29 |
new file mode 100644 |
30 |
index 000000000000..f7843381a666 |
31 |
--- /dev/null |
32 |
+++ b/dev-ml/merlin/merlin-4.7.ebuild |
33 |
@@ -0,0 +1,106 @@ |
34 |
+# Copyright 1999-2022 Gentoo Authors |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+EAPI=8 |
38 |
+ |
39 |
+# TODO: vim-plugin, although it's not clear how to make it work here |
40 |
+inherit elisp-common dune |
41 |
+ |
42 |
+DESCRIPTION="Context sensitive completion for OCaml in Vim and Emacs" |
43 |
+HOMEPAGE="https://github.com/ocaml/merlin/" |
44 |
+SRC_URI=" |
45 |
+ https://github.com/ocaml/merlin/releases/download/v${PV}-412/${P}-412.tbz |
46 |
+ https://github.com/ocaml/merlin/releases/download/v${PV}-413/${P}-413.tbz |
47 |
+ https://github.com/ocaml/merlin/releases/download/v${PV}-414/${P}-414.tbz |
48 |
+" |
49 |
+ |
50 |
+LICENSE="MIT" |
51 |
+SLOT="0/${PV}" |
52 |
+KEYWORDS="~amd64" |
53 |
+IUSE="emacs +ocamlopt test" |
54 |
+RESTRICT="!test? ( test )" |
55 |
+ |
56 |
+RDEPEND=" |
57 |
+ >=dev-lang/ocaml-4.12:=[ocamlopt?] |
58 |
+ dev-ml/csexp:= |
59 |
+ >=dev-ml/yojson-2.0.0:= |
60 |
+ dev-ml/menhir:= |
61 |
+ >=dev-ml/dune-2.9:= |
62 |
+ || ( |
63 |
+ dev-lang/ocaml:0/4.12 |
64 |
+ dev-lang/ocaml:0/4.13 |
65 |
+ dev-lang/ocaml:0/4.14 |
66 |
+ ) |
67 |
+ emacs? ( |
68 |
+ >=app-editors/emacs-23.1:* |
69 |
+ app-emacs/auto-complete |
70 |
+ app-emacs/company-mode |
71 |
+ ) |
72 |
+" |
73 |
+DEPEND="${RDEPEND}" |
74 |
+# NOTICE: Block dev-ml/seq (which is a back-port of code to ocaml <4.07) |
75 |
+# because it breaks merlin builds. |
76 |
+# https://github.com/ocaml/merlin/issues/1500 |
77 |
+BDEPEND=" |
78 |
+ !!<dev-ml/seq-0.3 |
79 |
+ test? ( app-misc/jq ) |
80 |
+" |
81 |
+ |
82 |
+SITEFILE="50${PN}-gentoo.el" |
83 |
+ |
84 |
+src_unpack() { |
85 |
+ default |
86 |
+ |
87 |
+ if has_version "dev-lang/ocaml:0/4.12" ; then |
88 |
+ mv ${P}-412 "${S}" || die |
89 |
+ elif has_version "dev-lang/ocaml:0/4.13" ; then |
90 |
+ mv ${P}-413 "${S}" || die |
91 |
+ elif has_version "dev-lang/ocaml:0/4.14" ; then |
92 |
+ mv ${P}-414 "${S}" || die |
93 |
+ fi |
94 |
+} |
95 |
+ |
96 |
+src_prepare() { |
97 |
+ default |
98 |
+ |
99 |
+ # Handle ELisp installation via the Emacs Eclass. |
100 |
+ rm emacs/dune || die |
101 |
+ |
102 |
+ # This test runs only inside a git repo, |
103 |
+ # it is not included in merlin release for ocaml 4.12. |
104 |
+ if [[ -f tests/test-dirs/occurrences/issue1404.t ]] ; then |
105 |
+ rm tests/test-dirs/occurrences/issue1404.t || die |
106 |
+ fi |
107 |
+ rm -r tests/test-dirs/locate/context-detection/cd-mod_constr.t || die |
108 |
+ |
109 |
+ # Remove seq references from dune build files. |
110 |
+ sed -i 's|seq||g' src/frontend/ocamlmerlin/dune || die |
111 |
+} |
112 |
+ |
113 |
+src_compile() { |
114 |
+ dune build @install || die |
115 |
+ |
116 |
+ if use emacs ; then |
117 |
+ # iedit isn't packaged yet |
118 |
+ rm emacs/merlin-iedit.el || die |
119 |
+ |
120 |
+ BYTECOMPFLAGS="-L emacs" elisp-compile emacs/*.el |
121 |
+ fi |
122 |
+} |
123 |
+ |
124 |
+src_install() { |
125 |
+ dune_src_install |
126 |
+ |
127 |
+ if use emacs ; then |
128 |
+ elisp-install ${PN} emacs/*.el{,c} |
129 |
+ elisp-site-file-install "${FILESDIR}/${SITEFILE}" |
130 |
+ fi |
131 |
+} |
132 |
+ |
133 |
+pkg_postinst() { |
134 |
+ use emacs && elisp-site-regen |
135 |
+} |
136 |
+ |
137 |
+pkg_postrm() { |
138 |
+ use emacs && elisp-site-regen |
139 |
+} |