[neon/qt6/qt6-serialbus/Neon/release] debian: cludge it

Carlos De Maine null at kde.org
Mon Oct 28 06:19:13 GMT 2024


Git commit 47bfc0283b36baedeb312f38949ae480b81e7711 by Carlos De Maine.
Committed on 28/10/2024 at 06:19.
Pushed by carlosdem into branch 'Neon/release'.

cludge it

M  +9    -8    debian/rules

https://invent.kde.org/neon/qt6/qt6-serialbus/-/commit/47bfc0283b36baedeb312f38949ae480b81e7711

diff --git a/debian/rules b/debian/rules
index 8caf0cb..4bfbb9d 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,6 +7,15 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all optimize=+lto
 #### uncomment when bootstrapping a new qt release ####
 #export DEB_BUILD_PROFILES := ${DEB_BUILD_PROFILES} nodoc
 
+
+ifeq (,$(filter nodoc,$(DEB_BUILD_PROFILES)),)
+override_dh_auto_build-indep:
+	dh_auto_build
+
+override_dh_auto_install-indep:
+	DESTDIR=$(CURDIR)/debian/tmp dh_auto_build -- install
+endif
+
 # QT_HOST_PATH isn't passed in cross-builds
 ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH))
 	extra_cmake_args += \
@@ -26,7 +35,6 @@ override_dh_auto_configure:
 		-DQT_UNITY_BUILD=ON \
 		$(extra_cmake_args)
 
-ifneq ($(filter nodoc,$(DEB_BUILD_PROFILES)),)
 override_dh_auto_build-indep:
 	dh_auto_build -- docs
 
@@ -35,13 +43,6 @@ override_dh_auto_install-indep:
 	# 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
-
-override_dh_auto_install-indep:
-	DESTDIR=$(CURDIR)/debian/tmp dh_auto_build -- install
-endif
 
 execute_after_dh_auto_install-arch:
 	# Reproducible builds: remove build paths from .prl files


More information about the Neon-commits mailing list