[neon/qt6/qt6-declarative/Neon/release] debian: update logic for doc profile selection

Carlos De Maine null at kde.org
Thu May 1 08:10:30 BST 2025


Git commit 344ea76090cb9289aa6d45c5a417c6307fbda9d3 by Carlos De Maine.
Committed on 01/05/2025 at 07:10.
Pushed by carlosdem into branch 'Neon/release'.

update logic for doc profile selection

M  +0    -1    debian/control
M  +5    -5    debian/rules

https://invent.kde.org/neon/qt6/qt6-declarative/-/commit/344ea76090cb9289aa6d45c5a417c6307fbda9d3

diff --git a/debian/control b/debian/control
index 5790bad..2d162eb 100644
--- a/debian/control
+++ b/debian/control
@@ -24,7 +24,6 @@ Build-Depends: cmake,
                qt6-svg-dev (>=6.9.0~),
                qt6-tools-dev (>=6.9.0~),
 Build-Depends-Indep: qt6-base-dev (>=6.9~) <!nodoc>,
-                     qt6-base-doc (>=6.9~) <!nodoc>,
                      qt6-tools (>=6.9~) <!nodoc>,
 Standards-Version: 4.6.2
 Homepage: https://www.qt.io/developers/
diff --git a/debian/rules b/debian/rules
index 594c3e2..de8b053 100755
--- a/debian/rules
+++ b/debian/rules
@@ -43,21 +43,21 @@ override_dh_makeshlibs:
 #override_dh_qmldeps:
 #	LD_LIBRARY_PATH=debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/ dh_qmldeps
 
-ifeq ($(filter !nodoc,$(DEB_BUILD_PROFILES)),)
+ifneq ($(filter nodoc,$(DEB_BUILD_PROFILES)),)
 override_dh_auto_build-indep:
-	dh_auto_build
+	dh_auto_build -- docs
 
 override_dh_auto_install-indep:
 	DESTDIR=$(CURDIR)/debian/tmp dh_auto_build -- install
+	# Remove build path from index files.
+	find $(CURDIR)/debian/tmp/usr/share/qt6/doc -type f -name *.index -exec \
+                sed -i 's@$(CURDIR)/@@g' {} \;
 else
 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' {} \;
 endif
 
 execute_after_dh_auto_install-arch:


More information about the Neon-commits mailing list