--- libproxy-0.4.1.ebuild +++ libproxy-0.4.1.ebuild @@ -4,6 +4,7 @@ EAPI="2" CMAKE_MIN_VERSION="2.8" +PYTHON_DEPEND="python? 2:2.5" inherit cmake-utils eutils python portability @@ -21,7 +22,6 @@ kde? ( >=kde-base/kdelibs-4.3 ) networkmanager? ( net-misc/networkmanager ) perl? ( dev-lang/perl ) - python? ( >=dev-lang/python-2.5 ) vala? ( dev-lang/vala ) webkit? ( net-libs/webkit-gtk ) xulrunner? ( >=net-libs/xulrunner-1.9.0.11-r1:1.9 )" @@ -31,6 +31,12 @@ DOCS="AUTHORS NEWS README ChangeLog" +pkg_setup() { + if use python; then + python_set_active_version 2 + fi +} + src_prepare() { base_src_prepare if use debug; then