commit:     966ace9bb7bf3bcecc41a21d0826f17eb3487f91
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Tue Feb  2 20:05:09 2016 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Tue Feb  2 20:05:09 2016 +0000
URL:        https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=966ace9b

dev-lang/python: fix RUNSHARED changes for non-Darwin

Package-Manager: portage-2.2.20-prefix

 dev-lang/python/python-3.4.3-r5.ebuild | 2 +-
 dev-lang/python/python-3.5.1.ebuild    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dev-lang/python/python-3.4.3-r5.ebuild 
b/dev-lang/python/python-3.4.3-r5.ebuild
index 5557b6c..1ea643d 100644
--- a/dev-lang/python/python-3.4.3-r5.ebuild
+++ b/dev-lang/python/python-3.4.3-r5.ebuild
@@ -83,7 +83,7 @@ src_prepare() {
                epatch 
"${WORKDIR}"/python-prefix-${PV}-gentoo-patches-${PREFIX_PATCHREV}
 
        # https://forums.developer.apple.com/thread/9233, bug #572726
-       sed -i -e 's:$(RUNSHARED) ./regen:export RUNSHARED=$(RUNSHARED); 
./regen:' \
+       sed -i -e '/$(RUNSHARED) .\/regen/s/^/export RUNSHARED=$(RUNSHARED); /' 
\
                Makefile.pre.in || die
        sed -i -e '/python$EXE/s/^/env ${RUNSHARED} /' \
                Lib/plat-darwin/regen || die

diff --git a/dev-lang/python/python-3.5.1.ebuild 
b/dev-lang/python/python-3.5.1.ebuild
index 4cf94bb..3e6454f 100644
--- a/dev-lang/python/python-3.5.1.ebuild
+++ b/dev-lang/python/python-3.5.1.ebuild
@@ -81,7 +81,7 @@ src_prepare() {
                epatch 
"${WORKDIR}"/python-prefix-${PV}-gentoo-patches-${PREFIX_PATCHREV}
 
        # https://forums.developer.apple.com/thread/9233, bug #572726
-       sed -i -e 's:$(RUNSHARED) ./regen:export RUNSHARED=$(RUNSHARED); 
./regen:' \
+       sed -i -e '/$(RUNSHARED) .\/regen/s/^/export RUNSHARED=$(RUNSHARED); /' 
\
                Makefile.pre.in || die
        sed -i -e '/python$EXE/s/^/env ${RUNSHARED} /' \
                Lib/plat-darwin/regen || die

Reply via email to