summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2019-04-20 21:04:17 +0200
committerAndreas Sturmlechner <asturm@gentoo.org>2019-04-21 13:30:56 +0200
commitb59c06bbdbec6b256da79694928c72c121850fd6 (patch)
tree8b7f39bb549fc136623e9ff97c0e157695e960ae /kde-frameworks
parentapp-office/libreoffice-l10n: Drop 6.2.2.2 (diff)
downloadgentoo-b59c06bbdbec6b256da79694928c72c121850fd6.tar.gz
gentoo-b59c06bbdbec6b256da79694928c72c121850fd6.tar.bz2
gentoo-b59c06bbdbec6b256da79694928c72c121850fd6.zip
kde-frameworks/ki18n: Fix build with python2_7
Package-Manager: Portage-2.3.64, Repoman-2.3.12 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'kde-frameworks')
-rw-r--r--kde-frameworks/ki18n/files/ki18n-5.57.0-python.patch11
-rw-r--r--kde-frameworks/ki18n/ki18n-5.57.0.ebuild2
2 files changed, 13 insertions, 0 deletions
diff --git a/kde-frameworks/ki18n/files/ki18n-5.57.0-python.patch b/kde-frameworks/ki18n/files/ki18n-5.57.0-python.patch
new file mode 100644
index 000000000000..8b863e4e0fca
--- /dev/null
+++ b/kde-frameworks/ki18n/files/ki18n-5.57.0-python.patch
@@ -0,0 +1,11 @@
+--- a/cmake/KF5I18nMacros.cmake.in 2019-04-07 09:28:26.000000000 +0200
++++ b/cmake/KF5I18nMacros.cmake.in 2019-04-20 20:56:41.628484762 +0200
+@@ -31,7 +31,7 @@
+ # solution if it cannot be found in $PATH when building applications.
+ set(_KI18N_PYTHON_EXECUTABLE "@PYTHON_EXECUTABLE@")
+
+-find_program(KI18N_PYTHON_EXECUTABLE NAMES python3 python2 python)
++find_program(KI18N_PYTHON_EXECUTABLE NAMES python)
+ if(NOT KI18N_PYTHON_EXECUTABLE)
+ set(KI18N_PYTHON_EXECUTABLE "${_KI18N_PYTHON_EXECUTABLE}")
+ endif()
diff --git a/kde-frameworks/ki18n/ki18n-5.57.0.ebuild b/kde-frameworks/ki18n/ki18n-5.57.0.ebuild
index 0793540bf12d..cd5cad14afbe 100644
--- a/kde-frameworks/ki18n/ki18n-5.57.0.ebuild
+++ b/kde-frameworks/ki18n/ki18n-5.57.0.ebuild
@@ -22,6 +22,8 @@ DEPEND="${RDEPEND}
test? ( $(add_qt_dep qtconcurrent) )
"
+PATCHES=( "${FILESDIR}/${P}-python.patch" )
+
pkg_setup() {
kde5_pkg_setup
python-single-r1_pkg_setup