[neon/neon-packaging/mauikit/Neon/unstable] debian/patches: add patch to build around cmake stuff

Carlos De Maine null at kde.org
Fri Feb 24 03:12:22 GMT 2023


Git commit 4bbd5669abaaefac0f302fc0febe7644a96680b5 by Carlos De Maine.
Committed on 24/02/2023 at 03:12.
Pushed by carlosdem into branch 'Neon/unstable'.

add patch to build around cmake stuff

A  +32   -0    debian/patches/1.diff
A  +1    -0    debian/patches/series

https://invent.kde.org/neon/neon-packaging/mauikit/commit/4bbd5669abaaefac0f302fc0febe7644a96680b5

diff --git a/debian/patches/1.diff b/debian/patches/1.diff
new file mode 100644
index 0000000..0d1090e
--- /dev/null
+++ b/debian/patches/1.diff
@@ -0,0 +1,32 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 3eeafeea17d8ce295f138dca1959c89e16090fe8..e04cf15b3618b60d75d4a44aa5d59da6d7e7be5a 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -43,6 +43,13 @@ include(CMakePackageConfigHelpers)
+ include(KDEPackageAppTemplates)
+ include(KDEClangFormat)
+ 
++ecm_setup_version(${PROJECT_VERSION}
++    VARIABLE_PREFIX FileBrowsing
++    VERSION_HEADER "${CMAKE_CURRENT_BINARY_DIR}/filebrowsing_version.h"
++    PACKAGE_VERSION_FILE "${CMAKE_CURRENT_BINARY_DIR}/MauiKitFileBrowsingConfigVersion.cmake"
++    SOVERSION ${PROJECT_VERSION_MAJOR}
++)
++
+ if(ANDROID OR APPLE OR WIN32)
+     set(IS_KIO_AVAILABLE OFF)
+ else()
+@@ -105,13 +112,6 @@ install(EXPORT MauiKitFileBrowsingTargets
+     FILE MauiKitFileBrowsingTargets.cmake
+     NAMESPACE MauiKit::)
+ 
+-ecm_setup_version(${PROJECT_VERSION}
+-    VARIABLE_PREFIX FileBrowsing
+-    VERSION_HEADER "${CMAKE_CURRENT_BINARY_DIR}/filebrowsing_version.h"
+-    PACKAGE_VERSION_FILE "${CMAKE_CURRENT_BINARY_DIR}/MauiKitFileBrowsingConfigVersion.cmake"
+-    SOVERSION ${PROJECT_VERSION_MAJOR}
+-    )
+-
+ install(FILES "${CMAKE_CURRENT_BINARY_DIR}/filebrowsing_version.h"
+     DESTINATION ${KDE_INSTALL_INCLUDEDIR}/MauiKit/FileBrowsing
+     COMPONENT Devel)
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..cdea65a
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+1.diff
\ No newline at end of file


More information about the Neon-commits mailing list