commit:     e96543dff22927a309f4bc9018e88ffd1eafd825
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Apr 21 10:11:28 2021 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Apr 21 10:12:03 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e96543df

x11-misc/qt5ct: Fix install paths

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 x11-misc/qt5ct/files/qt5ct-1.2-cmake.patch         | 22 ++++++++++++++++++++++
 .../{qt5ct-1.2.ebuild => qt5ct-1.2-r1.ebuild}      |  7 ++++++-
 2 files changed, 28 insertions(+), 1 deletion(-)

diff --git a/x11-misc/qt5ct/files/qt5ct-1.2-cmake.patch 
b/x11-misc/qt5ct/files/qt5ct-1.2-cmake.patch
new file mode 100644
index 00000000000..67313d824fa
--- /dev/null
+++ b/x11-misc/qt5ct/files/qt5ct-1.2-cmake.patch
@@ -0,0 +1,22 @@
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -39,7 +39,7 @@
+ set(QT_QTPATHS_EXECUTABLE ${QT_QTPATHS_EXECUTABLE}/qtpaths)
+ 
+ if(EXISTS ${QT_QTPATHS_EXECUTABLE})
+-    message(STATUS "Found qtpaths executable: " ${QT_QTPATHS_EXECUTABLE})    
++    message(STATUS "Found qtpaths executable: " ${QT_QTPATHS_EXECUTABLE})
+ else()
+     message(FATAL_ERROR "Could NOT find qtpaths executable")
+ endif()
+@@ -54,8 +54,8 @@
+ add_subdirectory(src/qt5ct-qtplugin)
+ add_subdirectory(src/qt5ct-style)
+ 
+-install(DIRECTORY qss DESTINATION ${CMAKE_INSTALL_DATADIR})
+-install(DIRECTORY colors DESTINATION ${CMAKE_INSTALL_DATADIR})
++install(DIRECTORY qss DESTINATION ${CMAKE_INSTALL_DATADIR}/qt5ct)
++install(DIRECTORY colors DESTINATION ${CMAKE_INSTALL_DATADIR}/qt5ct)
+ 
+ if(UNIX)
+     add_custom_target(distclean @echo cleaning for source distribution)

diff --git a/x11-misc/qt5ct/qt5ct-1.2.ebuild 
b/x11-misc/qt5ct/qt5ct-1.2-r1.ebuild
similarity index 92%
rename from x11-misc/qt5ct/qt5ct-1.2.ebuild
rename to x11-misc/qt5ct/qt5ct-1.2-r1.ebuild
index cadb81998d1..419efe47f94 100644
--- a/x11-misc/qt5ct/qt5ct-1.2.ebuild
+++ b/x11-misc/qt5ct/qt5ct-1.2-r1.ebuild
@@ -24,11 +24,16 @@ RDEPEND="
                dev-qt/qtgui:5[dbus]
        )
 "
-DEPEND="${RDEPEND}
+DEPEND="${RDEPEND}"
+BDEPEND="
        dev-qt/linguist-tools:5
        dev-qt/qtpaths:5
 "
 
+PATCHES=(
+       "${FILESDIR}"/${P}-cmake.patch
+)
+
 src_install() {
        cmake_src_install
 

Reply via email to