commit: b1665d5a73baa37703d394e03333dfa6a0860473 Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Sun Apr 4 02:40:48 2021 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sun Apr 4 06:09:41 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b1665d5a
dune.eclass: change case style, remove already unsupported EAPIs Signed-off-by: Sam James <sam <AT> gentoo.org> eclass/dune.eclass | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/eclass/dune.eclass b/eclass/dune.eclass index a6b499cfbdb..c19c5ab9944 100644 --- a/eclass/dune.eclass +++ b/eclass/dune.eclass @@ -9,15 +9,15 @@ # @AUTHOR: # Rafael Kitover <[email protected]> # @SUPPORTED_EAPIS: 5 6 7 -# @BLURB: Provides functions for installing dune packages. +# @BLURB: Provides functions for installing Dune packages. # @DESCRIPTION: -# Provides dependencies on dune and ocaml and default src_compile, src_test and -# src_install for dune-based packages. +# Provides dependencies on dDne and OCaml and default src_compile, src_test and +# src_install for Dune-based packages. # @ECLASS-VARIABLE: DUNE_PKG_NAME # @PRE_INHERIT # @DESCRIPTION: -# Sets the actual dune package name, if different from gentoo package name. +# Sets the actual Dune package name, if different from Gentoo package name. # Set before inheriting the eclass. case ${EAPI:-0} in @@ -32,8 +32,13 @@ EXPORT_FUNCTIONS src_compile src_test src_install RDEPEND=">=dev-lang/ocaml-4:=[ocamlopt?]" case ${EAPI:-0} in - 0|1|2|3|4|5|6) DEPEND="${RDEPEND} dev-ml/dune";; - *) BDEPEND="dev-ml/dune dev-lang/ocaml"; DEPEND="${RDEPEND}" ;; + 5|6) + DEPEND="${RDEPEND} dev-ml/dune" + ;; + *) + BDEPEND="dev-ml/dune dev-lang/ocaml" + DEPEND="${RDEPEND}" + ;; esac dune_src_compile() {
