[neon/neon-packaging/breeze5/Neon/unstable] debian/patches: temp patch

Carlos De Maine null at kde.org
Mon Aug 28 08:19:54 BST 2023


Git commit 65cae1df637885b2d99b535fa22045042f592213 by Carlos De Maine.
Committed on 28/08/2023 at 09:19.
Pushed by carlosdem into branch 'Neon/unstable'.

temp patch

A  +29   -0    debian/patches/001_bring_cmake_back
A  +1    -0    debian/patches/series

https://invent.kde.org/neon/neon-packaging/breeze5/-/commit/65cae1df637885b2d99b535fa22045042f592213

diff --git a/debian/patches/001_bring_cmake_back b/debian/patches/001_bring_cmake_back
new file mode 100644
index 0000000..b93b2c6
--- /dev/null
+++ b/debian/patches/001_bring_cmake_back
@@ -0,0 +1,29 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index af7a4f1c05f5a39eb9ba32c885326d22e03a9c8d..59e1ba6f6404af5e4c95fa34cea5f49c12a2c447 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -85,6 +85,24 @@ function(build_Qt5)
+     add_subdirectory(kstyle kstyle5)
+     add_subdirectory(libbreezecommon libbreezecommon5)
+ 
++    # create a Config.cmake and a ConfigVersion.cmake file and install them
++    include(ECMSetupVersion)
++    ecm_setup_version(${PROJECT_VERSION} VARIABLE_PREFIX BREEZE
++        PACKAGE_VERSION_FILE "${CMAKE_CURRENT_BINARY_DIR}/BreezeConfigVersion.cmake"
++    )
++    set(CMAKECONFIG_INSTALL_DIR "${KDE_INSTALL_CMAKEPACKAGEDIR}/Breeze")
++
++    configure_package_config_file("${CMAKE_CURRENT_SOURCE_DIR}/BreezeConfig.cmake.in"
++                                  "${CMAKE_CURRENT_BINARY_DIR}/BreezeConfig.cmake"
++                                  PATH_VARS KDE_INSTALL_FULL_DATADIR
++                                  INSTALL_DESTINATION  ${CMAKECONFIG_INSTALL_DIR}
++    )
++    install(FILES  "${CMAKE_CURRENT_BINARY_DIR}/BreezeConfig.cmake"
++                   "${CMAKE_CURRENT_BINARY_DIR}/BreezeConfigVersion.cmake"
++            DESTINATION "${CMAKECONFIG_INSTALL_DIR}"
++            COMPONENT Devel
++    )
++
+     unset(QUERY_EXECUTABLE CACHE)
+ endfunction()
+ if(BUILD_QT5)
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..a0ed821
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+001_bring_cmake_back
\ No newline at end of file


More information about the Neon-commits mailing list