diff options
author | 2021-06-21 06:40:57 +0100 | |
---|---|---|
committer | 2021-06-21 06:40:57 +0100 | |
commit | 8b610ae73860af6e842622ab64ed4ebef5fd0ef9 (patch) | |
tree | cf82c1334515e615a7f81d9a1b6bd57c46219aa0 /eclass | |
parent | cdrom.eclass: add EAPI guard (diff) | |
download | gentoo-8b610ae73860af6e842622ab64ed4ebef5fd0ef9.tar.gz gentoo-8b610ae73860af6e842622ab64ed4ebef5fd0ef9.tar.bz2 gentoo-8b610ae73860af6e842622ab64ed4ebef5fd0ef9.zip |
findlib.eclass: add EAPI guard
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/findlib.eclass | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/eclass/findlib.eclass b/eclass/findlib.eclass index d117c0b2bfd6..e8b6e73c97af 100644 --- a/eclass/findlib.eclass +++ b/eclass/findlib.eclass @@ -6,10 +6,19 @@ # ML <ml@gentoo.org> # @AUTHOR: # Original author: Matthieu Sozeau <mattam@gentoo.org> (retired) +# @SUPPORTED_EAPIS: 6 7 # @BLURB: ocamlfind (a.k.a. findlib) eclass # @DESCRIPTION: # ocamlfind (a.k.a. findlib) eclass +case ${EAPI:-0} in + [67]) ;; + *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;; +esac + +if [[ -z ${_FINDLIB_ECLASS} ]] ; then +_FINDLIB_ECLASS=1 + # Do not complain about CFLAGS etc since ML projects do not use them. QA_FLAGS_IGNORED='.*' @@ -60,3 +69,5 @@ findlib_src_install() { findlib_src_preinst make DESTDIR="${D}" "$@" install || die "make failed" } + +fi |