commit:     24dab8a4443ded9b2f48f38a30f3c44524c9f5ac
Author:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
AuthorDate: Thu Jan  9 08:57:24 2020 +0000
Commit:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Thu Jan  9 08:57:51 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=24dab8a4

dev-libs/libassuan: Simplified ebuilds a bit

Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>

 dev-libs/libassuan/libassuan-2.5.1-r1.ebuild | 12 +++++++-----
 dev-libs/libassuan/libassuan-2.5.3.ebuild    | 12 +++++++-----
 2 files changed, 14 insertions(+), 10 deletions(-)

diff --git a/dev-libs/libassuan/libassuan-2.5.1-r1.ebuild 
b/dev-libs/libassuan/libassuan-2.5.1-r1.ebuild
index 5ad1133fd20..1243768e5c1 100644
--- a/dev-libs/libassuan/libassuan-2.5.1-r1.ebuild
+++ b/dev-libs/libassuan/libassuan-2.5.1-r1.ebuild
@@ -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() {

diff --git a/dev-libs/libassuan/libassuan-2.5.3.ebuild 
b/dev-libs/libassuan/libassuan-2.5.3.ebuild
index 8a00919e774..aca104db0f0 100644
--- a/dev-libs/libassuan/libassuan-2.5.3.ebuild
+++ b/dev-libs/libassuan/libassuan-2.5.3.ebuild
@@ -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() {

Reply via email to