aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--x11-themes/kf5-breeze-icons/Makefile3
-rw-r--r--x11-themes/kf5-breeze-icons/files/patch-CMakeLists.txt17
2 files changed, 19 insertions, 1 deletions
diff --git a/x11-themes/kf5-breeze-icons/Makefile b/x11-themes/kf5-breeze-icons/Makefile
index f93a3289a1eb..15bd2e3a9d4f 100644
--- a/x11-themes/kf5-breeze-icons/Makefile
+++ b/x11-themes/kf5-breeze-icons/Makefile
@@ -20,7 +20,8 @@ USE_QT= buildtools_build core qmake_build testlib
SHEBANG_FILES= svg-xml-script-template.py generate-24px-versions.py
NO_ARCH= yes
-CMAKE_ARGS= -DXMLLINT_EXE:PATH=''
+CMAKE_ARGS= -DXMLLINT_EXE:PATH='' \
+ -DPython3_EXECUTABLE:PATH=${PYTHON_CMD}
CMAKE_ON= WITH_ICON_GENERATION
.include <bsd.port.mk>
diff --git a/x11-themes/kf5-breeze-icons/files/patch-CMakeLists.txt b/x11-themes/kf5-breeze-icons/files/patch-CMakeLists.txt
new file mode 100644
index 000000000000..52434680ab3b
--- /dev/null
+++ b/x11-themes/kf5-breeze-icons/files/patch-CMakeLists.txt
@@ -0,0 +1,17 @@
+--- CMakeLists.txt.orig 2020-10-04 09:45:37 UTC
++++ CMakeLists.txt
+@@ -25,11 +25,11 @@ include(GtkUpdateIconCache)
+ set(REQUIRED_QT_VERSION 5.12.0)
+
+ # Find Python 3
+-find_package (Python 3 COMPONENTS Interpreter)
++find_package (Python3 COMPONENTS Interpreter)
+
+-if(Python_FOUND)
++if(Python3_FOUND)
+ # Find lxml Python 3 module
+- exec_program(${Python_EXECUTABLE}
++ exec_program(${Python3_EXECUTABLE}
+ ARGS "-c \"import lxml; print(lxml.get_include())\""
+ RETURN_VALUE LXML_NOT_FOUND # Returns 0 or false if successful
+ )