summaryrefslogtreecommitdiff
path: root/libraries/lilv
diff options
context:
space:
mode:
authorHeinz Wiesinger <pprkut@liwjatan.at>2014-04-14 23:28:40 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2014-04-14 23:28:40 +0700
commit5f94687968a2bc9caebe3ba4ebcb30d9dbdd2b72 (patch)
treee49ae13c9e3ac818d0e0473fadda7335d7bbc6fa /libraries/lilv
parent152cb69ed62432822c34c3e02794dd1ebb77ac19 (diff)
downloadslackbuilds-5f94687968a2bc9caebe3ba4ebcb30d9dbdd2b72.tar.gz
libraries/lilv: Updated for version 0.18.0.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries/lilv')
-rw-r--r--libraries/lilv/README3
-rw-r--r--libraries/lilv/lilv.SlackBuild18
-rw-r--r--libraries/lilv/lilv.info6
-rw-r--r--libraries/lilv/lilvmm.patch40
4 files changed, 17 insertions, 50 deletions
diff --git a/libraries/lilv/README b/libraries/lilv/README
index 4ea88690c0..a0fe1622b3 100644
--- a/libraries/lilv/README
+++ b/libraries/lilv/README
@@ -3,3 +3,6 @@ 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.
+
+If you want to build language bindings for lilv, pass BINDINGS=yes
+to the script. This additionally requires numpy.
diff --git a/libraries/lilv/lilv.SlackBuild b/libraries/lilv/lilv.SlackBuild
index 028db0ad97..aa121f8f71 100644
--- a/libraries/lilv/lilv.SlackBuild
+++ b/libraries/lilv/lilv.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for lilv
-# Copyright 2012-2013 Heinz Wiesinger, Amsterdam, The Netherlands
+# Copyright 2012-2014 Heinz Wiesinger, Amsterdam, The Netherlands
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=lilv
-VERSION=0.16.0
+VERSION=${VERSION:-0.18.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -54,6 +54,13 @@ else
LIBDIRSUFFIX=""
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
rm -rf $PKG
@@ -69,9 +76,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 {} \;
-# Fix building python bindings
-patch -p2 -i $CWD/lilvmm.patch
-
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./waf configure \
@@ -80,8 +84,8 @@ CXXFLAGS="$SLKCFLAGS" \
--configdir=/etc \
--mandir=/usr/man \
--docdir=/usr/doc/$PRGNAM-$VERSION \
- --bindings \
- --dyn-manifest
+ --dyn-manifest \
+ $bindings
./waf
diff --git a/libraries/lilv/lilv.info b/libraries/lilv/lilv.info
index d02534202c..c9e65e671d 100644
--- a/libraries/lilv/lilv.info
+++ b/libraries/lilv/lilv.info
@@ -1,8 +1,8 @@
PRGNAM="lilv"
-VERSION="0.16.0"
+VERSION="0.18.0"
HOMEPAGE="http://drobilla.net/software/lilv/"
-DOWNLOAD="http://download.drobilla.net/lilv-0.16.0.tar.bz2"
-MD5SUM="12eb71f2b5b8a68e15c1c816896bcb9f"
+DOWNLOAD="http://download.drobilla.net/lilv-0.18.0.tar.bz2"
+MD5SUM="1d1232ea73b239551bb4f462b414a819"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="sratom"
diff --git a/libraries/lilv/lilvmm.patch b/libraries/lilv/lilvmm.patch
deleted file mode 100644
index 410aac5e32..0000000000
--- a/libraries/lilv/lilvmm.patch
+++ /dev/null
@@ -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);
- };
-