Deprecate in favor of -r1.
authorMichał Górny <mgorny@gentoo.org>
Thu, 8 Sep 2011 19:06:46 +0000 (19:06 +0000)
committerMichał Górny <mgorny@gentoo.org>
Thu, 8 Sep 2011 19:06:46 +0000 (19:06 +0000)
eclass/bash-completion.eclass

index 842c2ef88a411bcb25613c5f00a91bb88f5357c8..c226878c5fd7a3790f3a191bb1ea203a400ca6d6 100644 (file)
@@ -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