From c5e06770d584dee8d94e6f2e930711cc76894042 Mon Sep 17 00:00:00 2001 From: Matteo Bernardini Date: Tue, 4 Jul 2023 20:01:37 +0200 Subject: [PATCH] libraries/suil: Don't build the docs by default. A Sphinx module is needed to build them and that's a bit overkill Signed-off-by: Matteo Bernardini Signed-off-by: Willy Sudiarto Raharjo --- libraries/suil/README | 7 ++++++- libraries/suil/suil.SlackBuild | 3 +++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/libraries/suil/README b/libraries/suil/README index b31b84b9b0..e8b20fceb5 100644 --- a/libraries/suil/README +++ b/libraries/suil/README @@ -1 +1,6 @@ -Suil is a lightweight C library for loading and wrapping LV2 plugin UIs. +Suil is a lightweight C library for loading and wrapping LV2 +plugin UIs. + +By default docs aren't built: if you like to include them be sure +to have the optional dependency python-sphinx-lv2-theme installed +and pass the script the parameter DOCS=yes diff --git a/libraries/suil/suil.SlackBuild b/libraries/suil/suil.SlackBuild index bcfc8dcb8a..8944a0df69 100644 --- a/libraries/suil/suil.SlackBuild +++ b/libraries/suil/suil.SlackBuild @@ -65,6 +65,8 @@ else LIBDIRSUFFIX="" fi +doc="-Ddocs=disabled" ; [ "${DOCS:-no}" != "no" ] && doc="-Ddocs=enabled" + set -e rm -rf $PKG @@ -92,6 +94,7 @@ cd build --mandir=/usr/man \ --prefix=/usr \ --sysconfdir=/etc \ + $doc \ -Dstrip=true "${NINJA:=ninja}" DESTDIR=$PKG $NINJA install