mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-06 12:58:16 -07:00
To avoid duplicated code, replace the body of
bash-completion-r1.eclass wit
inherit shell-completion
since everything is now in shell-completion.elcass.
Signed-off-by: Florian Schmaus <flow@gentoo.org>
Part-of: https://github.com/gentoo/gentoo/pull/46458
36 lines
762 B
Bash
36 lines
762 B
Bash
# Copyright 1999-2026 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
# @ECLASS: bash-completion-r1.eclass
|
|
# @MAINTAINER:
|
|
# mgorny@gentoo.org
|
|
# @SUPPORTED_EAPIS: 7 8
|
|
# @PROVIDES: shell-completion
|
|
# @BLURB: A few quick functions to install bash-completion files
|
|
# @DESCRIPTION:
|
|
# This eclass provides functions to install bash-completion files.
|
|
# For EAPI 9 or newer, use shell-completion.eclass instead.
|
|
# @EXAMPLE:
|
|
#
|
|
# @CODE
|
|
# EAPI=8
|
|
#
|
|
# src_configure() {
|
|
# econf \
|
|
# --with-bash-completion-dir="$(get_bashcompdir)"
|
|
# }
|
|
#
|
|
# src_install() {
|
|
# default
|
|
#
|
|
# newbashcomp contrib/${PN}.bash-completion ${PN}
|
|
# }
|
|
# @CODE
|
|
|
|
if [[ -z ${_BASH_COMPLETION_R1_ECLASS} ]]; then
|
|
_BASH_COMPLETION_R1_ECLASS=1
|
|
|
|
inherit shell-completion
|
|
|
|
fi
|