commit:     81dce654da1e20abd66c4b8e91c327ebfb61b8d2
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Mon Dec 14 20:39:09 2015 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Mon Dec 14 20:39:09 2015 +0000
URL:        https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=81dce654

dev-lang/python: fix compilation on OSX, bug #568104

Package-Manager: portage-2.2.20-prefix

 dev-lang/python/python-2.7.11.ebuild | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/dev-lang/python/python-2.7.11.ebuild 
b/dev-lang/python/python-2.7.11.ebuild
index 14035f3..5b9eb05 100644
--- a/dev-lang/python/python-2.7.11.ebuild
+++ b/dev-lang/python/python-2.7.11.ebuild
@@ -426,9 +426,6 @@ src_install() {
                pushd "${D}${fwdir}"/Versions/${SLOT}/lib > /dev/null
                ln -s ../../../../python${SLOT} || die
                popd > /dev/null
-               # remove now dead symlinks
-               rm "${ED}"/usr/lib/python${SLOT}/config/libpython${SLOT}.a
-               rm "${ED}"/usr/lib/python${SLOT}/config/libpython${SLOT}.dylib
 
                # fix up Makefile
                sed -i \
@@ -545,7 +542,7 @@ EOF
 
        # 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