[neon/qt6/qt6-tools/Neon/release] debian: update doc profile logic

Carlos De Maine null at kde.org
Thu May 1 08:14:07 BST 2025


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

update doc profile logic

M  +5    -5    debian/rules

https://invent.kde.org/neon/qt6/qt6-tools/-/commit/e933635bd5815be5006af0f94852455bccc7e250

diff --git a/debian/rules b/debian/rules
index 284e5e7..89c255f 100755
--- a/debian/rules
+++ b/debian/rules
@@ -20,21 +20,21 @@ override_dh_auto_configure:
 override_dh_shlibdeps:
 	dh_shlibdeps --dpkg-shlibdeps-params=--ignore-missing-info
 
-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