diff options
author | Matteo Bernardini <ponce@slackbuilds.org> | 2023-07-04 20:03:20 +0200 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-07-08 16:42:13 +0700 |
commit | fcdedd4cecaf685e44ac1d20e207b9be1289021c (patch) | |
tree | 9004ab2eb272630671f1b7caa2497f8a97fe67fb /libraries/lilv | |
parent | a1703e3e522e2f6b1c5eee8e4587c50fe09b62ee (diff) |
libraries/lilv: Don't build the docs by default, cleanups.
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/lilv')
-rw-r--r-- | libraries/lilv/README | 4 | ||||
-rw-r--r-- | libraries/lilv/lilv-0.24.8-fix_translations.patch | 56 | ||||
-rw-r--r-- | libraries/lilv/lilv.SlackBuild | 5 |
3 files changed, 7 insertions, 58 deletions
diff --git a/libraries/lilv/README b/libraries/lilv/README index 4ea88690c045..9e05f06f2a48 100644 --- a/libraries/lilv/README +++ b/libraries/lilv/README @@ -3,3 +3,7 @@ possible for applications. Lilv is the successor to SLV2, rewritten to be significantly faster and have minimal dependencies. It is stable, well-tested software (the included test suite covers over 90% of the code) in use by several applications. + +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/lilv/lilv-0.24.8-fix_translations.patch b/libraries/lilv/lilv-0.24.8-fix_translations.patch deleted file mode 100644 index 1f7593dd6a7c..000000000000 --- a/libraries/lilv/lilv-0.24.8-fix_translations.patch +++ /dev/null @@ -1,56 +0,0 @@ -From b3438131f4bff67d56243bac85371c03a86bf53b Mon Sep 17 00:00:00 2001 -From: David Robillard <d@drobilla.net> -Date: Sun, 17 May 2020 20:49:46 +0200 -Subject: [PATCH] Make lilv_world_get() use translations - ---- - NEWS | 6 ++++++ - src/world.c | 20 ++++++++++++++++++++ - wscript | 2 +- - 3 files changed, 27 insertions(+), 1 deletion(-) - -diff --git a/NEWS b/NEWS -index b2f881c..c1c06f7 100644 ---- a/NEWS -+++ b/NEWS -@@ -1,3 +1,9 @@ -+lilv (0.24.9) unstable; -+ -+ * Make lilv_world_get() use translations -+ -+ -- David Robillard <d@drobilla.net> Sun, 17 May 2020 18:44:04 +0000 -+ - lilv (0.24.8) stable; - - * Allow passing strings for URIs in Python API when unambiguous -diff --git a/src/world.c b/src/world.c -index 22d165a..65cffd4 100644 ---- a/src/world.c -+++ b/src/world.c -@@ -240,6 +240,26 @@ lilv_world_get(LilvWorld* world, - const LilvNode* predicate, - const LilvNode* object) - { -+ if (!object) { -+ // TODO: Improve performance (see lilv_plugin_get_one) -+ SordIter* stream = sord_search(world->model, -+ subject ? subject->node : NULL, -+ predicate ? predicate->node : NULL, -+ NULL, -+ NULL); -+ -+ LilvNodes* nodes = -+ lilv_nodes_from_stream_objects(world, stream, SORD_OBJECT); -+ -+ if (nodes) { -+ LilvNode* value = lilv_node_duplicate(lilv_nodes_get_first(nodes)); -+ lilv_nodes_free(nodes); -+ return value; -+ } -+ -+ return NULL; -+ } -+ - SordNode* snode = sord_get(world->model, - subject ? subject->node : NULL, - predicate ? predicate->node : NULL, diff --git a/libraries/lilv/lilv.SlackBuild b/libraries/lilv/lilv.SlackBuild index c06d9a3445b1..675ab1d6f519 100644 --- a/libraries/lilv/lilv.SlackBuild +++ b/libraries/lilv/lilv.SlackBuild @@ -65,6 +65,8 @@ else LIBDIRSUFFIX="" fi +doc="-Ddocs=disabled" ; [ "${DOCS:-no}" != "no" ] && doc="-Ddocs=enabled" + set -e rm -rf $PKG @@ -80,8 +82,6 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -#patch -p1 < $CWD/lilv-0.24.8-fix_translations.patch - export PYTHON=python3 mkdir build cd build @@ -95,6 +95,7 @@ cd build --mandir=/usr/man \ --prefix=/usr \ --sysconfdir=/etc \ + $doc \ -Dstrip=true "${NINJA:=ninja}" DESTDIR=$PKG $NINJA install |