[neon/qt6/qt6-tools/Neon/release] debian: add a way to build with no-doc profile

Carlos De Maine null at kde.org
Wed Dec 13 01:08:30 GMT 2023


Git commit 71ae79c65cb811c8c0f8e3419bae9866f9e92e3e by Carlos De Maine.
Committed on 13/12/2023 at 02:08.
Pushed by carlosdem into branch 'Neon/release'.

add a way to build with no-doc profile

M  +11   -0    debian/rules

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

diff --git a/debian/rules b/debian/rules
index fc342d2..f4d2cf6 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,6 +1,7 @@
 #!/usr/bin/make -f
 include /usr/share/dpkg/architecture.mk
 
+export DEB_BUILD_PROFILES=nodoc
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all optimize=+lto
 
 # need gcc 12.1 for mold to be able to process --gdb-index
@@ -24,10 +25,20 @@ override_dh_shlibdeps:
 	dh_shlibdeps --dpkg-shlibdeps-params=--ignore-missing-info
 
 override_dh_auto_build-indep:
+# support the nodoc build profile
+ifneq ($(filter nodoc,$(DEB_BUILD_PROFILES)),)
+        echo -e "\nnodoc build profile enabled, therefor not building docs.\n"
+	dh_auto_build
+else
+override_dh_auto_build-indep:
+	echo -e "\nnodoc build profile not enabled, therefor building docs.\n"
 	dh_auto_build -- docs
+endif
 
 override_dh_auto_install-indep:
+ifneq ($(filter nodoc,$(DEB_BUILD_PROFILES)),)
 	DESTDIR=$(CURDIR)/debian/tmp dh_auto_build -- install_docs
+endif
 	# Remove build path from index files.
 	find $(CURDIR)/debian/tmp/usr/share/qt6/doc -type f -name *.index -exec \
                sed -i 's@$(CURDIR)/@@g' {} \;


More information about the Neon-commits mailing list