public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Cc: python@gentoo.org, "Michał Górny" <mgorny@gentoo.org>
Subject: [gentoo-dev] [PATCH 06/25] python-r2.eclass: Remove python_gen_usedep
Date: Sat, 29 Feb 2020 21:41:42 +0100	[thread overview]
Message-ID: <20200229204201.99290-7-mgorny@gentoo.org> (raw)
In-Reply-To: <20200229204201.99290-1-mgorny@gentoo.org>

Signed-off-by: Michał Górny <mgorny@gentoo.org>
---
 eclass/python-r2.eclass | 43 +----------------------------------------
 1 file changed, 1 insertion(+), 42 deletions(-)

diff --git a/eclass/python-r2.eclass b/eclass/python-r2.eclass
index 8bf0b1a1ac29..1ebc424bc9b3 100644
--- a/eclass/python-r2.eclass
+++ b/eclass/python-r2.eclass
@@ -282,8 +282,7 @@ _python_validate_useflags() {
 # python_is_python3). Remember to escape or quote the fnmatch patterns
 # to prevent accidental shell filename expansion.
 #
-# This is an internal function used to implement python_gen_cond_dep
-# and deprecated python_gen_usedep.
+# This is an internal function used to implement python_gen_cond_dep.
 _python_gen_usedep() {
 	debug-print-function ${FUNCNAME} "${@}"
 
@@ -304,46 +303,6 @@ _python_gen_usedep() {
 	echo "${out// /,}"
 }
 
-# @FUNCTION: python_gen_usedep
-# @USAGE: <pattern> [...]
-# @DESCRIPTION:
-# DEPRECATED.  Please use python_gen_cond_dep instead.
-#
-# Output a USE dependency string for Python implementations which
-# are both in PYTHON_COMPAT and match any of the patterns passed
-# as parameters to the function.
-#
-# The patterns can be either fnmatch-style patterns (matched via bash
-# == operator against PYTHON_COMPAT values) or '-2' / '-3' to indicate
-# appropriately all enabled Python 2/3 implementations (alike
-# python_is_python3). Remember to escape or quote the fnmatch patterns
-# to prevent accidental shell filename expansion.
-#
-# When all implementations are requested, please use ${PYTHON_USEDEP}
-# instead. Please also remember to set an appropriate REQUIRED_USE
-# to avoid ineffective USE flags.
-#
-# Example:
-# @CODE
-# PYTHON_COMPAT=( python{2_7,3_4} )
-# DEPEND="doc? ( dev-python/epydoc[$(python_gen_usedep 'python2*')] )"
-# @CODE
-#
-# It will cause the dependency to look like:
-# @CODE
-# DEPEND="doc? ( dev-python/epydoc[python_targets_python2_7?] )"
-# @CODE
-python_gen_usedep() {
-	debug-print-function ${FUNCNAME} "${@}"
-
-	# output only once, during some reasonable phase
-	# (avoid spamming cache regen runs)
-	if [[ ${EBUILD_PHASE} == setup ]]; then
-		eqawarn "python_gen_usedep() is deprecated. Please use python_gen_cond_dep instead."
-	fi
-	_python_gen_usedep "${@}"
-}
-
 # @FUNCTION: python_gen_useflags
 # @USAGE: [<pattern>...]
 # @DESCRIPTION:
-- 
2.25.1



  parent reply	other threads:[~2020-02-29 20:44 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-29 20:41 [gentoo-dev] [PATCH 00/25] python-r2 eclass suite Michał Górny
2020-02-29 20:41 ` [gentoo-dev] [PATCH 01/25] eclass: Copy python-r1 suite to python-r2 Michał Górny
2020-02-29 20:41 ` [gentoo-dev] [PATCH 02/25] distutils-r2.eclass: Remove EXAMPLES Michał Górny
2020-02-29 20:41 ` [gentoo-dev] [PATCH 03/25] distutils-r2.eclass: Remove no-op subphase defaults Michał Górny
2020-02-29 20:41 ` [gentoo-dev] [PATCH 04/25] distutils-r2.eclass: Remove distutils.eclass checks Michał Górny
2020-02-29 20:41 ` [gentoo-dev] [PATCH 05/25] distutils-r2.eclass: Make all old QA warnings fatal Michał Górny
2020-02-29 20:41 ` Michał Górny [this message]
2020-02-29 20:41 ` [gentoo-dev] [PATCH 07/25] python-utils-r2.eclass: Remove python.eclass checks Michał Górny
2020-02-29 20:41 ` [gentoo-dev] [PATCH 08/25] python-utils-r2.eclass: Mark python_wrapper_setup private Michał Górny
2020-02-29 20:41 ` [gentoo-dev] [PATCH 09/25] python-utils-r2.eclass: Mark python_is_installed private Michał Górny
2020-02-29 20:41 ` [gentoo-dev] [PATCH 10/25] python-utils-r2.eclass: Add missing @INTERNAL to private func Michał Górny
2020-02-29 20:41 ` [gentoo-dev] [PATCH 11/25] python-utils-r2.eclass: Fix obsolete docs on python_export_best Michał Górny
2020-02-29 20:41 ` [gentoo-dev] [PATCH 12/25] python-utils-r2.eclass: Mark python_export private Michał Górny
2020-02-29 20:41 ` [gentoo-dev] [PATCH 13/25] python-utils-r2.eclass: Remove PYTHON_SITEDIR export Michał Górny
2020-02-29 20:41 ` [gentoo-dev] [PATCH 14/25] python-utils-r2.eclass: Remove PYTHON_INCLUDEDIR export Michał Górny
2020-02-29 20:41 ` [gentoo-dev] [PATCH 15/25] python-utils-r2.eclass: Remove PYTHON_LIBPATH export Michał Górny
2020-02-29 20:41 ` [gentoo-dev] [PATCH 16/25] python-utils-r2.eclass: Remove PYTHON_CFLAGS export Michał Górny
2020-02-29 20:41 ` [gentoo-dev] [PATCH 17/25] python-utils-r2.eclass: Remove PYTHON_LIBS export Michał Górny
2020-02-29 20:41 ` [gentoo-dev] [PATCH 18/25] python-utils-r2.eclass: Remove PYTHON_CONFIG export Michał Górny
2020-02-29 20:41 ` [gentoo-dev] [PATCH 19/25] python-utils-r2.eclass: Remove PYTHON_SCRIPTDIR export Michał Górny
2020-02-29 20:41 ` [gentoo-dev] [PATCH 20/25] python-single-r2.eclass: PYTHON_MULTI_USEDEP → PYTHON_USEDEP Michał Górny
2020-02-29 20:41 ` [gentoo-dev] [PATCH 21/25] distutils-r2.eclass: Pass --skip-build to install Michał Górny
2020-02-29 20:41 ` [gentoo-dev] [PATCH 22/25] eclass: python-r2.eclass → python-multi-r2.eclass Michał Górny
2020-02-29 20:41 ` [gentoo-dev] [PATCH 23/25] python-any-r2.eclass: Verbosely report used implementation Michał Górny
2020-02-29 20:42 ` [gentoo-dev] [PATCH 24/25] python-single-r2.eclass: Report used impl verbosely Michał Górny
2020-02-29 20:42 ` [gentoo-dev] [PATCH 25/25] python-multi-r2.eclass: Report python_setup " Michał Górny

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200229204201.99290-7-mgorny@gentoo.org \
    --to=mgorny@gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    --cc=python@gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox