--- libftdi.orig/libftdi-0.19.ebuild 2011-11-18 18:25:36.664958737 +0800 +++ libftdi.orig/libftdi-0.19.ebuild 2011-11-15 18:43:15.646000022 +0800 @@ -2,10 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-embedded/libftdi/libftdi-0.19.ebuild,v 1.3 2011/10/20 15:40:57 vapier Exp $ -EAPI="2" +EAPI="3" +PYTHON_DEPEND="python? 2" + +inherit python if [[ ${PV} == 9999* ]] ; then EGIT_REPO_URI="git://developer.intra2net.com/${PN}" @@ -25,14 +22,8 @@ RDEPEND="virtual/libusb:0 cxx? ( dev-libs/boost )" DEPEND="${RDEPEND} - doc? ( app-doc/doxygen ) - python? ( dev-lang/python )" + doc? ( app-doc/doxygen )" + +pkg_setup() { + if use python; then + python_set_active_version 2 + python_pkg_setup + fi +} src_prepare() { if [[ ${PV} == 9999* ]] ; then