commit:     bb12657fddf8b463de4bdd858b805b0eaa2aaf5a
Author:     Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
AuthorDate: Mon Sep 19 21:43:27 2016 +0000
Commit:     Andreas Hüttel <dilfridge <AT> gentoo <DOT> org>
CommitDate: Mon Sep 19 21:44:33 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bb12657f

dev-lang/perl: Allow finetuning with EXTRA_ECONF, bug 558070

Package-Manager: portage-2.3.0

 dev-lang/perl/perl-5.24.0-r1.ebuild | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/dev-lang/perl/perl-5.24.0-r1.ebuild 
b/dev-lang/perl/perl-5.24.0-r1.ebuild
index e4d7ab2..20d0186 100644
--- a/dev-lang/perl/perl-5.24.0-r1.ebuild
+++ b/dev-lang/perl/perl-5.24.0-r1.ebuild
@@ -380,6 +380,10 @@ src_configure() {
 
        myconf -Dnoextensions="${disabled_extensions}"
 
+       [[ -n "${EXTRA_ECONF}" ]] && ewarn During Perl build, 
EXTRA_ECONF=${EXTRA_ECONF}
+       # allow fiddling via EXTRA_ECONF, bug 558070
+       eval "local -a EXTRA_ECONF=(${EXTRA_ECONF})"
+
        sh Configure \
                -des \
                -Duseshrplib \
@@ -419,7 +423,8 @@ src_configure() {
                -Dsh="${EPREFIX}"/bin/sh \
                -Dtargetsh="${EPREFIX}"/bin/sh \
                -Uusenm \
-               "${myconf[@]}" || die "Unable to configure"
+               "${myconf[@]}" \
+               "${EXTRA_ECONF[@]}" || die "Unable to configure"
 }
 
 src_test() {

Reply via email to