commit:     09013f81bd972b541d9ada68df0800e234f36bb4
Author:     Jory Pratt <anarchy <AT> gentoo <DOT> org>
AuthorDate: Sun May  2 15:43:43 2021 +0000
Commit:     Jory Pratt <anarchy <AT> gentoo <DOT> org>
CommitDate: Sun May  2 15:43:43 2021 +0000
URL:        https://gitweb.gentoo.org/proj/musl.git/commit/?id=09013f81

sys-auth/polkit: unbreak -duktape builds

Closes: https://github.com/gentoo/musl/issues/384
Package-Manager: Portage-3.0.18, Repoman-3.0.2
Signed-off-by: Jory Pratt <anarchy <AT> gentoo.org>

 sys-auth/polkit/polkit-0.118-r1.ebuild | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/sys-auth/polkit/polkit-0.118-r1.ebuild 
b/sys-auth/polkit/polkit-0.118-r1.ebuild
index c8f24c7..9af062e 100644
--- a/sys-auth/polkit/polkit-0.118-r1.ebuild
+++ b/sys-auth/polkit/polkit-0.118-r1.ebuild
@@ -95,7 +95,6 @@ src_configure() {
                --enable-man-pages
                --disable-gtk-doc
                --disable-examples
-               $(use_with duktape)
                $(use_enable elogind libelogind)
                $(use_enable introspection)
                $(use_enable nls)
@@ -106,6 +105,11 @@ src_configure() {
                $(use_enable test)
                --with-os-type=gentoo
        )
+
+       if use duktape; then
+                myeconfargs+=( --with-duktape )
+       fi
+
        econf "${myeconfargs[@]}"
 }
 

Reply via email to