Support <nodoc> build profile

`xsltproc`, `docbook` and all other XML-related packages are not needed
when the `<nodoc>` build profile is active, as long as `./configure` is
called with `--disable-man`.

Closes: #1051827
This commit is contained in:
Gioele Barabucci
2023-09-13 08:36:38 +02:00
parent d7ce68863e
commit 75eb241552
2 changed files with 9 additions and 5 deletions

10
debian/control vendored
View File

@@ -9,13 +9,13 @@ Build-Depends: debhelper-compat (= 13),
libcrypt-dev,
libpam0g-dev,
quilt,
xsltproc,
docbook-xsl,
docbook-xml,
libxml2-utils,
xsltproc <!nodoc>,
docbook-xsl <!nodoc>,
docbook-xml <!nodoc>,
libxml2-utils <!nodoc>,
libselinux1-dev [linux-any],
libsemanage-dev [linux-any],
itstool,
itstool <!nodoc>,
bison,
libaudit-dev [linux-any]
Standards-Version: 4.6.1

4
debian/rules vendored
View File

@@ -21,6 +21,10 @@ DEB_CONFIGURE_EXTRA_FLAGS := --without-libcrack \
--without-tcb \
SHELL=/bin/sh
ifneq ($(filter nodoc,$(DEB_BUILD_PROFILES)),)
DEB_CONFIGURE_EXTRA_FLAGS += --disable-man
endif
# Set the default editor for vipw/vigr
CFLAGS += -DDEFAULT_EDITOR="\"sensible-editor\""