dev-libs/libgpg-error: Simplified ebuild a bit
authorLars Wendler <polynomial-c@gentoo.org>
Thu, 9 Jan 2020 09:11:31 +0000 (10:11 +0100)
committerLars Wendler <polynomial-c@gentoo.org>
Thu, 9 Jan 2020 09:11:31 +0000 (10:11 +0100)
Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
dev-libs/libgpg-error/libgpg-error-1.36.ebuild

index 1c2b8171b08fbf501b07d5718a438cdda5648a7c..973e907a96a198b4114fbfcef8ccf0442d37dd8c 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -38,17 +38,19 @@ src_prepare() {
 }
 
 multilib_src_configure() {
-       ECONF_SOURCE="${S}" econf \
-               $(multilib_is_native_abi || echo --disable-languages) \
-               $(use_enable common-lisp languages) \
-               $(use_enable nls) \
-               $(use_enable static-libs static) \
-               --enable-threads \
-               CC_FOR_BUILD="$(tc-getBUILD_CC)" \
-               $("${S}/configure" --help | grep -- '--without-.*-prefix' | sed -e 's/^ *\([^ ]*\) .*/\1/g')
+       local myeconfargs=(
+               $(multilib_is_native_abi || echo --disable-languages)
+               $(use_enable common-lisp languages)
+               $(use_enable nls)
+               $(use_enable static-libs static)
+               --enable-threads
+               CC_FOR_BUILD="$(tc-getBUILD_CC)"
+               $("${S}/configure" --help | grep -o -- '--without-.*-prefix')
+       )
+       ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
 }
 
 multilib_src_install_all() {
        einstalldocs
-       find "${D}" -name '*.la' -delete || die
+       find "${ED}" -type f -name '*.la' -delete || die
 }