commit:     cb2ecdebe5f74ec48583eee4389c62cc409cbefc
Author:     Hiroki Tokunaga <tokusan441 <AT> gmail <DOT> com>
AuthorDate: Sun Jul 28 15:53:32 2024 +0000
Commit:     Hiroki Tokunaga <tokusan441 <AT> gmail <DOT> com>
CommitDate: Sun Jul 28 15:53:32 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=cb2ecdeb

dev-util/ocamlformat: decouple libraries

Some OCaml packages need only its libraries.

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

 dev-util/ocamlformat/ocamlformat-0.26.2.ebuild | 31 +++++++++++---------------
 1 file changed, 13 insertions(+), 18 deletions(-)

diff --git a/dev-util/ocamlformat/ocamlformat-0.26.2.ebuild 
b/dev-util/ocamlformat/ocamlformat-0.26.2.ebuild
index 6ab97c5a6..77cd36a73 100644
--- a/dev-util/ocamlformat/ocamlformat-0.26.2.ebuild
+++ b/dev-util/ocamlformat/ocamlformat-0.26.2.ebuild
@@ -19,23 +19,9 @@ IUSE="ocamlopt test"
 RESTRICT="!test? ( test )"
 
 RDEPEND="
-       dev-ml/cmdliner:=
-       dev-ml/csexp:=
-       dev-ml/re:=
-
-       dev-ml/base:=
-       dev-ml/dune-build-info:=
-       dev-ml/either:=
-       dev-ml/fix:=
-       dev-ml/fpath:=
-       dev-ml/menhir:=
-       dev-ml/ocaml-version:=
-       dev-util/ocp-indent:=
-       dev-ml/stdio:=
-       dev-ml/uuseg:=
-       dev-ml/uutf:=
-       dev-ml/astring:=
-       dev-ml/camlp-streams:=
+       >=dev-ml/cmdliner-1.1.0:=
+       ~dev-ml/ocamlformat-lib-${PV}:=
+       >=dev-ml/re-1.10.3:=
 "
 
 DEPEND="
@@ -44,6 +30,15 @@ DEPEND="
 
 BDEPEND="
        test? (
-               dev-ml/alcotest:=
+               >=dev-ml/cmdliner-1.2.0:=
+               ~dev-ml/ocamlformat-rpc-lib-${PV}:=
        )
 "
+
+src_compile() {
+       dune-compile ocamlformat
+}
+
+src_install() {
+       dune-install ocamlformat
+}

Reply via email to