[neon/qt6/qt6-webview/Neon/release] debian: sync to debian

Carlos De Maine null at kde.org
Tue Oct 24 23:10:50 BST 2023


Git commit ba1616e4244bfe0916dc53cd59e0a63ba09c7331 by Carlos De Maine.
Committed on 25/10/2023 at 00:10.
Pushed by carlosdem into branch 'Neon/release'.

sync to debian

M  +28   -2    debian/control
A  +1    -0    debian/qt6-webview-doc.install
M  +17   -2    debian/rules

https://invent.kde.org/neon/qt6/qt6-webview/-/commit/ba1616e4244bfe0916dc53cd59e0a63ba09c7331

diff --git a/debian/control b/debian/control
index be14c18..68160ff 100644
--- a/debian/control
+++ b/debian/control
@@ -19,8 +19,11 @@ Build-Depends: cmake,
                qt6-declarative-dev (>= 6.4.2+dfsg~),
                qt6-webengine-dev (>= 6.4.2+dfsg~),
                qt6-webengine-dev-tools (>= 6.4.2+dfsg~),
-               qt6-webengine-private-dev (>= 6.4.2+dfsg~)
-Standards-Version: 4.6.1
+               qt6-webengine-private-dev (>= 6.4.2+dfsg~),
+Build-Depends-Indep: qt6-base-dev (>= 6.4~) <!nodoc>,
+                     qt6-documentation-tools (>= 6.4~) <!nodoc>,
+                     qt6-base-doc (>= 6.4~) <!nodoc>,
+Standards-Version: 4.6.2
 Homepage: https://www.qt.io/developers/
 Vcs-Browser: https://salsa.debian.org/qt-kde-team/qt6/qt6-webview
 Vcs-Git: https://salsa.debian.org/qt-kde-team/qt6/qt6-webview.git
@@ -64,6 +67,17 @@ Description: Qt 6 WebView - development files
  This package contains the development files needed to build Qt 6 applications
  using the Qt WebView library.
 
+Package: qt6-webview-doc
+Architecture: any
+Section: kde
+X-Neon-MergedPackage: true
+Depends: qt6-base-doc, qt6-webview-dev (= ${binary:Version}), ${misc:Depends},
+Description: Qt 6 WebView documentation
+ Qt is a cross-platform C++ application framework. Qt's primary feature
+ is its rich set of widgets that provide standard GUI functionality.
+ .
+ This package contains the documentation for Qt 6 WebView.
+
 Package: libqt6webview6
 Architecture: all
 Depends: qt6-webview
@@ -87,3 +101,15 @@ Architecture: all
 Depends: qt6-webview
 Description: Dummy transitional
  Transitional dummy package.
+
+Package: qt6-webview-doc-html
+Architecture: all
+Depends: qt6-webview-doc
+Description: Dummy transitional
+ Transitional dummy package.
+
+Package: qt6-webview-examples
+Architecture: all
+Depends: qt6-webview-dev
+Description: Dummy transitional
+ Transitional dummy package.
diff --git a/debian/qt6-webview-doc.install b/debian/qt6-webview-doc.install
new file mode 100644
index 0000000..8536ff4
--- /dev/null
+++ b/debian/qt6-webview-doc.install
@@ -0,0 +1 @@
+usr/share/qt6/doc/
diff --git a/debian/rules b/debian/rules
index e2cde0c..dba1943 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,14 +3,29 @@ include /usr/share/dpkg/architecture.mk
 
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all optimize=+lto
 
+# QT_HOST_PATH isn't passed in cross-builds
+ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH))
+	extra_cmake_args += -DQT_HOST_PATH=/usr
+endif
+
 %:
 	dh $@ --with pkgkde_symbolshelper --buildsystem=cmake+ninja
 
 override_dh_auto_configure:
 	dh_auto_configure -- \
 		--log-level=STATUS \
-		-DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH)
+		-DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH) \
+		$(extra_cmake_args)
+
+override_dh_auto_build-indep:
+	dh_auto_build -- docs
+
+override_dh_auto_install-indep:
+	DESTDIR=$(CURDIR)/debian/tmp dh_auto_build -- install_docs
+	# Remove build path from index files.
+	find $(CURDIR)/debian/tmp/usr/share/qt6/doc -type f -name *.index -exec \
+               sed -i 's@$(CURDIR)/@@g' {} \;
 
-execute_after_dh_auto_install:
+execute_after_dh_auto_install-arch:
 	# Reproducible builds: remove build paths from .prl files
 	sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libQt6*.prl


More information about the Neon-commits mailing list