From af109483d9b0f7f127ee16879f105137f7d6b748 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Micha=C5=82=20G=C3=B3rny?= Date: Thu, 8 Sep 2011 19:06:46 +0000 Subject: [PATCH] Deprecate in favor of -r1. --- eclass/bash-completion.eclass | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/eclass/bash-completion.eclass b/eclass/bash-completion.eclass index 842c2ef88a41..c226878c5fd7 100644 --- a/eclass/bash-completion.eclass +++ b/eclass/bash-completion.eclass @@ -1,6 +1,10 @@ # Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/bash-completion.eclass,v 1.27 2011/08/22 04:46:31 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/bash-completion.eclass,v 1.28 2011/09/08 19:06:46 mgorny Exp $ + +# @DEPRECATED +# This eclass has been superseded by bash-completion-r1 eclass. +# Please modify your ebuilds to use that one instead. # @ECLASS: bash-completion.eclass # @MAINTAINER: @@ -12,6 +16,9 @@ # Simple eclass that provides an interface for installing # contributed (ie not included in bash-completion proper) # bash-completion scripts. +# +# Note: this eclass has been deprecated in favor of bash-completion-r1. Please +# use that one instead. # @ECLASS-VARIABLE: BASHCOMPLETION_NAME # @DESCRIPTION: @@ -22,6 +29,8 @@ # Space delimited list of files to install if dobashcompletion is called without # arguments. +inherit eutils + EXPORT_FUNCTIONS pkg_postinst IUSE="bash-completion" @@ -43,6 +52,9 @@ PDEPEND="bash-completion? ( app-shells/bash-completion )" dobashcompletion() { local f + eqawarn "bash-completion.eclass has been deprecated." + eqawarn "Please update your ebuilds to use bash-completion-r1 instead." + if [[ -z ${1} && -z ${BASHCOMPFILES} ]]; then die "Usage: dobashcompletion [file] [new file]" fi -- 2.26.2