dev-ml/core: depends on all 0.17.* slot of base

Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
This commit is contained in:
Alfredo Tupone
2025-06-04 06:35:44 +02:00
parent 36ca44c4b6
commit 881fc10ea1
2 changed files with 46 additions and 43 deletions

View File

@@ -0,0 +1,46 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit dune
DESCRIPTION="Jane Street's alternative to the standard library"
HOMEPAGE="https://github.com/janestreet/core"
SRC_URI="https://github.com/janestreet/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0/$(ver_cut 1-2)"
KEYWORDS="~amd64 ~arm64 ~ppc ~ppc64"
IUSE="+ocamlopt"
# Jane Street Minor
JSM=$(ver_cut 1-2)*
RDEPEND="
>=dev-lang/ocaml-5
=dev-ml/base-${JSM}:=[ocamlopt?]
=dev-ml/base_bigstring-${JSM}:=[ocamlopt?]
=dev-ml/base_quickcheck-${JSM}:=[ocamlopt?]
=dev-ml/bin_prot-${JSM}:=[ocamlopt?]
=dev-ml/fieldslib-${JSM}:=[ocamlopt?]
=dev-ml/jane-street-headers-${JSM}:=[ocamlopt?]
=dev-ml/jst-config-${JSM}:=[ocamlopt?]
=dev-ml/ppx_assert-${JSM}:=[ocamlopt?]
=dev-ml/ppx_base-${JSM}:=[ocamlopt?]
=dev-ml/ppx_diff-${JSM}:=[ocamlopt?]
=dev-ml/ppx_hash-${JSM}:=[ocamlopt?]
=dev-ml/ppx_inline_test-${JSM}:=[ocamlopt?]
=dev-ml/ppx_jane-${JSM}:=[ocamlopt?]
=dev-ml/ppx_optcomp-${JSM}:=[ocamlopt?]
=dev-ml/ppx_sexp_conv-${JSM}:=[ocamlopt?]
=dev-ml/ppx_sexp_message-${JSM}:=[ocamlopt?]
=dev-ml/sexplib-${JSM}:=[ocamlopt?]
=dev-ml/splittable_random-${JSM}:=[ocamlopt?]
=dev-ml/stdio-${JSM}:=[ocamlopt?]
=dev-ml/time_now-${JSM}:=[ocamlopt?]
=dev-ml/typerep-${JSM}:=[ocamlopt?]
=dev-ml/variantslib-${JSM}:=[ocamlopt?]
"
DEPEND="${RDEPEND}"
BDEPEND=">=dev-ml/dune-3.11"

View File

@@ -1,43 +0,0 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit dune
DESCRIPTION="Jane Street's alternative to the standard library"
HOMEPAGE="https://github.com/janestreet/core"
SRC_URI="https://github.com/janestreet/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0/$(ver_cut 1-2)"
KEYWORDS="~amd64 ~arm64 ~ppc ~ppc64"
IUSE="+ocamlopt"
RDEPEND="
>=dev-lang/ocaml-5
dev-ml/base:${SLOT}[ocamlopt?]
dev-ml/base_bigstring:${SLOT}[ocamlopt?]
dev-ml/base_quickcheck:${SLOT}[ocamlopt?]
dev-ml/bin_prot:${SLOT}[ocamlopt?]
dev-ml/fieldslib:${SLOT}[ocamlopt?]
dev-ml/jane-street-headers:${SLOT}[ocamlopt?]
dev-ml/jst-config:${SLOT}[ocamlopt?]
dev-ml/ppx_assert:${SLOT}[ocamlopt?]
dev-ml/ppx_base:${SLOT}[ocamlopt?]
dev-ml/ppx_diff:${SLOT}[ocamlopt?]
dev-ml/ppx_hash:${SLOT}[ocamlopt?]
dev-ml/ppx_inline_test:${SLOT}[ocamlopt?]
dev-ml/ppx_jane:${SLOT}[ocamlopt?]
dev-ml/ppx_optcomp:${SLOT}[ocamlopt?]
dev-ml/ppx_sexp_conv:${SLOT}[ocamlopt?]
dev-ml/ppx_sexp_message:${SLOT}[ocamlopt?]
dev-ml/sexplib:${SLOT}[ocamlopt?]
dev-ml/splittable_random:${SLOT}[ocamlopt?]
dev-ml/stdio:${SLOT}[ocamlopt?]
dev-ml/time_now:${SLOT}[ocamlopt?]
dev-ml/typerep:${SLOT}[ocamlopt?]
dev-ml/variantslib:${SLOT}[ocamlopt?]
"
DEPEND="${RDEPEND}"
BDEPEND=">=dev-ml/dune-3.11"