From: Michael Perlov Date: Sat, 28 Sep 2019 23:36:32 +0000 (+0300) Subject: dev-libs/libcharon: use current python version X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=28454deb31bada0afb7ddb7c1ca228301725905f;p=gentoo.git dev-libs/libcharon: use current python version Package-Manager: Portage-2.3.76, Repoman-2.3.17 Signed-off-by: Michael Perlov Closes: https://github.com/gentoo/gentoo/pull/13073 Signed-off-by: Joonas Niilola --- diff --git a/dev-libs/libcharon/libcharon-4.3.0.ebuild b/dev-libs/libcharon/libcharon-4.3.0.ebuild index b8424b88bd25..19d4856e4353 100644 --- a/dev-libs/libcharon/libcharon-4.3.0.ebuild +++ b/dev-libs/libcharon/libcharon-4.3.0.ebuild @@ -21,3 +21,10 @@ REQUIRED_USE="${PYTHON_REQUIRED_USE}" RDEPEND="${PYTHON_DEPS}" S="${WORKDIR}/${MY_PN}-${PV}" + +src_prepare() { + # Use current python version, not the latest installed + sed -i "s/find_package(Python3 3.4 REQUIRED/find_package(Python3 ${EPYTHON##python} EXACT REQUIRED/g" CMakeLists.txt || die + + cmake-utils_src_prepare +}