[neon/backports-jammy/signond/Neon/unstable] debian: Add patch to add cmake files
Scarlett Moore
null at kde.org
Thu Sep 21 16:41:30 BST 2023
Git commit b0a2c146a94957a0680a7056286db44c793b5324 by Scarlett Moore.
Committed on 21/09/2023 at 17:41.
Pushed by scarlettmoore into branch 'Neon/unstable'.
Add patch to add cmake files
M +1 -0 debian/libsignon-qt6-dev.install
A +35 -0 debian/patches/0002-add-cmake-qt6.patch
M +1 -0 debian/patches/series
https://invent.kde.org/neon/backports-jammy/signond/-/commit/b0a2c146a94957a0680a7056286db44c793b5324
diff --git a/debian/libsignon-qt6-dev.install b/debian/libsignon-qt6-dev.install
index f7be904..addc8b0 100644
--- a/debian/libsignon-qt6-dev.install
+++ b/debian/libsignon-qt6-dev.install
@@ -1,3 +1,4 @@
usr/include/signon-qt6/SignOn/
usr/lib/*/libsignon-qt6.so
usr/lib/*/pkgconfig/libsignon-qt6.pc
+usr/lib/*/cmake/SignOnQt6/
diff --git a/debian/patches/0002-add-cmake-qt6.patch b/debian/patches/0002-add-cmake-qt6.patch
new file mode 100644
index 0000000..51e8f21
--- /dev/null
+++ b/debian/patches/0002-add-cmake-qt6.patch
@@ -0,0 +1,35 @@
+From cf446eedd5a079d832c89e03fc8d7d7a6be01ec5 Mon Sep 17 00:00:00 2001
+From: Scarlett Moore <sgmoore at kde.org>
+Date: Thu, 21 Sep 2023 08:37:34 -0700
+Subject: Add qt6 cmake files
+
+
+diff --git a/lib/SignOn/SignOnQt6Config.cmake.in b/lib/SignOn/SignOnQt6Config.cmake.in
+new file mode 100644
+index 0000000..128ee8d
+--- /dev/null
++++ b/lib/SignOn/SignOnQt6Config.cmake.in
+@@ -0,0 +1,7 @@
++# SIGNONQT_INCLUDE_DIRS - The libsignon-qt include directories
++# SIGNONQT_LIBRARIES - The libraries needed to use libsignon-qt
++# SIGNONQT_LIBRARIES_STATIC - The static version of libsignon-qt
++
++set(SIGNONQT_LIBRARIES $${INSTALL_LIBDIR}/lib$${TARGET}.so)
++set(SIGNONQT_LIBRARIES_STATIC $${INSTALL_LIBDIR}/lib$${TARGET}.a)
++set(SIGNONQT_INCLUDE_DIRS $${INSTALL_PREFIX}/include/$${TARGET})
+diff --git a/lib/SignOn/SignOnQt6ConfigVersion.cmake.in b/lib/SignOn/SignOnQt6ConfigVersion.cmake.in
+new file mode 100644
+index 0000000..616cd60
+--- /dev/null
++++ b/lib/SignOn/SignOnQt6ConfigVersion.cmake.in
+@@ -0,0 +1,10 @@
++set(PACKAGE_VERSION $${PROJECT_VERSION})
++
++if(\"${PACKAGE_VERSION}\" VERSION_LESS \"${PACKAGE_FIND_VERSION}\" )
++ set(PACKAGE_VERSION_COMPATIBLE FALSE)
++else(\"${PACKAGE_VERSION}\" VERSION_LESS \"${PACKAGE_FIND_VERSION}\" )
++ set(PACKAGE_VERSION_COMPATIBLE TRUE)
++ if( \"${PACKAGE_FIND_VERSION}\" STREQUAL \"${PACKAGE_VERSION}\")
++ set(PACKAGE_VERSION_EXACT TRUE)
++ endif( \"${PACKAGE_FIND_VERSION}\" STREQUAL \"${PACKAGE_VERSION}\")
++endif(\"${PACKAGE_VERSION}\" VERSION_LESS \"${PACKAGE_FIND_VERSION}\" )
diff --git a/debian/patches/series b/debian/patches/series
index 89b8bb6..73f5157 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
drop_qt_tags_tagfiles.diff
0001-allow_build_with_qt6.patch
+0002-add-cmake-qt6.patch
More information about the Neon-commits
mailing list