From 70aa7cf78289abbd9c26828c5119a71d766448a6 Mon Sep 17 00:00:00 2001 From: Ralf Habacker Date: Sat, 25 Mar 2017 14:52:31 +0100 Subject: [PATCH] Fix 'org.kde.umbrello.appdata.xml specifies wrong binary name'. The binary of umbrello for kf5 builds is named 'umbrello5'. BUG:378064 FIXED-IN:2.21.90 (KDE Applications 17.03.90) --- umbrello/CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/umbrello/CMakeLists.txt b/umbrello/CMakeLists.txt index 057b3d6..3ae6247 100644 --- a/umbrello/CMakeLists.txt +++ b/umbrello/CMakeLists.txt @@ -600,7 +600,10 @@ else() string(REPLACE "-caption" "-qwindowtitle" UMBRELLO_DESKTOP_OUT "${UMBRELLO_DESKTOP}") file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/umbrello.desktop "${UMBRELLO_DESKTOP_OUT}") install( PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/umbrello.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} RENAME org.kde.umbrello5.desktop) - install(FILES org.kde.umbrello.appdata.xml DESTINATION ${KDE_INSTALL_METAINFODIR}) + file(READ org.kde.umbrello.appdata.xml UMBRELLO_APPDATA) + string(REPLACE "umbrello" "umbrello5" UMBRELLO_APPDATA_OUT "${UMBRELLO_APPDATA}") + file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/org.kde.umbrello.appdata.xml "${UMBRELLO_APPDATA_OUT}") + install(FILES ${CMAKE_CURRENT_BINARY_DIR}/org.kde.umbrello.appdata.xml DESTINATION ${KDE_INSTALL_METAINFODIR}) endif() install( FILES