mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-16 19:50:19 +01:00
libraries/lilv: Updated for version 0.24.8.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
b431e38848
commit
fafe56c2d7
4 changed files with 63 additions and 60 deletions
File diff suppressed because one or more lines are too long
56
libraries/lilv/lilv-0.24.8-fix_translations.patch
Normal file
56
libraries/lilv/lilv-0.24.8-fix_translations.patch
Normal file
|
@ -0,0 +1,56 @@
|
|||
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,
|
|
@ -24,7 +24,7 @@
|
|||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
PRGNAM=lilv
|
||||
VERSION=${VERSION:-0.24.6}
|
||||
VERSION=${VERSION:-0.24.8}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
|
@ -70,6 +70,8 @@ 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
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
CXXFLAGS="$SLKCFLAGS" \
|
||||
|
@ -79,8 +81,7 @@ CXXFLAGS="$SLKCFLAGS" \
|
|||
--configdir=/etc \
|
||||
--mandir=/usr/man \
|
||||
--docdir=/usr/doc/$PRGNAM-$VERSION \
|
||||
--dyn-manifest \
|
||||
$bindings
|
||||
--dyn-manifest
|
||||
|
||||
./waf
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
PRGNAM="lilv"
|
||||
VERSION="0.24.6"
|
||||
VERSION="0.24.8"
|
||||
HOMEPAGE="http://drobilla.net/software/lilv/"
|
||||
DOWNLOAD="http://download.drobilla.net/lilv-0.24.6.tar.bz2"
|
||||
MD5SUM="26768e5bdf3601f280e97c86dcbda79f"
|
||||
DOWNLOAD="http://download.drobilla.net/lilv-0.24.8.tar.bz2"
|
||||
MD5SUM="a2eb196d97c3c3b21de77cfbe4489e51"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES="numpy3 sratom"
|
||||
|
|
Loading…
Reference in a new issue