commit:     b5b4cf9dc68027fb7bebc0ea4e6af724678eb37c
Author:     Hiroki Tokunaga <tokusan441 <AT> gmail <DOT> com>
AuthorDate: Sun Sep 29 08:55:36 2024 +0000
Commit:     David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Sun Sep 29 08:55:36 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=b5b4cf9d

dev-util/ocaml-lsp-server: new package, add 1.18.0

Signed-off-by: Hiroki Tokunaga <tokusan441 <AT> gmail.com>

 dev-util/ocaml-lsp-server/Manifest                 |  1 +
 dev-util/ocaml-lsp-server/metadata.xml             | 12 ++++
 .../ocaml-lsp-server-1.18.0.ebuild                 | 74 ++++++++++++++++++++++
 3 files changed, 87 insertions(+)

diff --git a/dev-util/ocaml-lsp-server/Manifest 
b/dev-util/ocaml-lsp-server/Manifest
new file mode 100644
index 000000000..2ac34fd05
--- /dev/null
+++ b/dev-util/ocaml-lsp-server/Manifest
@@ -0,0 +1 @@
+DIST ocaml-lsp-server-1.18.0.tar.gz 908930 BLAKE2B 
9b58b7a09442e6f63d914561de14693e6a9557636b14d0c440739c2eb11ba6cabf282ee5e049ec579ba65bd84cebba8b653b5ccef8e9419886bec37dcfcf7cab
 SHA512 
cdf4178015ef1058b148d4d682e329eae1ac8c1e3783eba983a353e7219e657d255dd013989ece4a31d28a0b969720642f1557d324d35adaf12919a46a1b0386

diff --git a/dev-util/ocaml-lsp-server/metadata.xml 
b/dev-util/ocaml-lsp-server/metadata.xml
new file mode 100644
index 000000000..3b845409f
--- /dev/null
+++ b/dev-util/ocaml-lsp-server/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="person">
+               <email>[email protected]</email>
+               <name>Hiroki Tokunaga</name>
+       </maintainer>
+       <upstream>
+               <bugs-to>https://github.com/ocaml/ocaml-lsp/issues</bugs-to>
+               <remote-id type="github">ocaml/ocaml-lsp</remote-id>
+       </upstream>
+</pkgmetadata>

diff --git a/dev-util/ocaml-lsp-server/ocaml-lsp-server-1.18.0.ebuild 
b/dev-util/ocaml-lsp-server/ocaml-lsp-server-1.18.0.ebuild
new file mode 100644
index 000000000..b72c0c3bb
--- /dev/null
+++ b/dev-util/ocaml-lsp-server/ocaml-lsp-server-1.18.0.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit dune
+
+DESCRIPTION="LSP Server for OCaml"
+HOMEPAGE="https://github.com/ocaml/ocaml-lsp";
+SRC_URI="https://github.com/ocaml/ocaml-lsp/archive/${PV}.tar.gz -> 
${P}.tar.gz"
+
+S="${WORKDIR}/ocaml-lsp-${PV}"
+
+LICENSE="ISC"
+
+SLOT="0"
+
+KEYWORDS="~amd64"
+IUSE="ocamlopt test"
+
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+       >=dev-ml/dune-3.0:=
+       dev-ml/yojson:=
+       dev-ml/base:=
+       ~dev-ml/lsp-${PV}:=
+       ~dev-ml/jsonrpc-${PV}:=
+       >=dev-ml/re-1.5.0:=
+       >=dev-ml/ppx_yojson_conv_lib-0.14:=
+       >=dev-ml/dune-rpc-3.4.0:=
+       >=dev-ml/chrome-trace-3.3.0:=
+       dev-ml/dune-private-libs:=
+       >=dev-ml/fiber-3.3.1:= <dev-ml/fiber-4.0.0:=
+       dev-ml/xdg:=
+       dev-ml/dune-build-info:=
+       dev-ml/spawn:=
+       dev-ml/astring:=
+       dev-ml/camlp-streams:=
+       >=dev-ml/ocamlc-loc-3.7.0:=
+       >=dev-ml/pp-1.1.2:=
+       >=dev-ml/csexp-1.5:=
+       >=dev-ml/ocamlformat-rpc-lib-0.21.0:=
+       >=dev-lang/ocaml-4.14:= <dev-lang/ocaml-5.2:=
+       >=dev-ml/merlin-lib-4.16:= <dev-ml/merlin-lib-5.0
+"
+
+DEPEND="
+       ${RDEPEND}
+"
+
+# Includes test dependencies of `lsp` too.
+BEPEND="
+       test? (
+               >=dev-ml/ppx_expect-0.15.0:=
+               ~dev-ml/ocamlformat-0.26.2:=
+
+               dev-ml/cinaps:=
+       )
+"
+
+src_compile() {
+       dune-compile ${PN}
+}
+
+src_install() {
+       dune-install ${PN}
+}
+
+src_test() {
+       # `make test` runs unit and e2e tests, but e2e ones are managed by 
`yarn`,
+       # and we cannot run it in the sandboxed, offline environment.
+       emake test-ocaml
+}

Reply via email to