• [gentoo-dev] [PATCH 09/41] dune.eclass: drop EAPI 6 support

    From David Seifert@21:1/5 to All on Sun Dec 25 23:20:01 2022
    Signed-off-by: David Seifert <soap@gentoo.org>
    ---
    eclass/dune.eclass | 54 +++++++++++++++++++++++++---------------------
    1 file changed, 29 insertions(+), 25 deletions(-)

    diff --git a/eclass/dune.eclass b/eclass/dune.eclass
    index 1061461b699..a7c0a0b652f 100644
    --- a/eclass/dune.eclass
    +++ b/eclass/dune.eclass
    @@ -8,12 +8,20 @@
    # ML <ml@gentoo.org>
    # @AUTHOR:
    # Rafael Kitover <rkitover@gmail.com>
    -# @SUPPORTED_EAPIS: 6 7 8
    +# @SUPPORTED_EAPIS: 7 8
    # @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.

    +case ${EAPI} in
    + 7|8) ;;
    + *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
    +esac
    +
    +if [[ ! ${_DUNE_ECLASS} ]]; then
    +_DUNE_ECLASS=1
    +
    # @ECLASS_VARIABLE: DUNE_PKG_NAME
    # @PRE_INHERIT
    # @DESCRIPTION:
    @@ -21,28 +29,20 @@
    # Set before inheriting the eclass.
    : ${DUNE_PKG_NAME:=${PN}}

    -case ${EAPI:-0} in
    - 6|7|8) ;;
    - *) die "${ECLASS}: EAPI ${EAPI} not supported" ;