diff options
author | Michał Górny <mgorny@gentoo.org> | 2015-11-08 10:56:11 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2015-11-11 11:22:43 +0100 |
commit | b6387d3230123eda5c2751a6eb991087a5df84e5 (patch) | |
tree | e4a72b4ec30faf337be1801e510b11060d3c3ea8 /dev-lang/python/python-3.5.0-r2.ebuild | |
parent | bc3dd58ee3a2581ac1a2f9f36ec94929f5ac2a6a (diff) | |
download | gentoo-b6387d3230123eda5c2751a6eb991087a5df84e5.tar.gz gentoo-b6387d3230123eda5c2751a6eb991087a5df84e5.tar.xz |
dev-lang/python: Replace python3.x executables with symlinks
Replace python3.X executables (duplicate to python3.Xm) installed by
the build system with symlinks to the ABIFLAGS-enabled variants.
Diffstat (limited to 'dev-lang/python/python-3.5.0-r2.ebuild')
-rw-r--r-- | dev-lang/python/python-3.5.0-r2.ebuild | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/dev-lang/python/python-3.5.0-r2.ebuild b/dev-lang/python/python-3.5.0-r2.ebuild index 4029ec36312..34ac46e1439 100644 --- a/dev-lang/python/python-3.5.0-r2.ebuild +++ b/dev-lang/python/python-3.5.0-r2.ebuild @@ -243,6 +243,14 @@ src_install() { # Fix collisions between different slots of Python. rm -f "${ED}usr/$(get_libdir)/libpython3.so" + # Cheap hack to get version with ABIFLAGS + local abiver=$(cd "${ED}usr/include"; echo python*) + # Replace python3.X with a symlink if appropriate + if [[ ${abiver} != python${SLOT} ]]; then + rm "${ED}usr/bin/python${SLOT}" || die + dosym "${abiver}" "/usr/bin/python${SLOT}" + fi + use elibc_uclibc && rm -fr "${libdir}/test" use sqlite || rm -fr "${libdir}/"{sqlite3,test/test_sqlite*} use tk || rm -fr "${ED}usr/bin/idle${SLOT}" "${libdir}/"{idlelib,tkinter,test/test_tk*} |