diff options
author | Mike Gilbert <floppym@gentoo.org> | 2018-09-23 11:15:55 -0400 |
---|---|---|
committer | Mike Gilbert <floppym@gentoo.org> | 2018-09-26 14:41:18 -0400 |
commit | a524df23be74421518b8d8e8aa8c1b5a571f0b14 (patch) | |
tree | 7c9a02c7a7e650740fafbb4561caab013ed1130e /eclass | |
parent | dev-tcltk/thread: version bump to 2.7.3 (diff) | |
download | gentoo-a524df23be74421518b8d8e8aa8c1b5a571f0b14.tar.gz gentoo-a524df23be74421518b8d8e8aa8c1b5a571f0b14.tar.bz2 gentoo-a524df23be74421518b8d8e8aa8c1b5a571f0b14.zip |
udev.eclass: support EAPI 7
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/udev.eclass | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/eclass/udev.eclass b/eclass/udev.eclass index 4f23c9ebbdf8..baf60584938f 100644 --- a/eclass/udev.eclass +++ b/eclass/udev.eclass @@ -1,10 +1,10 @@ -# Copyright 1999-2014 Gentoo Foundation +# Copyright 1999-2018 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 # @ECLASS: udev.eclass # @MAINTAINER: # udev-bugs@gentoo.org -# @SUPPORTED_EAPIS: 0 1 2 3 4 5 6 +# @SUPPORTED_EAPIS: 0 1 2 3 4 5 6 7 # @BLURB: Default eclass for determining udev directories. # @DESCRIPTION: # Default eclass for determining udev directories. @@ -34,12 +34,16 @@ _UDEV_ECLASS=1 inherit toolchain-funcs case ${EAPI:-0} in - 0|1|2|3|4|5|6) ;; + 0|1|2|3|4|5|6|7) ;; *) die "${ECLASS}.eclass API in EAPI ${EAPI} not yet established." esac -RDEPEND="" -DEPEND="virtual/pkgconfig" +if [[ ${EAPI:-0} == [0123456] ]]; then + RDEPEND="" + DEPEND="virtual/pkgconfig" +else + BDEPEND="virtual/pkgconfig" +fi # @FUNCTION: _udev_get_udevdir # @INTERNAL |