Control: tags -1 patch

On Wed, 17 Mar 2021 17:30:59 +0100 Bastian Germann wrote:>
I second this request. Alternatively, it would be great to have a build profile that excludes ICU.

A patch with noi18n profile is enclosed.
From: Bastian Germann <[email protected]>
Date: Thu, 21 Oct 2021 10:54:53 +0200
Subject: No icu dependency with noi18n build profile

---
 debian/control | 2 +-
 debian/rules   | 4 ++++
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/debian/control b/debian/control
index 48b34e6..cdab6cb 100644
--- a/debian/control
+++ b/debian/control
@@ -11,7 +11,7 @@ Build-Depends-Indep:
  pkg-config,
 Build-Depends-Arch:
  dh-sequence-python3 <!nopython>,
- libicu-dev,
+ libicu-dev <!noi18n>,
  liblzma-dev,
  libpython3-all-dbg <!nopython>,
  libpython3-all-dev <!nopython>,
diff --git a/debian/rules b/debian/rules
index 8436da5..aec8313 100755
--- a/debian/rules
+++ b/debian/rules
@@ -28,7 +28,11 @@ doconfigure-%:
 	dh_auto_configure --builddirectory=builddir/$(*) -- $(CONFIGURE_FLAGS)
 	touch $@
 
+ifeq (,$(filter noi18n,$(DEB_BUILD_PROFILES)))
 doconfigure-main: CONFIGURE_FLAGS += --without-python --with-icu
+else
+doconfigure-main: CONFIGURE_FLAGS += --without-python
+endif
 doconfigure-python%: CONFIGURE_FLAGS += --with-python=/usr/bin/$(*) --with-python-install-dir=/usr/lib/$(*)/dist-packages
 
 dobuild-%: BUILD_DIR=builddir/$(*)

Reply via email to