diff options
| author | Michael Palimaka <kensington@gentoo.org> | 2015-10-15 22:33:28 +1100 |
|---|---|---|
| committer | Michael Palimaka <kensington@gentoo.org> | 2015-10-15 22:33:57 +1100 |
| commit | 4dbb98f98048928eba47654ebc65e8244f15caca (patch) | |
| tree | 87c9d6f6dae51a1311fe2e31478727b934403464 /kde-base | |
| parent | 94966c2b0ec9051b933228fa2120f45d1ff37d2a (diff) | |
| download | kde-4dbb98f98048928eba47654ebc65e8244f15caca.tar.gz kde-4dbb98f98048928eba47654ebc65e8244f15caca.tar.bz2 kde-4dbb98f98048928eba47654ebc65e8244f15caca.zip | |
kde-base/kdelibs: make Qt detection conditional now that we're installing the module again
Package-Manager: portage-2.2.20.1
Diffstat (limited to 'kde-base')
| -rw-r--r-- | kde-base/kdelibs/files/kdelibs-4.14.13-FindQt4.patch | 28 | ||||
| -rw-r--r-- | kde-base/kdelibs/files/kdelibs-4.14.14-FindQt4.patch | 38 | ||||
| -rw-r--r-- | kde-base/kdelibs/kdelibs-4.9999.ebuild | 2 |
3 files changed, 39 insertions, 29 deletions
diff --git a/kde-base/kdelibs/files/kdelibs-4.14.13-FindQt4.patch b/kde-base/kdelibs/files/kdelibs-4.14.13-FindQt4.patch deleted file mode 100644 index 2e8c2d9e4c8..00000000000 --- a/kde-base/kdelibs/files/kdelibs-4.14.13-FindQt4.patch +++ /dev/null @@ -1,28 +0,0 @@ -Ensure that the correct version of Qt is always used. - -With the introduction qt-4.8.6, Qt binaries were moved from /usr/bin to -/usr/$(get_libdir)/qt4/bin, leaving behind in their place symlinks to qtchooser. - -There is no guarantee to which version of Qt these symlinks might point, so it -is necessary to find the correct version explicitly. - -Once qmake is found, it is queried for the correct location of all other items. - -Gentoo-bug: 562746 - ---- cmake/modules/FindQt4.cmake -+++ cmake/modules/FindQt4.cmake -@@ -447,10 +447,9 @@ GET_FILENAME_COMPONENT(qt_install_version "[HKEY_CURRENT_USER\\Software\\trollte - # Debian uses qmake-qt4 - # macports' Qt uses qmake-mac - FIND_PROGRAM(QT_QMAKE_EXECUTABLE NAMES qmake qmake4 qmake-qt4 qmake-mac PATHS -- "[HKEY_CURRENT_USER\\Software\\Trolltech\\Qt3Versions\\4.0.0;InstallDir]/bin" -- "[HKEY_CURRENT_USER\\Software\\Trolltech\\Versions\\4.0.0;InstallDir]/bin" -- "[HKEY_CURRENT_USER\\Software\\Trolltech\\Versions\\${qt_install_version};InstallDir]/bin" -- $ENV{QTDIR}/bin -+ /usr/${CMAKE_INSTALL_LIBDIR}/qt4/bin -+ /usr/bin -+ NO_DEFAULT_PATH - DOC "The qmake executable for the Qt installation to use" - ) - diff --git a/kde-base/kdelibs/files/kdelibs-4.14.14-FindQt4.patch b/kde-base/kdelibs/files/kdelibs-4.14.14-FindQt4.patch new file mode 100644 index 00000000000..3994e20d76f --- /dev/null +++ b/kde-base/kdelibs/files/kdelibs-4.14.14-FindQt4.patch @@ -0,0 +1,38 @@ +Ensure that the correct version of Qt is always used. + +With the introduction qt-4.8.6, Qt binaries were moved from /usr/bin to +/usr/$(get_libdir)/qt4/bin, leaving behind in their place symlinks to qtchooser. + +There is no guarantee to which version of Qt these symlinks might point, so it +is necessary to find the correct version explicitly. + +Once qmake is found, it is queried for the correct location of all other items. + +Gentoo-bug: 562746 + +--- cmake/modules/FindQt4.cmake ++++ cmake/modules/FindQt4.cmake +@@ -446,6 +446,23 @@ GET_FILENAME_COMPONENT(qt_install_version "[HKEY_CURRENT_USER\\Software\\trollte + # check for qmake + # Debian uses qmake-qt4 + # macports' Qt uses qmake-mac ++if(CMAKE_BUILD_TYPE STREQUAL Gentoo) ++ find_program(QT_QMAKE_EXECUTABLE NAMES ${QMAKE_NAME} ++ PATHS ++ /usr/${CMAKE_INSTALL_LIBDIR}/qt4/bin ++ /usr/bin ++ NO_DEFAULT_PATH ++ DOC "The qmake executable for the Qt installation to use" ++ ) ++else() ++ find_program(QT_QMAKE_EXECUTABLE NAMES ${QMAKE_NAME} ++ PATHS ++ ENV QTDIR ++ "[HKEY_CURRENT_USER\\Software\\Trolltech\\Versions\\${qt_install_version};InstallDir]" ++ PATH_SUFFIXES bin ++ DOC "The qmake executable for the Qt installation to use" ++ ) ++endif() + FIND_PROGRAM(QT_QMAKE_EXECUTABLE NAMES qmake qmake4 qmake-qt4 qmake-mac PATHS + "[HKEY_CURRENT_USER\\Software\\Trolltech\\Qt3Versions\\4.0.0;InstallDir]/bin" + "[HKEY_CURRENT_USER\\Software\\Trolltech\\Versions\\4.0.0;InstallDir]/bin" diff --git a/kde-base/kdelibs/kdelibs-4.9999.ebuild b/kde-base/kdelibs/kdelibs-4.9999.ebuild index 62011090dbb..4cecc611391 100644 --- a/kde-base/kdelibs/kdelibs-4.9999.ebuild +++ b/kde-base/kdelibs/kdelibs-4.9999.ebuild @@ -133,7 +133,7 @@ PATCHES=( "${FILESDIR}/${PN}-4.8.1-norpath.patch" "${FILESDIR}/${PN}-4.9.3-werror.patch" "${FILESDIR}/${PN}-4.10.0-udisks.patch" - "${FILESDIR}/${PN}-4.14.13-FindQt4.patch" + "${FILESDIR}/${PN}-4.14.14-FindQt4.patch" ) pkg_pretend() { |
