libraries/lilv: Updated for version 0.18.0.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Heinz Wiesinger 2014-04-14 23:28:40 +07:00 committed by Willy Sudiarto Raharjo
parent 152cb69ed6
commit 5f94687968
4 changed files with 17 additions and 50 deletions

View file

@ -3,3 +3,6 @@ possible for applications. Lilv is the successor to SLV2, rewritten
to be significantly faster and have minimal dependencies. It is to be significantly faster and have minimal dependencies. It is
stable, well-tested software (the included test suite covers over stable, well-tested software (the included test suite covers over
90% of the code) in use by several applications. 90% of the code) in use by several applications.
If you want to build language bindings for lilv, pass BINDINGS=yes
to the script. This additionally requires numpy.

View file

@ -2,7 +2,7 @@
# Slackware build script for lilv # Slackware build script for lilv
# Copyright 2012-2013 Heinz Wiesinger, Amsterdam, The Netherlands # Copyright 2012-2014 Heinz Wiesinger, Amsterdam, The Netherlands
# All rights reserved. # All rights reserved.
# #
# Redistribution and use of this script, with or without modification, is # Redistribution and use of this script, with or without modification, is
@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=lilv PRGNAM=lilv
VERSION=0.16.0 VERSION=${VERSION:-0.18.0}
BUILD=${BUILD:-1} BUILD=${BUILD:-1}
TAG=${TAG:-_SBo} TAG=${TAG:-_SBo}
@ -54,6 +54,13 @@ else
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
fi fi
if [ "${BINDINGS:-no}" = "no" ]; then
bindings=""
else
bindings="--bindings"
SLKCFLAGS="$SLKCFLAGS -I/usr/lib$LIBDIRSUFFIX/python2.7/site-packages/numpy/core/include/"
fi
set -e set -e
rm -rf $PKG rm -rf $PKG
@ -69,9 +76,6 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
# Fix building python bindings
patch -p2 -i $CWD/lilvmm.patch
CFLAGS="$SLKCFLAGS" \ CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \
./waf configure \ ./waf configure \
@ -80,8 +84,8 @@ CXXFLAGS="$SLKCFLAGS" \
--configdir=/etc \ --configdir=/etc \
--mandir=/usr/man \ --mandir=/usr/man \
--docdir=/usr/doc/$PRGNAM-$VERSION \ --docdir=/usr/doc/$PRGNAM-$VERSION \
--bindings \ --dyn-manifest \
--dyn-manifest $bindings
./waf ./waf

View file

@ -1,8 +1,8 @@
PRGNAM="lilv" PRGNAM="lilv"
VERSION="0.16.0" VERSION="0.18.0"
HOMEPAGE="http://drobilla.net/software/lilv/" HOMEPAGE="http://drobilla.net/software/lilv/"
DOWNLOAD="http://download.drobilla.net/lilv-0.16.0.tar.bz2" DOWNLOAD="http://download.drobilla.net/lilv-0.18.0.tar.bz2"
MD5SUM="12eb71f2b5b8a68e15c1c816896bcb9f" MD5SUM="1d1232ea73b239551bb4f462b414a819"
DOWNLOAD_x86_64="" DOWNLOAD_x86_64=""
MD5SUM_x86_64="" MD5SUM_x86_64=""
REQUIRES="sratom" REQUIRES="sratom"

View file

@ -1,40 +0,0 @@
Index: trunk/lilv/lilv/lilvmm.hpp
===================================================================
--- trunk/lilv/lilv/lilvmm.hpp (revision 4975)
+++ trunk/lilv/lilv/lilvmm.hpp (revision 5092)
@@ -48,4 +48,9 @@
inline RT name(T1 a1, T2 a2) { \
return lilv_ ## prefix ## _ ## name(me, a1, a2); \
+ }
+
+#define LILV_WRAP3(RT, prefix, name, T1, a1, T2, a2, T3, a3) \
+ inline RT name(T1 a1, T2 a2, T3 a3) { \
+ return lilv_ ## prefix ## _ ## name(me, a1, a2, a3); \
}
@@ -138,4 +143,25 @@
LILV_WRAP1(bool, nodes, contains, const Node, node);
LILV_WRAP0(Node, nodes, get_first);
+};
+
+struct UI {
+ inline UI(const LilvUI* c_obj) : me(c_obj) {}
+ LILV_WRAP_CONVERSION(const LilvUI);
+
+ LILV_WRAP0(const LilvNode*, ui, get_uri);
+ LILV_WRAP0(const LilvNode*, ui, get_bundle_uri);
+ LILV_WRAP0(const LilvNode*, ui, get_binary_uri);
+ LILV_WRAP0(const LilvNodes*, ui, get_classes);
+ /*LILV_WRAP3(bool, ui, is_supported,
+ LilvUISupportedFunc, supported_func,
+ const LilvNode*, container_type,
+ const LilvNode**, ui_type);*/
+ LILV_WRAP1(bool, ui, is_a, const LilvNode*, class_uri);
+
+ const LilvUI* me;
+};
+
+struct UIs {
+ LILV_WRAP_COLL(UIs, UI, uis);
};