games-fps/chocolate-doom: [QA] unconditionally install completion files

QA policy [0] says that we don't conditionalise installation of
small files. It's a wasteful rebuild and inconsistent across packages
for when users desire completions to be available.

[0] https://projects.gentoo.org/qa/policy-guide/installed-files.html#pg0301
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James 2021-07-25 04:04:15 +01:00
parent be8b011a1c
commit b04be9138d
No known key found for this signature in database
GPG Key ID: F4922810EEA0483B
1 changed files with 6 additions and 5 deletions

View File

@ -1,9 +1,9 @@
# Copyright 1999-2020 Gentoo Authors
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{7,8,9} )
PYTHON_COMPAT=( python3_{8,9} )
inherit autotools prefix python-any-r1 xdg
@ -15,7 +15,7 @@ SRC_URI="https://github.com/${PN}/${PN}/archive/${P}.tar.gz
LICENSE="BSD GPL-2+"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="bash-completion doc libsamplerate +midi png vorbis"
IUSE="doc libsamplerate +midi png vorbis"
DEPEND="
media-libs/libsdl2[video]
@ -24,8 +24,9 @@ DEPEND="
libsamplerate? ( media-libs/libsamplerate )
png? ( media-libs/libpng:= )"
RDEPEND="${DEPEND}"
# ${PYTHON_DEPS} for bash-completion
BDEPEND="
bash-completion? ( ${PYTHON_DEPS} )
${PYTHON_DEPS}
doc? ( ${PYTHON_DEPS} )"
S="${WORKDIR}/${PN}-${P}"
@ -69,7 +70,7 @@ src_prepare() {
src_configure() {
econf \
$(use_enable bash-completion) \
--enable-bash-completion \
$(use_enable doc) \
--disable-fonts \
--disable-icons \