From cc7c37ef334348e512276275165deceacf7766fd Mon Sep 17 00:00:00 2001 From: =?utf8?q?IOhannes=20m=20zm=C3=B6lnig=20=28Debian/GNU=29?= Date: Thu, 4 Aug 2022 17:41:51 +0200 Subject: [PATCH] Install apiref via dh_installdocs --- debian/libjuce-doc.docs | 1 + debian/libjuce-doc.install | 1 - debian/patches/debian_doxygen-outdir.patch | 19 +++++++++++++++++++ debian/patches/series | 1 + debian/rules | 4 ++++ 5 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 debian/libjuce-doc.docs delete mode 100644 debian/libjuce-doc.install create mode 100644 debian/patches/debian_doxygen-outdir.patch diff --git a/debian/libjuce-doc.docs b/debian/libjuce-doc.docs new file mode 100644 index 00000000..a1f3595b --- /dev/null +++ b/debian/libjuce-doc.docs @@ -0,0 +1 @@ +docs/doxygen/apiref diff --git a/debian/libjuce-doc.install b/debian/libjuce-doc.install deleted file mode 100644 index bd2288ff..00000000 --- a/debian/libjuce-doc.install +++ /dev/null @@ -1 +0,0 @@ -docs/doxygen/doc/* /usr/share/doc/juce-modules-source/apiref diff --git a/debian/patches/debian_doxygen-outdir.patch b/debian/patches/debian_doxygen-outdir.patch new file mode 100644 index 00000000..2256ec6d --- /dev/null +++ b/debian/patches/debian_doxygen-outdir.patch @@ -0,0 +1,19 @@ +Description: Output doxygen-generated HTML into apiref/ folder + so we don't need to rename it later +Author: IOhannes m zmölnig +Origin: Debian +Forwarded: not-needed +Last-Update: 2022-08-04 +--- +This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ +--- juce.orig/docs/doxygen/Doxyfile ++++ juce/docs/doxygen/Doxyfile +@@ -1099,7 +1099,7 @@ + # The default directory is: html. + # This tag requires that the tag GENERATE_HTML is set to YES. + +-HTML_OUTPUT = doc ++HTML_OUTPUT = apiref + + # The HTML_FILE_EXTENSION tag can be used to specify the file extension for each + # generated HTML page (for example: .htm, .php, .asp). diff --git a/debian/patches/series b/debian/patches/series index d916206f..9d654e16 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -2,6 +2,7 @@ debian_fixed-defines.patch debian_no-update-check.patch debian_system_modules.patch debian_python3-doxygen.patch +debian_doxygen-outdir.patch debian_unittests_globalpaths.patch debian_vst.patch debian_link_systemlibs.patch diff --git a/debian/rules b/debian/rules index 62f99ac2..4792fde2 100755 --- a/debian/rules +++ b/debian/rules @@ -78,7 +78,11 @@ override_dh_install-indep: -type f -executable \ '(' -name "*.h" -or -name "*.cpp" ')' \ -exec chmod -c 0644 {} + + dh_doxygen -i +override_dh_installdocs-indep: + dh_installdocs -plibjuce-doc --doc-main-package=juce-modules-source + dh_installdocs --remaining-packages override_dh_installchangelogs: dh_installchangelogs ChangeList.txt -- 2.30.2