diff options
author | Sam James <sam@gentoo.org> | 2021-04-04 02:40:48 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-04-04 06:09:41 +0000 |
commit | b1665d5a73baa37703d394e03333dfa6a0860473 (patch) | |
tree | 8798a238d1d199a150afd64296a0f0324430a01e /eclass/dune.eclass | |
parent | opam.eclass: change case style, remove already unsupported EAPIs (diff) | |
download | gentoo-b1665d5a73baa37703d394e03333dfa6a0860473.tar.gz gentoo-b1665d5a73baa37703d394e03333dfa6a0860473.tar.bz2 gentoo-b1665d5a73baa37703d394e03333dfa6a0860473.zip |
dune.eclass: change case style, remove already unsupported EAPIs
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'eclass/dune.eclass')
-rw-r--r-- | eclass/dune.eclass | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/eclass/dune.eclass b/eclass/dune.eclass index a6b499cfbdb1..c19c5ab9944f 100644 --- a/eclass/dune.eclass +++ b/eclass/dune.eclass @@ -9,15 +9,15 @@ # @AUTHOR: # Rafael Kitover <rkitover@gmail.com> # @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() { |