summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2020-09-07 13:11:32 +0200
committerUlrich Müller <ulm@gentoo.org>2020-09-12 18:02:57 +0200
commit3c8a89cfe956e34db26538d4c4c86a6b78c11462 (patch)
tree8787e17f43086113448035d32e7d26653beea3f7 /eclass/eutils.eclass
parentapp-office/lyx: Do not reference dev-tex/dvipost (diff)
downloadgentoo-3c8a89cfe956e34db26538d4c4c86a6b78c11462.tar.gz
gentoo-3c8a89cfe956e34db26538d4c4c86a6b78c11462.tar.bz2
gentoo-3c8a89cfe956e34db26538d4c4c86a6b78c11462.zip
eutils.eclass: Remove optfeature()
* optfeature() is now defined in optfeature.eclass since e9caee95d9c7ec69a8b8a12be2ae9bcd98c46e2d. Signed-off-by: David Seifert <soap@gentoo.org> Signed-off-by: Ulrich Müller <ulm@gentoo.org>
Diffstat (limited to 'eclass/eutils.eclass')
-rw-r--r--eclass/eutils.eclass47
1 files changed, 1 insertions, 46 deletions
diff --git a/eclass/eutils.eclass b/eclass/eutils.eclass
index 20dec774f2f5..c2fc05c9dbed 100644
--- a/eclass/eutils.eclass
+++ b/eclass/eutils.eclass
@@ -1,4 +1,4 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: eutils.eclass
@@ -186,51 +186,6 @@ use_if_iuse() {
use $1
}
-# @FUNCTION: optfeature
-# @USAGE: <short description> <package atom to match> [other atoms]
-# @DESCRIPTION:
-# Print out a message suggesting an optional package (or packages)
-# not currently installed which provides the described functionality.
-#
-# The following snippet would suggest app-misc/foo for optional foo support,
-# app-misc/bar or app-misc/baz[bar] for optional bar support
-# and either both app-misc/a and app-misc/b or app-misc/c for alphabet support.
-# @CODE
-# optfeature "foo support" app-misc/foo
-# optfeature "bar support" app-misc/bar app-misc/baz[bar]
-# optfeature "alphabet support" "app-misc/a app-misc/b" app-misc/c
-# @CODE
-optfeature() {
- debug-print-function ${FUNCNAME} "$@"
- local i j msg
- local desc=$1
- local flag=0
- shift
- for i; do
- for j in ${i}; do
- if has_version "${j}"; then
- flag=1
- else
- flag=0
- break
- fi
- done
- if [[ ${flag} -eq 1 ]]; then
- break
- fi
- done
- if [[ ${flag} -eq 0 ]]; then
- for i; do
- msg=" "
- for j in ${i}; do
- msg+=" ${j} and"
- done
- msg="${msg:0: -4} for ${desc}"
- elog "${msg}"
- done
- fi
-}
-
case ${EAPI:-0} in
0|1|2|3|4)