gentoo-ebuilds/dev-ml/batteries/batteries-3.5.1-r1.ebuild
Alfredo Tupone acefe0b6d8
dev-ml/batteries: block with ocaml-5
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
2025-03-11 19:50:39 +01:00

34 lines
745 B
Bash

# Copyright 2021-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit findlib
DESCRIPTION="A community-maintained standard library extension"
HOMEPAGE="https://github.com/ocaml-batteries-team/batteries-included/"
SRC_URI="https://github.com/ocaml-batteries-team/batteries-included/archive/v${PV}.tar.gz
-> ${P}.tar.gz"
S="${WORKDIR}"/batteries-included-${PV}
LICENSE="LGPL-2.1-with-linking-exception"
SLOT="0/${PV}"
KEYWORDS="~amd64 ~x86"
RESTRICT="test"
RDEPEND="
${DEPEND}
dev-ml/num:=
"
BDEPEND="
dev-ml/ocamlbuild
<dev-lang/ocaml-5
"
src_compile() {
emake BATTERIES_NATIVE=$(usex ocamlopt yes no)
}
src_install() {
findlib_src_install BATTERIES_NATIVE=$(usex ocamlopt yes no)
}