commit:     7b148120a0279015e7b62a44eeb2cf86c35009cf
Author:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
AuthorDate: Tue Apr 12 20:36:15 2022 +0000
Commit:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
CommitDate: Tue Apr 12 21:42:55 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7b148120

dev-ml/merlin: bump to 4.5

Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org>

 dev-ml/merlin/Manifest          |  4 ++
 dev-ml/merlin/merlin-4.5.ebuild | 94 +++++++++++++++++++++++++++++++++++++++++
 2 files changed, 98 insertions(+)

diff --git a/dev-ml/merlin/Manifest b/dev-ml/merlin/Manifest
index 1159f08039b6..9e5795e8cf56 100644
--- a/dev-ml/merlin/Manifest
+++ b/dev-ml/merlin/Manifest
@@ -6,3 +6,7 @@ DIST merlin-4.3.1-ocaml-4.12.patch.gz 818559 BLAKE2B 
accf65bd5d5798bafe2be022d68
 DIST merlin-4.4-411.tbz 1314200 BLAKE2B 
0d16308e1ece70f8200e78233ecdff553f28e9a83b17f044eba8a4af170b65935b59ecf6e887299d9373b16d0a0cce24e0f9697f7cde4b3889df9db954e796c8
 SHA512 
82e4b025db6c6ec0c8b53bce82e980bfc2a507b9092dc513fb10c11be0bc2e37ad9efd5436263ecfa03acc3ec3a4b20ef9599b1814abe530f99d84b2f484fecc
 DIST merlin-4.4-412.tbz 1762888 BLAKE2B 
adee3863e6fab90643db91b5da418324c65d9b2712140fa4f6b65ef3915bc24126a2cf8c2ceda14a914213595ed1951c7c79c388be7ca407f59c230bcc95eecb
 SHA512 
f51b2875b75215d0be378de86b9dca0957b5e62241ce625a46c6341c219582510d37af94dedf67e1d3db61ebacfef8fa764e4719fac16c0b4b99bb85d0b991d4
 DIST merlin-4.4-413.tbz 2284368 BLAKE2B 
1c7f0c9cda8dda4fa91888c3ba91eb74cacffe54bdcc3b9ca49ea816558216ece50cab5f69c4d54298610ca0781a6332a8d0e1ed7526711c97fbc1748f45c309
 SHA512 
b0bf3c7d72dfc7c70e22d60afca5b7fee71a35127839181fdb46e1e15a230e58765960548c545bbef4fdab180291c738cacb724b9ecf284eee5640ebef07c4ff
+DIST merlin-4.5-411.tbz 1316537 BLAKE2B 
8850ea6b15819a178f763d8b55fecca9104cec5097c39afad7dc8b59543d961d7aa4a86590ebb59a3066d1f6630f11284e24835398ab967f45a52faf004477f1
 SHA512 
9e68ebabdc0cc398edcd255516070d6459f3bf5738c0dbe332c11c6bc4070e7bf340bc086fa2ea58597972ebe9d15860ecd0e549444809be809f0509b41652c2
+DIST merlin-4.5-412.tbz 1765436 BLAKE2B 
eaed065a2814f4c1bfc5337d026c7c42287b8cbbe50097415a983f7fdd7323f4c88f3b8c8cff4ca88a0813204617f39807709a6703fd618269eca6063b3c47b1
 SHA512 
f9edc3e1c9f753d7bacbdf1b92c118b54f9e9eff0bf752a2b44f39a2f7ecc76c4cd3bbe9227e910aea8b5ea947e8fe1b8d92ba0245fe47bc8cc2f45404cca973
+DIST merlin-4.5-413.tbz 2290507 BLAKE2B 
32aeda63caec645da8043c49ceaa0ea54d095b3e286f687b5f3da1b44d54bbc291d0358768d2180825cb620a91765da83d90b645151a694a4131788ab4438fbf
 SHA512 
b1db98c38a97ca0eef3051ab2b5d1b158e757863de6908a830308e7ea7f960eebd64b1a60bf51b10b7ea2eea3141ee0917a7c3570b63f9faa2e3f69c5d6fe0c2
+DIST merlin-4.5-414.tbz 1964688 BLAKE2B 
41cb76fb367545af3b5ac7d62f5b69ae031ed99956aca947dc8b91e2fa906d500bed272f7f46a7ad9e57bf3cb5620893072b52ac7f2246d6ae3be1ae22e99406
 SHA512 
cc2cf2c208091b3ae435a8124617e56f2002b7091532002ab49a1f817d90a5c4f9cf0bc5741dc7f2526e0352c3ca95b42c3b3a17c6cbfb80ad73d42310a25d22

diff --git a/dev-ml/merlin/merlin-4.5.ebuild b/dev-ml/merlin/merlin-4.5.ebuild
new file mode 100644
index 000000000000..52caa02ed44d
--- /dev/null
+++ b/dev-ml/merlin/merlin-4.5.ebuild
@@ -0,0 +1,94 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+# TODO: vim-plugin, although it's not clear how to make it work here
+inherit elisp-common dune
+
+DESCRIPTION="Context sensitive completion for OCaml in Vim and Emacs"
+HOMEPAGE="https://github.com/ocaml/merlin";
+SRC_URI="https://github.com/ocaml/merlin/releases/download/v${PV}-411/${P}-411.tbz
+       
https://github.com/ocaml/merlin/releases/download/v${PV}-412/${P}-412.tbz
+       
https://github.com/ocaml/merlin/releases/download/v${PV}-413/${P}-413.tbz
+       
https://github.com/ocaml/merlin/releases/download/v${PV}-414/${P}-414.tbz";
+
+LICENSE="MIT"
+SLOT="0/${PV}"
+KEYWORDS="~amd64"
+IUSE="emacs +ocamlopt test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+       dev-ml/csexp:=
+       dev-ml/yojson:=
+       dev-ml/menhir:=
+       >=dev-ml/dune-2.9
+       || (
+               dev-lang/ocaml:0/4.11
+               dev-lang/ocaml:0/4.12
+               dev-lang/ocaml:0/4.13
+               dev-lang/ocaml:0/4.14
+       )
+       emacs? (
+               >=app-editors/emacs-23.1:*
+               app-emacs/auto-complete
+               app-emacs/company-mode
+       )
+"
+DEPEND="${RDEPEND}
+       test? ( app-misc/jq )"
+
+SITEFILE="50${PN}-gentoo.el"
+
+src_unpack() {
+       default
+
+       if has_version "dev-lang/ocaml:0/4.11" ; then
+               mv ${P}-411 "${S}" || die
+       elif has_version "dev-lang/ocaml:0/4.12" ; then
+               mv ${P}-412 "${S}" || die
+       elif has_version "dev-lang/ocaml:0/4.13" ; then
+               mv ${P}-413 "${S}" || die
+       elif has_version "dev-lang/ocaml:0/4.14" ; then
+               mv ${P}-414 "${S}" || die
+       fi
+}
+
+src_prepare() {
+       default
+
+       # Handle installation via the eclass
+       rm emacs/dune || die
+
+       # This test runs only inside a git repo
+       rm -r tests/test-dirs/occurrences/issue1404.t || die
+}
+
+src_compile() {
+       dune build @install
+
+       if use emacs ; then
+               # iedit isn't packaged yet
+               rm emacs/merlin-iedit.el || die
+
+               BYTECOMPFLAGS="-L emacs" elisp-compile emacs/*.el
+       fi
+}
+
+src_install() {
+       dune_src_install
+
+       if use emacs ; then
+               elisp-install ${PN} emacs/*.el{,c}
+               elisp-site-file-install "${FILESDIR}/${SITEFILE}"
+       fi
+}
+
+pkg_postinst() {
+       use emacs && elisp-site-regen
+}
+
+pkg_postrm() {
+       use emacs && elisp-site-regen
+}

Reply via email to