python-any-r1_pkg_setup
kde5_pkg_setup
}
+
+src_prepare() {
+ kde5_src_prepare
+ if has_version "<dev-util/cmake-3.16_rc1"; then
+ eapply "${FILESDIR}"/${PN}-5.16.5-cmake-pre-3.16.patch
+ fi
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DPython3_EXECUTABLE="${PYTHON}"
+ )
+ if has_version "<dev-util/cmake-3.16_rc1"; then
+ mycmakeargs=( -DPYTHON_EXECUTABLE="${PYTHON}" )
+ fi
+ kde5_src_configure
+}
python-any-r1_pkg_setup
kde5_pkg_setup
}
+
+src_prepare() {
+ kde5_src_prepare
+ if has_version "<dev-util/cmake-3.16_rc1"; then
+ eapply "${FILESDIR}"/${PN}-5.16.5-cmake-pre-3.16.patch
+ fi
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DPython3_EXECUTABLE="${PYTHON}"
+ )
+ if has_version "<dev-util/cmake-3.16_rc1"; then
+ mycmakeargs=( -DPYTHON_EXECUTABLE="${PYTHON}" )
+ fi
+ kde5_src_configure
+}
--- /dev/null
+Thanks-to: Arfrever Frehtes Taifersar Arahesis <arfrever.fta@gmail.com>
+
+--- a/cmake/FindPythonCairo.cmake
++++ b/cmake/FindPythonCairo.cmake
+@@ -1,10 +1,4 @@
+-if(CMAKE_VERSION VERSION_LESS 3.12.0)
+- find_package(PythonInterp 3 REQUIRED)
+- # PythonInterp sets PYTHON_EXECUTABLE
+-else()
+- find_package(Python3 COMPONENTS Interpreter REQUIRED)
+- set(PYTHON_EXECUTABLE "${Python3_EXECUTABLE}")
+-endif()
++find_package(PythonInterp 3 REQUIRED)
+
+ # Check for python cairo
+ execute_process(COMMAND ${PYTHON_EXECUTABLE} -c "import cairo"