kdelibs/kdelibs-4.3.90-kauth-polkitqt1.patch
Jaroslav Reznik b7b1453eb4 * Mon Jan 11 2010 Jaroslav Reznik <jreznik@redhat.com> - 4.3.90-5
- hopefully correct kauth fix (old polkit cmake module is broken)
2010-01-11 16:45:58 +00:00

20 lines
820 B
Diff

diff -up kdelibs-4.3.90/cmake/modules/KDE4Macros.cmake.kauth-polkitqt1 kdelibs-4.3.90/cmake/modules/KDE4Macros.cmake
--- kdelibs-4.3.90/cmake/modules/KDE4Macros.cmake.kauth-polkitqt1 2009-11-23 16:30:10.000000000 +0100
+++ kdelibs-4.3.90/cmake/modules/KDE4Macros.cmake 2010-01-11 17:38:19.724562080 +0100
@@ -1292,6 +1292,15 @@ function(KDE4_INSTALL_AUTH_ACTIONS HELPE
if (POLKITQT_FOUND)
install(FILES ${_output} DESTINATION ${POLKITQT_POLICY_FILES_INSTALL_DIR})
endif (POLKITQT_FOUND)
+
+ if (NOT POLKITQT-1_FOUND)
+ macro_optional_find_package(PolkitQt-1)
+ endif (NOT POLKITQT-1_FOUND)
+
+ if (POLKITQT-1_FOUND)
+ install(FILES ${_output} DESTINATION ${POLKITQT-1_POLICY_FILES_INSTALL_DIR})
+ endif (POLKITQT-1_FOUND)
+
endif()
endfunction(KDE4_INSTALL_AUTH_ACTIONS)