aboutsummaryrefslogtreecommitdiff
path: root/libraries/sratom
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2023-07-04 20:02:19 +0200
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2023-07-08 16:42:13 +0700
commita1703e3e522e2f6b1c5eee8e4587c50fe09b62ee (patch)
treeba48595e280eb20ad972c1c6244567c8f4db40c1 /libraries/sratom
parentc5e06770d584dee8d94e6f2e930711cc76894042 (diff)
libraries/sratom: 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 <ponce@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries/sratom')
-rw-r--r--libraries/sratom/README4
-rw-r--r--libraries/sratom/sratom.SlackBuild3
2 files changed, 7 insertions, 0 deletions
diff --git a/libraries/sratom/README b/libraries/sratom/README
index 95dffb3d95d0..d2b8df7b0cde 100644
--- a/libraries/sratom/README
+++ b/libraries/sratom/README
@@ -1,2 +1,6 @@
Sratom is a library for serialising LV2 atoms to/from RDF,
particularly the Turtle syntax.
+
+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/sratom/sratom.SlackBuild b/libraries/sratom/sratom.SlackBuild
index 7f385d633f8b..2eab3077e7c7 100644
--- a/libraries/sratom/sratom.SlackBuild
+++ b/libraries/sratom/sratom.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