From 7d113fb013830fb9c7e0477e83a67064a107d4a3 Mon Sep 17 00:00:00 2001 From: Evangelos Ribeiro Tzaras Date: Fri, 4 Dec 2020 18:58:16 +0100 Subject: [PATCH] debian: Add dependencies and rules for building docs --- debian/control | 2 ++ debian/rules | 16 ++++++++++++++++ 2 files changed, 18 insertions(+) diff --git a/debian/control b/debian/control index 8d82e63..c802637 100644 --- a/debian/control +++ b/debian/control @@ -7,10 +7,12 @@ Uploaders: Build-Depends: debhelper (>= 11), desktop-file-utils, + gtk-doc-tools , libcallaudio-dev, libfeedback-dev, libhandy-1-dev (>= 1.0.0), libgtk-3-dev, + libgtk-3-doc , modemmanager-dev, libmm-glib-dev (>= 1.12.0), libpeas-dev, diff --git a/debian/rules b/debian/rules index cc4258f..76a6eb2 100755 --- a/debian/rules +++ b/debian/rules @@ -2,9 +2,25 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all +ifeq ($(filter nodoc,$(DEB_BUILD_PROFILES)),) + CONFIGURE_OPTS+=-Dgtk_doc=true +else + CONFIGURE_OPTS+=-Dgtk_doc=false +endif + %: dh $@ -- -B_build +override_dh_auto_configure: + dh_auto_configure -- $(CONFIGURE_OPTS) + +override_dh_auto_build: + dh_auto_build +ifeq ($(filter nodoc,$(DEB_BUILD_PROFILES)),) + # https://github.com/mesonbuild/meson/pull/2862 + ninja -C _build/ calls-doc +endif + override_dh_auto_test: ifeq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),) xvfb-run ninja -C _build test