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 | |
parent | dev-lang/python: Re-enable ABIFLAGS on python3.3+ (diff) | |
download | gentoo-b6387d3230123eda5c2751a6eb991087a5df84e5.tar.gz gentoo-b6387d3230123eda5c2751a6eb991087a5df84e5.tar.bz2 gentoo-b6387d3230123eda5c2751a6eb991087a5df84e5.zip |
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')
-rw-r--r-- | dev-lang/python/python-3.3.5-r3.ebuild | 8 | ||||
-rw-r--r-- | dev-lang/python/python-3.4.3-r3.ebuild | 8 | ||||
-rw-r--r-- | dev-lang/python/python-3.5.0-r2.ebuild | 8 |
3 files changed, 24 insertions, 0 deletions
diff --git a/dev-lang/python/python-3.3.5-r3.ebuild b/dev-lang/python/python-3.3.5-r3.ebuild index d4b6b034e09c..7164d5a178ee 100644 --- a/dev-lang/python/python-3.3.5-r3.ebuild +++ b/dev-lang/python/python-3.3.5-r3.ebuild @@ -252,6 +252,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 + if use build; then rm -fr "${ED}usr/bin/idle${SLOT}" "${libdir}/"{idlelib,sqlite3,test,tkinter} else diff --git a/dev-lang/python/python-3.4.3-r3.ebuild b/dev-lang/python/python-3.4.3-r3.ebuild index b2b09ced1a33..53c39a05aadf 100644 --- a/dev-lang/python/python-3.4.3-r3.ebuild +++ b/dev-lang/python/python-3.4.3-r3.ebuild @@ -237,6 +237,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*} diff --git a/dev-lang/python/python-3.5.0-r2.ebuild b/dev-lang/python/python-3.5.0-r2.ebuild index 4029ec363128..34ac46e14394 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*} |