dev-libs/libassuan: Simplified ebuilds a bit
authorLars Wendler <polynomial-c@gentoo.org>
Thu, 9 Jan 2020 08:57:24 +0000 (09:57 +0100)
committerLars Wendler <polynomial-c@gentoo.org>
Thu, 9 Jan 2020 08:57:51 +0000 (09:57 +0100)
Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
dev-libs/libassuan/libassuan-2.5.1-r1.ebuild
dev-libs/libassuan/libassuan-2.5.3.ebuild

index 5ad1133fd20595e31feef4ede14cd63cec8afd8b..1243768e5c148e7c7955e11f2eafed8775c9d957 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
@@ -33,10 +33,12 @@ src_prepare() {
 }
 
 src_configure() {
-       econf \
-               $(use_enable static-libs static) \
-               GPG_ERROR_CONFIG="${EROOT}/usr/bin/${CHOST}-gpg-error-config" \
-               $("${S}/configure" --help | grep -- '--without-.*-prefix' | sed -e 's/^ *\([^ ]*\) .*/\1/g')
+       local myeconfargs=(
+               $(use_enable static-libs static)
+               GPG_ERROR_CONFIG="${EROOT}/usr/bin/${CHOST}-gpg-error-config"
+               $("${S}/configure" --help | grep -o -- '--without-.*-prefix')
+       )
+       econf "${myeconfargs[@]}"
 }
 
 src_install() {
index 8a00919e7748f5e5cd763d0bd38c04a28d056dbc..aca104db0f0481577306a572360a522e0ce4eaf7 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
@@ -33,10 +33,12 @@ src_prepare() {
 }
 
 src_configure() {
-       econf \
-               $(use_enable static-libs static) \
-               GPG_ERROR_CONFIG="${EROOT}/usr/bin/${CHOST}-gpg-error-config" \
-               $("${S}/configure" --help | grep -- '--without-.*-prefix' | sed -e 's/^ *\([^ ]*\) .*/\1/g')
+       local myeconfargs=(
+               $(use_enable static-libs static)
+               GPG_ERROR_CONFIG="${EROOT}/usr/bin/${CHOST}-gpg-error-config"
+               $("${S}/configure" --help | grep -o -- '--without-.*-prefix')
+       )
+       econf "${myeconfargs[@]}"
 }
 
 src_install() {