ltprune.eclass: Ban discouraged eclass in EAPI 7
authorMichał Górny <mgorny@gentoo.org>
Tue, 6 Mar 2018 17:20:23 +0000 (18:20 +0100)
committerMichał Górny <mgorny@gentoo.org>
Mon, 23 Apr 2018 18:00:53 +0000 (20:00 +0200)
eclass/ltprune.eclass

index 6b3e93921d960976460aab7b5f5283d33553ad33..a8bb4c842bc0881de0a2ed704fe4b64ecf9a84e3 100644 (file)
 
 if [[ -z ${_LTPRUNE_ECLASS} ]]; then
 
+case ${EAPI:-0} in
+       0|1|2|3|4|5|6)
+               ;;
+       *)
+               die "${ECLASS}: banned in EAPI=${EAPI}; use 'find' instead";;
+esac
+
 inherit toolchain-funcs
 
 # @FUNCTION: prune_libtool_files