diff options
author | Naohiro Aota <naota@gentoo.org> | 2011-08-07 09:58:09 +0000 |
---|---|---|
committer | Naohiro Aota <naota@gentoo.org> | 2011-08-07 09:58:09 +0000 |
commit | 0a0bdf00b8ff56e68e54b64690b7636706baf53f (patch) | |
tree | 7390a99923ebad25e43cdd1cef756206c6e3f7d5 /dev-lang/python/python-2.7.2-r2.ebuild | |
parent | Fix building with libpng15 wrt #355883 by Mike Frysinger (diff) | |
download | historical-0a0bdf00b8ff56e68e54b64690b7636706baf53f.tar.gz historical-0a0bdf00b8ff56e68e54b64690b7636706baf53f.tar.bz2 historical-0a0bdf00b8ff56e68e54b64690b7636706baf53f.zip |
Move more linux3 compat hack into kernel_linux check. Bug #374579
Package-Manager: portage-2.2.0_alpha50/cvs/Linux x86_64
Diffstat (limited to 'dev-lang/python/python-2.7.2-r2.ebuild')
-rw-r--r-- | dev-lang/python/python-2.7.2-r2.ebuild | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/dev-lang/python/python-2.7.2-r2.ebuild b/dev-lang/python/python-2.7.2-r2.ebuild index 75f05f0d9989..e58570a2357f 100644 --- a/dev-lang/python/python-2.7.2-r2.ebuild +++ b/dev-lang/python/python-2.7.2-r2.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/python/python-2.7.2-r2.ebuild,v 1.2 2011/08/05 11:39:01 naota Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-lang/python/python-2.7.2-r2.ebuild,v 1.3 2011/08/07 09:58:09 naota Exp $ EAPI="2" WANT_AUTOMAKE="none" @@ -329,12 +329,14 @@ src_install() { newconfd "${FILESDIR}/pydoc.conf" pydoc-${SLOT} || die "newconfd failed" newinitd "${FILESDIR}/pydoc.init" pydoc-${SLOT} || die "newinitd failed" - if [ -d "${ED}$(python_get_libdir)/plat-linux2" ];then - cp -r "${ED}$(python_get_libdir)/plat-linux2" \ - "${ED}$(python_get_libdir)/plat-linux3" || die "copy plat-linux failed" - else - cp -r "${ED}$(python_get_libdir)/plat-linux3" \ - "${ED}$(python_get_libdir)/plat-linux2" || die "copy plat-linux failed" + if use kernel_linux; then + if [ -d "${ED}$(python_get_libdir)/plat-linux2" ];then + cp -r "${ED}$(python_get_libdir)/plat-linux2" \ + "${ED}$(python_get_libdir)/plat-linux3" || die "copy plat-linux failed" + else + cp -r "${ED}$(python_get_libdir)/plat-linux3" \ + "${ED}$(python_get_libdir)/plat-linux2" || die "copy plat-linux failed" + fi fi sed \ |