commit: 28454deb31bada0afb7ddb7c1ca228301725905f Author: Michael Perlov <perlovka <AT> gmail <DOT> com> AuthorDate: Sat Sep 28 23:36:32 2019 +0000 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> CommitDate: Wed Oct 16 05:22:00 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=28454deb
dev-libs/libcharon: use current python version Package-Manager: Portage-2.3.76, Repoman-2.3.17 Signed-off-by: Michael Perlov <perlovka <AT> gmail.com> Closes: https://github.com/gentoo/gentoo/pull/13073 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> dev-libs/libcharon/libcharon-4.3.0.ebuild | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dev-libs/libcharon/libcharon-4.3.0.ebuild b/dev-libs/libcharon/libcharon-4.3.0.ebuild index b8424b88bd2..19d4856e435 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 +}
