commit: 52045ba54d1775bf71e202085ce84fbd54ee690f Author: Michael Palimaka <kensington <AT> gentoo <DOT> org> AuthorDate: Sun Jul 13 15:29:33 2014 +0000 Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org> CommitDate: Sun Jul 13 15:29:33 2014 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/kde.git;a=commit;h=52045ba5
[dev-libs/extra-cmake-modules] Backport patch from upstream fixing build failure when LINGUAS is set and Qt4 is installed. Package-Manager: portage-2.2.10 --- ....ebuild => extra-cmake-modules-1.0.0-r1.ebuild} | 2 ++ .../files/extra-cmake-modules-1.0.0-linguas.patch | 42 ++++++++++++++++++++++ 2 files changed, 44 insertions(+) diff --git a/dev-libs/extra-cmake-modules/extra-cmake-modules-1.0.0.ebuild b/dev-libs/extra-cmake-modules/extra-cmake-modules-1.0.0-r1.ebuild similarity index 94% rename from dev-libs/extra-cmake-modules/extra-cmake-modules-1.0.0.ebuild rename to dev-libs/extra-cmake-modules/extra-cmake-modules-1.0.0-r1.ebuild index 0cde8c2..da40a74 100644 --- a/dev-libs/extra-cmake-modules/extra-cmake-modules-1.0.0.ebuild +++ b/dev-libs/extra-cmake-modules/extra-cmake-modules-1.0.0-r1.ebuild @@ -26,6 +26,8 @@ DEPEND=" ) " +PATCHES=( "${FILESDIR}/${P}-linguas.patch" ) + python_check_deps() { has_version "dev-python/sphinx[${PYTHON_USEDEP}]" } diff --git a/dev-libs/extra-cmake-modules/files/extra-cmake-modules-1.0.0-linguas.patch b/dev-libs/extra-cmake-modules/files/extra-cmake-modules-1.0.0-linguas.patch new file mode 100644 index 0000000..76bf989 --- /dev/null +++ b/dev-libs/extra-cmake-modules/files/extra-cmake-modules-1.0.0-linguas.patch @@ -0,0 +1,42 @@ +From 5acf1735f7f497662c6ebe43220489dc81785ec6 Mon Sep 17 00:00:00 2001 +From: Michael Palimaka <kensing...@gentoo.org> +Date: Wed, 9 Jul 2014 23:54:11 +1000 +Subject: [PATCH] Don't search default paths when finding lconvert. + +Otherwise, if lconvert exists in normal system paths (eg. /usr/bin) that one +will be used instead of the one alongside Qt5::lrelease. This could cause Qt4 +lconvert to be incorrectly used on some systems. + +REVIEW: 119198 +--- + modules/ECMCreateQmFromPoFiles.cmake | 1 + + modules/ECMPoQmTools.cmake | 1 + + 2 files changed, 2 insertions(+) + +diff --git a/modules/ECMCreateQmFromPoFiles.cmake b/modules/ECMCreateQmFromPoFiles.cmake +index 4a31a93..b66e598 100644 +--- a/modules/ECMCreateQmFromPoFiles.cmake ++++ b/modules/ECMCreateQmFromPoFiles.cmake +@@ -113,6 +113,7 @@ function(_ECM_QM_CREATE_TARGET install_destination catalog_name) + find_program(lconvert_executable + NAMES lconvert-qt5 lconvert + PATHS ${lrelease_path} ++ NO_DEFAULT_PATH + ) + + if (catalog_name) +diff --git a/modules/ECMPoQmTools.cmake b/modules/ECMPoQmTools.cmake +index 3ce6958..74dc656 100644 +--- a/modules/ECMPoQmTools.cmake ++++ b/modules/ECMPoQmTools.cmake +@@ -129,6 +129,7 @@ function(ecm_process_po_files_as_qm lang) + find_program(lconvert_executable + NAMES lconvert-qt5 lconvert + PATHS ${lrelease_path} ++ NO_DEFAULT_PATH + ) + + # Create commands to turn po files into qm files +-- +1.8.5.5 +