diff options
-rw-r--r-- | dev-libs/libcharon/libcharon-4.3.0.ebuild | 7 |
1 files changed, 7 insertions, 0 deletions
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 +} |