commit:     e773865752b649a6c41a31e18af8ce0157b7a165
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Sun Jan 16 07:35:30 2022 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Sun Jan 16 07:45:30 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e7738657

app-portage/iwdevtools: allow using app-misc/getopt for 9999

It's a bit automagic'y but switching between the two hardly
makes sense given the keywords.

Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>

 app-portage/iwdevtools/iwdevtools-9999.ebuild | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/app-portage/iwdevtools/iwdevtools-9999.ebuild 
b/app-portage/iwdevtools/iwdevtools-9999.ebuild
index e646ee963668..238ca161ff34 100644
--- a/app-portage/iwdevtools/iwdevtools-9999.ebuild
+++ b/app-portage/iwdevtools/iwdevtools-9999.ebuild
@@ -1,4 +1,4 @@
-# Copyright 2021 Gentoo Authors
+# Copyright 2021-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -21,7 +21,7 @@ RDEPEND="
        sys-apps/diffutils
        sys-apps/file
        sys-apps/portage
-       sys-apps/util-linux"
+       || ( sys-apps/util-linux app-misc/getopt )"
 BDEPEND="
        sys-apps/help2man
        test? ( ${RDEPEND} )"
@@ -34,6 +34,8 @@ src_configure() {
                $(meson_use test)
        )
 
+       has_version sys-apps/util-linux || emesonargs+=( -Dgetopt=getopt-long )
+
        meson_src_configure
 }
 

Reply via email to