From f4e0df3111f05e61be4faa6262f4bf388a1830af Mon Sep 17 00:00:00 2001 From: Boyuan Yang Date: Sat, 3 Dec 2022 09:13:52 -0500 Subject: [PATCH] Add doxygen build --- debian/control | 1 + debian/libdtkcore-dev.docs | 2 +- debian/libdtkcore5.shlibs | 2 +- debian/rules | 20 +++++++++++++++++--- 4 files changed, 20 insertions(+), 5 deletions(-) diff --git a/debian/control b/debian/control index 8d8e486..d9ec8b7 100644 --- a/debian/control +++ b/debian/control @@ -12,6 +12,7 @@ Uploaders: Build-Depends: cmake, debhelper-compat (= 13), + doxygen , libgsettings-qt-dev, pkg-config, pkg-kde-tools, diff --git a/debian/libdtkcore-dev.docs b/debian/libdtkcore-dev.docs index 3d0db51..803b9d4 100644 --- a/debian/libdtkcore-dev.docs +++ b/debian/libdtkcore-dev.docs @@ -1,2 +1,2 @@ README.md -doc/Specification.md +docs/Specification.md diff --git a/debian/libdtkcore5.shlibs b/debian/libdtkcore5.shlibs index 4c9f455..ed99916 100644 --- a/debian/libdtkcore5.shlibs +++ b/debian/libdtkcore5.shlibs @@ -1 +1 @@ -libdtkcore 5 libdtkcore5 (>= 5.5.33~) +libdtkcore 5 libdtkcore5 (>= 5.6.2~) diff --git a/debian/rules b/debian/rules index 651ddb4..4aaa14e 100755 --- a/debian/rules +++ b/debian/rules @@ -19,16 +19,30 @@ include /usr/share/dpkg/default.mk VERSION = $(DEB_VERSION_UPSTREAM) +ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS))) + BUILD_DOC_OPTION := ON +else + BUILD_DOC_OPTION := OFF +endif + + %: dh $@ --with pkgkde_symbolshelper override_dh_auto_configure: dh_auto_configure -- \ -DBUILD_EXAMPLES=OFF \ - -DBUILD_DOCS=ON \ - -DBUILD_VERSION=$(VERSION) \ - -DDVERSION=0 \ + -DBUILD_DOCS=$(BUILD_DOC_OPTION) \ + -DBUILD_VERSION=0 \ + -DDVERSION=$(VERSION) \ $(NULL) override_dh_installchangelogs: dh_installchangelogs -k CHANGELOG.md + + +ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS))) +execute_after_dh_install: + # Manually install .qch file when documentation is being built + dh_install debian/tmp/usr/share/qt5/doc/dtkcore.qch debian/libdtkcore-dev/usr/share/qt5/doc/ +endif -- 2.30.2