--- xac.orig/xac-0.6_pre4.ebuild 2011-11-16 05:33:52.014999990 +0800 +++ xac.orig/xac-0.6_pre4.ebuild 2011-11-16 06:12:37.998999917 +0800 @@ -2,7 +2,11 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/x11-misc/xac/xac-0.6_pre4.ebuild,v 1.6 2009/09/30 15:52:20 josejx Exp $ -inherit toolchain-funcs eutils +EAPI="3" +PYTHON_DEPEND="2" +RESTRICT_PYTHON_ABIS="3.*" + +inherit toolchain-funcs eutils python distutils DESCRIPTION="Xorgautoconfig (xac) generates configuration files for X.org" HOMEPAGE="http://dev.gentoo.org/~josejx/xac.html" @@ -15,11 +19,12 @@ RDEPEND=" x11-base/xorg-server" SRC_URI="mirror://gentoo/${P}.tar.bz2" -src_unpack() { - unpack ${A} - cd "${S}" - - ## Replace /usr/lib/xac with libdir version +pkg_setup() { + python_set_active_version 2 +} + +src_prepare() { + ### Replace /usr/lib/xac with libdir version sed -i "s:/usr/lib/xac:/usr/$(get_libdir)/xac:" xac ### Fix the x86 bios call with newer glibc @@ -37,6 +42,7 @@ src_install() { local xac_base="/usr/$(get_libdir)/xac" + python_convert_shebangs -r 2 "${ED}" dosbin "${S}"/xac