commit:     27ac8491054847a6da19a7cb00e4abf4ca02a110
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Wed Dec 16 07:43:22 2015 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Wed Dec 16 07:43:22 2015 +0000
URL:        https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=27ac8491

dev-lang/python: fix install on Darwin for 3.4 and 3.5

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 f86d0ab..4fdcfed 100644
--- a/dev-lang/python/python-3.4.3-r5.ebuild
+++ b/dev-lang/python/python-3.4.3-r5.ebuild
@@ -342,7 +342,7 @@ src_install() {
 
        # if not using a cross-compiler, use the fresh binary
        if ! tc-is-cross-compiler; then
-               local -x PYTHON=./python
+               local -x PYTHON=./python$([[ ${CHOST} == *-darwin* ]] && echo 
".exe")
                local -x LD_LIBRARY_PATH=${LD_LIBRARY_PATH+${LD_LIBRARY_PATH}:}.
        else
                vars=( PYTHON "${vars[@]}" )

diff --git a/dev-lang/python/python-3.5.1.ebuild 
b/dev-lang/python/python-3.5.1.ebuild
index 471af4c..ff79159 100644
--- a/dev-lang/python/python-3.5.1.ebuild
+++ b/dev-lang/python/python-3.5.1.ebuild
@@ -345,7 +345,7 @@ src_install() {
 
        # if not using a cross-compiler, use the fresh binary
        if ! tc-is-cross-compiler; then
-               local -x PYTHON=./python
+               local -x PYTHON=./python$([[ ${CHOST} == *-darwin* ]] && echo 
".exe")
                local -x LD_LIBRARY_PATH=${LD_LIBRARY_PATH+${LD_LIBRARY_PATH}:}.
        else
                vars=( PYTHON "${vars[@]}" )

Reply via email to