commit: a7487da5de896684f0c4d26444a22c167f96642b
Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Wed Oct 23 06:34:10 2024 +0000
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Wed Oct 23 06:34:10 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a7487da5
net-misc/rdesktop: trivial refactor of src_configure
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
net-misc/rdesktop/rdesktop-1.9.0-r4.ebuild | 22 ++++++++++++----------
1 file changed, 12 insertions(+), 10 deletions(-)
diff --git a/net-misc/rdesktop/rdesktop-1.9.0-r4.ebuild
b/net-misc/rdesktop/rdesktop-1.9.0-r4.ebuild
index ce6ede3e54c1..d8113127a6f9 100644
--- a/net-misc/rdesktop/rdesktop-1.9.0-r4.ebuild
+++ b/net-misc/rdesktop/rdesktop-1.9.0-r4.ebuild
@@ -71,20 +71,22 @@ src_configure() {
# Upstream is "in need of new maintainers" so it may never be fixed.
filter-lto
+ local myeconfargs=(
+ --with-ipv6
+ $(use_enable xrandr)
+ $(use_enable kerberos credssp)
+ $(use_enable pcsc-lite smartcard)
+ )
+
if use pulseaudio; then
- sound_conf="--with-sound=pulse"
+ myeconfargs+=( --with-sound=pulse )
elif use ao; then
- sound_conf="--with-sound=libao"
+ myeconfargs+=( --with-sound=libao )
elif use alsa; then
- sound_conf="--with-sound=alsa"
+ myeconfargs+=( --with-sound=alsa )
else
- sound_conf=$(use_with oss sound oss)
+ myeconfargs+=( $(use_with oss sound oss) )
fi
- econf \
- --with-ipv6 \
- $(use_with xrandr) \
- $(use_enable kerberos credssp) \
- $(use_enable pcsc-lite smartcard) \
- ${sound_conf}
+ econf "${myeconfargs[@]}"
}