[neon/backports-noble/qt-advanced-docking-system-noble/Neon/unstable] debian: qt6 as well
Carlos De Maine
null at kde.org
Mon Nov 18 03:42:45 GMT 2024
Git commit a200e5a09390570ddffc8d393cb3652706f12039 by Carlos De Maine.
Committed on 18/11/2024 at 03:42.
Pushed by carlosdem into branch 'Neon/unstable'.
qt6 as well
A +17 -0 debian/changelog
A +79 -0 debian/control
A +59 -0 debian/copyright
A +3 -0 debian/libqt-advanced-docking-system-dev.examples
A +3 -0 debian/libqt-advanced-docking-system-dev.install
A +1 -0 debian/libqt-advanced-docking-system.install
A +1 -0 debian/libqt-advanced-docking-system.lintian-overrides
A +17 -0 debian/patches/do-not-install-license.patch
A +272 -0 debian/patches/install-to-standard-paths.patch
A +14 -0 debian/patches/link-with-xcb.patch
A +1 -0 debian/patches/series
A +22 -0 debian/rules
A +1 -0 debian/source/format
A +2 -0 debian/watch
https://invent.kde.org/neon/backports-noble/qt-advanced-docking-system-noble/-/commit/a200e5a09390570ddffc8d393cb3652706f12039
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..06c7c79
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,17 @@
+qt-advanced-docking-system (4.3.1-0neon) jammy; urgency=medium
+
+ * New release
+
+ -- Carlos De Maine <carlosdemaine at gmail.com> Wed, 20 Dec 2023 14:27:26 +1000
+
+qt-advanced-docking-system (4.0.3-0neon) unstable; urgency=medium
+
+ * New release
+
+ -- KDE Neon <neon at kde.org> Thu, 11 May 2023 19:34:38 +1000
+
+qt-advanced-docking-system (3.8.3-1) unstable; urgency=medium
+
+ * Initial upload into Debian (Closes: #1017597)
+
+ -- Dima Kogan <dkogan at debian.org> Thu, 18 Aug 2022 16:44:38 -0700
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..bfba7d2
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,79 @@
+Source: qt-advanced-docking-system
+Section: libdevel
+Priority: optional
+Maintainer: Dima Kogan <dkogan at debian.org>
+Build-Depends: cmake,
+ debhelper-compat (= 13),
+ libxcb1-dev,
+ qtbase5-dev,
+ qtbase5-private-dev,
+ qtdeclarative5-dev,
+ qt6-base-dev,
+ qt6-declarative-dev,
+Standards-Version: 4.6.2
+Homepage: https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System
+Vcs-Git: https://salsa.debian.org/debian/qt-advanced-docking-system.git
+Vcs-Browser: https://salsa.debian.org/debian/qt-advanced-docking-system
+
+Package: libqt-advanced-docking-system
+Section: libs
+Architecture: any
+Multi-Arch: same
+Pre-Depends: ${misc:Pre-Depends}
+Depends: ${misc:Depends}, ${shlibs:Depends}
+Breaks: libqt-advanced-docking-system3.8.3
+Replaces: libqt-advanced-docking-system3.8.3
+Description: Advanced Docking System for Qt
+ Qt Advanced Docking System lets you create customizable layouts using a full
+ featured window docking system similar to what is found in many popular
+ integrated development environments (IDEs) such as Visual Studio.
+ .
+ This package contains the run-time libraries
+
+Package: libqt6-advanced-docking-system
+Section: libs
+Architecture: any
+Multi-Arch: same
+Pre-Depends: ${misc:Pre-Depends}
+Depends: ${misc:Depends}, ${shlibs:Depends}
+Description: Advanced Docking System for Qt
+ Qt Advanced Docking System lets you create customizable layouts using a full
+ featured window docking system similar to what is found in many popular
+ integrated development environments (IDEs) such as Visual Studio.
+ .
+ This package contains the run-time libraries
+
+Package: libqt-advanced-docking-system-dev
+Architecture: any
+Multi-Arch: same
+Depends: ${misc:Depends},
+ libqt-advanced-docking-system (= ${binary:Version}),
+ qtbase5-dev,
+ qtdeclarative5-dev,
+Description: Advanced Docking System for Qt
+ Qt Advanced Docking System lets you create customizable layouts using a full
+ featured window docking system similar to what is found in many popular
+ integrated development environments (IDEs) such as Visual Studio.
+ .
+ This package contains the build-time libraries
+
+Package: libqt6-advanced-docking-system-dev
+Architecture: any
+Multi-Arch: same
+Depends: ${misc:Depends},
+ libqt6-advanced-docking-system (= ${binary:Version}),
+ qt6-base-dev,
+ qt6-declarative-dev,
+Description: Advanced Docking System for Qt
+ Qt Advanced Docking System lets you create customizable layouts using a full
+ featured window docking system similar to what is found in many popular
+ integrated development environments (IDEs) such as Visual Studio.
+ .
+ This package contains the build-time libraries
+
+Package: libqt-advanced-docking-system3.8.3
+Architecture: all
+Multi-Arch: same
+Depends: libqt-advanced-docking-system, ${misc:Depends},
+Description: dummy transitional package
+ Dummy transitional package.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..9718ebf
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,59 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0
+Upstream-Name: Qt-Advanced-Docking-System
+Upstream-Contact: Uwe Kindler
+Source: https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System
+
+Files: *
+Copyright: 2017 Uwe Kindler
+License: LGPL-2.1+
+
+Files: cmake/modules/GetGitRevisionDescription.cmake*
+Copyright: 2009-2010 Iowa State University
+License: Boost-1.0
+
+Files: demo/images/*.svg
+Copyright: Google Inc.
+License: Apache-2.0
+
+Files: debian/*
+Copyright: 2022 Dima Kogan <dkogan at debian.org>
+License: LGPL-2.1+
+
+License: LGPL-2.1+
+ qt-advanced-docking-system is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public License as published
+ by the Free Software Foundation; either version 2.1 of the License, or any later
+ version.
+ .
+ On Debian systems, the complete text of version 2.1 of the GNU Lesser General
+ Public License can be found in `/usr/share/common-licenses/LGPL-2.1'.
+
+License: Apache-2.0
+ qt-advanced-docking-system is free software; you can redistribute it and/or
+ modify it under the terms of the Apache-2.0 license
+ .
+ On Debian systems, the complete text of the Apache-2.0 license can be found in
+ `/usr/share/common-licenses/Apache-2.0'.
+
+License: Boost-1.0
+ Permission is hereby granted, free of charge, to any person or organization
+ obtaining a copy of the software and accompanying documentation covered by
+ this license (the "Software") to use, reproduce, display, distribute,
+ execute, and transmit the Software, and to prepare derivative works of the
+ Software, and to permit third-parties to whom the Software is furnished to
+ do so, all subject to the following:
+ .
+ The copyright notices in the Software and this entire statement, including
+ the above license grant, this restriction and the following disclaimer,
+ must be included in all copies of the Software, in whole or in part, and
+ all derivative works of the Software, unless such copies or derivative
+ works are solely in the form of machine-executable object code generated by
+ a source language processor.
+ .
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
+ SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
+ FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
+ ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ DEALINGS IN THE SOFTWARE.
diff --git a/debian/libqt-advanced-docking-system-dev.examples b/debian/libqt-advanced-docking-system-dev.examples
new file mode 100644
index 0000000..24edc4b
--- /dev/null
+++ b/debian/libqt-advanced-docking-system-dev.examples
@@ -0,0 +1,3 @@
+demo
+examples/*
+
diff --git a/debian/libqt-advanced-docking-system-dev.install b/debian/libqt-advanced-docking-system-dev.install
new file mode 100644
index 0000000..16efa77
--- /dev/null
+++ b/debian/libqt-advanced-docking-system-dev.install
@@ -0,0 +1,3 @@
+/usr/include
+usr/lib/libqt5advanceddocking.so.*
+/usr/lib/cmake
diff --git a/debian/libqt-advanced-docking-system.install b/debian/libqt-advanced-docking-system.install
new file mode 100644
index 0000000..6b726a5
--- /dev/null
+++ b/debian/libqt-advanced-docking-system.install
@@ -0,0 +1 @@
+usr/lib/libqt5advanceddocking.so
\ No newline at end of file
diff --git a/debian/libqt-advanced-docking-system.lintian-overrides b/debian/libqt-advanced-docking-system.lintian-overrides
new file mode 100644
index 0000000..1adacfb
--- /dev/null
+++ b/debian/libqt-advanced-docking-system.lintian-overrides
@@ -0,0 +1 @@
+libqt-advanced-docking-system4.3.1: package-name-doesnt-match-sonames libqtadvanceddocking4.3.1
diff --git a/debian/patches/do-not-install-license.patch b/debian/patches/do-not-install-license.patch
new file mode 100644
index 0000000..8cd476d
--- /dev/null
+++ b/debian/patches/do-not-install-license.patch
@@ -0,0 +1,17 @@
+Index: qt-advanced-docking-system/src/CMakeLists.txt
+===================================================================
+--- qt-advanced-docking-system.orig/src/CMakeLists.txt
++++ qt-advanced-docking-system/src/CMakeLists.txt
+@@ -91,12 +91,6 @@ install(FILES ${ads_HEADERS}
+ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/qtadvanceddocking
+ COMPONENT headers
+ )
+-install(FILES
+- "${CMAKE_CURRENT_SOURCE_DIR}/../LICENSE"
+- "${CMAKE_CURRENT_SOURCE_DIR}/../gnu-lgpl-v2.1.md"
+- DESTINATION license/ads
+- COMPONENT license
+-)
+ install(TARGETS qtadvanceddocking
+ EXPORT adsTargets
+ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
diff --git a/debian/patches/install-to-standard-paths.patch b/debian/patches/install-to-standard-paths.patch
new file mode 100644
index 0000000..a429369
--- /dev/null
+++ b/debian/patches/install-to-standard-paths.patch
@@ -0,0 +1,272 @@
+Index: qt-advanced-docking-system/CMakeLists.txt
+===================================================================
+--- qt-advanced-docking-system.orig/CMakeLists.txt
++++ qt-advanced-docking-system/CMakeLists.txt
+@@ -28,12 +28,6 @@ project(QtADS LANGUAGES CXX VERSION ${VE
+ option(BUILD_STATIC "Build the static library" OFF)
+ option(BUILD_EXAMPLES "Build the examples" ON)
+
+-if("${CMAKE_SIZEOF_VOID_P}" STREQUAL "4")
+- set(ads_PlatformDir "x86")
+-else()
+- set(ads_PlatformDir "x64")
+-endif()
+-
+ add_subdirectory(src)
+
+ if(BUILD_EXAMPLES)
+Index: qt-advanced-docking-system/demo/CMakeLists.txt
+===================================================================
+--- qt-advanced-docking-system.orig/demo/CMakeLists.txt
++++ qt-advanced-docking-system/demo/CMakeLists.txt
+@@ -24,6 +24,8 @@ if(WIN32 AND QT_VERSION_MAJOR LESS 6)
+ target_link_libraries(AdvancedDockingSystemDemo PUBLIC Qt${QT_VERSION_MAJOR}::AxContainer)
+ endif()
+ target_link_libraries(AdvancedDockingSystemDemo PRIVATE qtadvanceddocking)
++
++include(GNUInstallDirs)
+ set_target_properties(AdvancedDockingSystemDemo PROPERTIES
+ AUTOMOC ON
+ AUTORCC ON
+@@ -33,9 +35,9 @@ set_target_properties(AdvancedDockingSys
+ CXX_EXTENSIONS OFF
+ VERSION ${VERSION_SHORT}
+ EXPORT_NAME "Qt Advanced Docking System Demo"
+- ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/${ads_PlatformDir}/lib"
+- LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/${ads_PlatformDir}/lib"
+- RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/${ads_PlatformDir}/bin"
++ ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_INSTALL_LIBDIR}"
++ LIBRARY_OUTPUT_DIRECTORY "${CMAKE_INSTALL_LIBDIR}"
++ RUNTIME_OUTPUT_DIRECTORY "${CMAKE_INSTALL_BINDIR}"
+ )
+ #if(BUILD_STATIC)
+ # target_compile_definitions(AdvancedDockingSystemDemo PRIVATE ADS_STATIC)
+Index: qt-advanced-docking-system/examples/centralwidget/CMakeLists.txt
+===================================================================
+--- qt-advanced-docking-system.orig/examples/centralwidget/CMakeLists.txt
++++ qt-advanced-docking-system/examples/centralwidget/CMakeLists.txt
+@@ -13,6 +13,8 @@ target_link_libraries(CentralWidgetExamp
+ target_link_libraries(CentralWidgetExample PUBLIC Qt${QT_VERSION_MAJOR}::Core
+ Qt${QT_VERSION_MAJOR}::Gui
+ Qt${QT_VERSION_MAJOR}::Widgets)
++
++include(GNUInstallDirs)
+ set_target_properties(CentralWidgetExample PROPERTIES
+ AUTOMOC ON
+ AUTORCC ON
+@@ -22,7 +24,7 @@ set_target_properties(CentralWidgetExamp
+ CXX_EXTENSIONS OFF
+ VERSION ${VERSION_SHORT}
+ EXPORT_NAME "Qt Advanced Docking System Central Widget Example"
+- ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/${ads_PlatformDir}/lib"
+- LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/${ads_PlatformDir}/lib"
+- RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/${ads_PlatformDir}/bin"
++ ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_INSTALL_LIBDIR}"
++ LIBRARY_OUTPUT_DIRECTORY "${CMAKE_INSTALL_LIBDIR}"
++ RUNTIME_OUTPUT_DIRECTORY "${CMAKE_INSTALL_BINDIR}"
+ )
+Index: qt-advanced-docking-system/examples/deleteonclose/CMakeLists.txt
+===================================================================
+--- qt-advanced-docking-system.orig/examples/deleteonclose/CMakeLists.txt
++++ qt-advanced-docking-system/examples/deleteonclose/CMakeLists.txt
+@@ -11,6 +11,8 @@ target_link_libraries(DeleteOnCloseTest
+ target_link_libraries(DeleteOnCloseTest PUBLIC Qt${QT_VERSION_MAJOR}::Core
+ Qt${QT_VERSION_MAJOR}::Gui
+ Qt${QT_VERSION_MAJOR}::Widgets)
++
++include(GNUInstallDirs)
+ set_target_properties(DeleteOnCloseTest PROPERTIES
+ AUTOMOC ON
+ CXX_STANDARD 14
+@@ -18,7 +20,7 @@ set_target_properties(DeleteOnCloseTest
+ CXX_EXTENSIONS OFF
+ VERSION ${VERSION_SHORT}
+ EXPORT_NAME "Qt Advanced Docking System Delete on Close Example"
+- ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/${ads_PlatformDir}/lib"
+- LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/${ads_PlatformDir}/lib"
+- RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/${ads_PlatformDir}/bin"
++ ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_INSTALL_LIBDIR}"
++ LIBRARY_OUTPUT_DIRECTORY "${CMAKE_INSTALL_LIBDIR}"
++ RUNTIME_OUTPUT_DIRECTORY "${CMAKE_INSTALL_BINDIR}"
+ )
+Index: qt-advanced-docking-system/examples/dockindock/CMakeLists.txt
+===================================================================
+--- qt-advanced-docking-system.orig/examples/dockindock/CMakeLists.txt
++++ qt-advanced-docking-system/examples/dockindock/CMakeLists.txt
+@@ -16,6 +16,8 @@ target_link_libraries(DockInDockExample
+ target_link_libraries(DockInDockExample PUBLIC Qt${QT_VERSION_MAJOR}::Core
+ Qt${QT_VERSION_MAJOR}::Gui
+ Qt${QT_VERSION_MAJOR}::Widgets)
++
++include(GNUInstallDirs)
+ set_target_properties(DockInDockExample PROPERTIES
+ AUTOMOC ON
+ AUTORCC ON
+@@ -25,7 +27,7 @@ set_target_properties(DockInDockExample
+ CXX_EXTENSIONS OFF
+ VERSION ${VERSION_SHORT}
+ EXPORT_NAME "Qt Advanced Docking System Simple Example"
+- ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/${ads_PlatformDir}/lib"
+- LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/${ads_PlatformDir}/lib"
+- RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/${ads_PlatformDir}/bin"
++ ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_INSTALL_LIBDIR}"
++ LIBRARY_OUTPUT_DIRECTORY "${CMAKE_INSTALL_LIBDIR}"
++ RUNTIME_OUTPUT_DIRECTORY "${CMAKE_INSTALL_BINDIR}"
+ )
+Index: qt-advanced-docking-system/examples/emptydockarea/CMakeLists.txt
+===================================================================
+--- qt-advanced-docking-system.orig/examples/emptydockarea/CMakeLists.txt
++++ qt-advanced-docking-system/examples/emptydockarea/CMakeLists.txt
+@@ -13,6 +13,8 @@ target_link_libraries(EmptyDockAreaExamp
+ target_link_libraries(EmptyDockAreaExample PUBLIC Qt${QT_VERSION_MAJOR}::Core
+ Qt${QT_VERSION_MAJOR}::Gui
+ Qt${QT_VERSION_MAJOR}::Widgets)
++
++include(GNUInstallDirs)
+ set_target_properties(EmptyDockAreaExample PROPERTIES
+ AUTOMOC ON
+ AUTORCC ON
+@@ -22,7 +24,7 @@ set_target_properties(EmptyDockAreaExamp
+ CXX_EXTENSIONS OFF
+ VERSION ${VERSION_SHORT}
+ EXPORT_NAME "Qt Advanced Docking System Empty Dock Area Example"
+- ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/${ads_PlatformDir}/lib"
+- LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/${ads_PlatformDir}/lib"
+- RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/${ads_PlatformDir}/bin"
++ ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_INSTALL_LIBDIR}"
++ LIBRARY_OUTPUT_DIRECTORY "${CMAKE_INSTALL_LIBDIR}"
++ RUNTIME_OUTPUT_DIRECTORY "${CMAKE_INSTALL_BINDIR}"
+ )
+Index: qt-advanced-docking-system/examples/hideshow/CMakeLists.txt
+===================================================================
+--- qt-advanced-docking-system.orig/examples/hideshow/CMakeLists.txt
++++ qt-advanced-docking-system/examples/hideshow/CMakeLists.txt
+@@ -13,6 +13,8 @@ target_link_libraries(HideShowExample PR
+ target_link_libraries(HideShowExample PUBLIC Qt${QT_VERSION_MAJOR}::Core
+ Qt${QT_VERSION_MAJOR}::Gui
+ Qt${QT_VERSION_MAJOR}::Widgets)
++
++include(GNUInstallDirs)
+ set_target_properties(HideShowExample PROPERTIES
+ AUTOMOC ON
+ AUTORCC ON
+@@ -22,7 +24,7 @@ set_target_properties(HideShowExample PR
+ CXX_EXTENSIONS OFF
+ VERSION ${VERSION_SHORT}
+ EXPORT_NAME "Qt Advanced Docking System Hide,Show Example"
+- ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/${ads_PlatformDir}/lib"
+- LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/${ads_PlatformDir}/lib"
+- RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/${ads_PlatformDir}/bin"
++ ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_INSTALL_LIBDIR}"
++ LIBRARY_OUTPUT_DIRECTORY "${CMAKE_INSTALL_LIBDIR}"
++ RUNTIME_OUTPUT_DIRECTORY "${CMAKE_INSTALL_BINDIR}"
+ )
+Index: qt-advanced-docking-system/examples/sidebar/CMakeLists.txt
+===================================================================
+--- qt-advanced-docking-system.orig/examples/sidebar/CMakeLists.txt
++++ qt-advanced-docking-system/examples/sidebar/CMakeLists.txt
+@@ -13,6 +13,8 @@ target_link_libraries(SidebarExample PRI
+ target_link_libraries(SidebarExample PUBLIC Qt${QT_VERSION_MAJOR}::Core
+ Qt${QT_VERSION_MAJOR}::Gui
+ Qt${QT_VERSION_MAJOR}::Widgets)
++
++include(GNUInstallDirs)
+ set_target_properties(SidebarExample PROPERTIES
+ AUTOMOC ON
+ AUTORCC ON
+@@ -22,7 +24,7 @@ set_target_properties(SidebarExample PRO
+ CXX_EXTENSIONS OFF
+ VERSION ${VERSION_SHORT}
+ EXPORT_NAME "Qt Advanced Docking System Sidebar Example"
+- ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/${ads_PlatformDir}/lib"
+- LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/${ads_PlatformDir}/lib"
+- RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/${ads_PlatformDir}/bin"
++ ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_INSTALL_LIBDIR}"
++ LIBRARY_OUTPUT_DIRECTORY "${CMAKE_INSTALL_LIBDIR}"
++ RUNTIME_OUTPUT_DIRECTORY "${CMAKE_INSTALL_BINDIR}"
+ )
+Index: qt-advanced-docking-system/examples/simple/CMakeLists.txt
+===================================================================
+--- qt-advanced-docking-system.orig/examples/simple/CMakeLists.txt
++++ qt-advanced-docking-system/examples/simple/CMakeLists.txt
+@@ -13,6 +13,8 @@ target_link_libraries(SimpleExample PRIV
+ target_link_libraries(SimpleExample PUBLIC Qt${QT_VERSION_MAJOR}::Core
+ Qt${QT_VERSION_MAJOR}::Gui
+ Qt${QT_VERSION_MAJOR}::Widgets)
++
++include(GNUInstallDirs)
+ set_target_properties(SimpleExample PROPERTIES
+ AUTOMOC ON
+ AUTORCC ON
+@@ -22,7 +24,7 @@ set_target_properties(SimpleExample PROP
+ CXX_EXTENSIONS OFF
+ VERSION ${VERSION_SHORT}
+ EXPORT_NAME "Qt Advanced Docking System Simple Example"
+- ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/${ads_PlatformDir}/lib"
+- LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/${ads_PlatformDir}/lib"
+- RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/${ads_PlatformDir}/bin"
++ ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_INSTALL_LIBDIR}"
++ LIBRARY_OUTPUT_DIRECTORY "${CMAKE_INSTALL_LIBDIR}"
++ RUNTIME_OUTPUT_DIRECTORY "${CMAKE_INSTALL_BINDIR}"
+ )
+Index: qt-advanced-docking-system/src/CMakeLists.txt
+===================================================================
+--- qt-advanced-docking-system.orig/src/CMakeLists.txt
++++ qt-advanced-docking-system/src/CMakeLists.txt
+@@ -67,6 +67,8 @@ add_library(ads::qtadvanceddocking ALIAS
+ target_link_libraries(qtadvanceddocking PUBLIC Qt${QT_VERSION_MAJOR}::Core
+ Qt${QT_VERSION_MAJOR}::Gui
+ Qt${QT_VERSION_MAJOR}::Widgets)
++
++include(GNUInstallDirs)
+ set_target_properties(qtadvanceddocking PROPERTIES
+ AUTOMOC ON
+ AUTORCC ON
+@@ -75,9 +77,9 @@ set_target_properties(qtadvanceddocking
+ CXX_EXTENSIONS OFF
+ VERSION ${VERSION_SHORT}
+ EXPORT_NAME "qtadvanceddocking"
+- ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/${ads_PlatformDir}/lib"
+- LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/${ads_PlatformDir}/lib"
+- RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/${ads_PlatformDir}/bin"
++ ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_INSTALL_LIBDIR}"
++ LIBRARY_OUTPUT_DIRECTORY "${CMAKE_INSTALL_LIBDIR}"
++ RUNTIME_OUTPUT_DIRECTORY "${CMAKE_INSTALL_BINDIR}"
+ )
+ include(CMakePackageConfigHelpers)
+ write_basic_package_version_file(
+@@ -86,7 +88,7 @@ write_basic_package_version_file(
+ COMPATIBILITY SameMajorVersion
+ )
+ install(FILES ${ads_HEADERS}
+- DESTINATION include
++ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/qtadvanceddocking
+ COMPONENT headers
+ )
+ install(FILES
+@@ -97,19 +99,19 @@ install(FILES
+ )
+ install(TARGETS qtadvanceddocking
+ EXPORT adsTargets
+- RUNTIME DESTINATION bin
+- LIBRARY DESTINATION lib
+- ARCHIVE DESTINATION lib
+- INCLUDES DESTINATION include
++ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
++ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
++ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
++ INCLUDES DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
+ )
+
+ install(EXPORT adsTargets
+ FILE adsTargets.cmake
+ NAMESPACE ads::
+- DESTINATION lib/cmake/qtadvanceddocking
++ DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/qtadvanceddocking
+ )
+ install(FILES qtadvanceddockingConfig.cmake "${CMAKE_CURRENT_BINARY_DIR}/qtadvanceddockingConfigVersion.cmake"
+- DESTINATION lib/cmake/qtadvanceddocking
++ DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/qtadvanceddocking
+ )
+
+ target_include_directories(qtadvanceddocking PUBLIC
diff --git a/debian/patches/link-with-xcb.patch b/debian/patches/link-with-xcb.patch
new file mode 100644
index 0000000..b8c3100
--- /dev/null
+++ b/debian/patches/link-with-xcb.patch
@@ -0,0 +1,14 @@
+Index: qt-advanced-docking-system/src/CMakeLists.txt
+===================================================================
+--- qt-advanced-docking-system.orig/src/CMakeLists.txt
++++ qt-advanced-docking-system/src/CMakeLists.txt
+@@ -66,7 +66,8 @@ add_library(ads::qtadvanceddocking ALIAS
+
+ target_link_libraries(qtadvanceddocking PUBLIC Qt${QT_VERSION_MAJOR}::Core
+ Qt${QT_VERSION_MAJOR}::Gui
+- Qt${QT_VERSION_MAJOR}::Widgets)
++ Qt${QT_VERSION_MAJOR}::Widgets
++ -lxcb)
+
+ include(GNUInstallDirs)
+ set_target_properties(qtadvanceddocking PROPERTIES
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..8e7506f
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,22 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+
+DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
+
+%:
+ dh $@
+
+execute_after_dh_auto_clean:
+ rm -rf build-QT5
+
+override_dh_auto_configure:
+ dh_auto_configure -- $(QT6_CMAKE_ARGS) -DUSE_QT_VERSION=6
+ dh_auto_configure --builddirectory=build-QT5 -- -DUSE_QT_VERSION=5
+
+override_dh_auto_build:
+ dh_auto_build
+ dh_auto_build --builddirectory=build-QT5
+
+override_dh_auto_install:
+ dh_auto_install
+ dh_auto_install --builddirectory=build-QT5
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..da739bc
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,2 @@
+version=4
+https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System/tags .*/(\d\S+)\.tar\.gz
More information about the Neon-commits
mailing list