--- file_not_specified_in_diff +++ file_not_specified_in_diff @@ -, +, @@ --- libproxy-0.4.2.ebuild +++ libproxy-0.4.2.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 @@ -59,10 +65,12 @@ pkg_postinst() { if use python; then python_need_rebuild - python_mod_optimize "$(python_get_sitedir)/${PN}.py" + python_mod_optimize $(python_get_sitedir)/${PN}.py fi } pkg_postrm() { - python_mod_cleanup /usr/$(get_libdir)/python*/site-packages/${PN}.py + if use python; then + python_mod_cleanup $(python_get_sitedir)/${PN}.py + fi }