python/tagpy: Updated for version 2013.1.

Fixes build failure with boost-1.58 on -current.

Signed-off-by: David Spencer <baildon.research@googlemail.com>
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
This commit is contained in:
David Spencer 2015-09-02 00:26:17 +01:00 committed by Willy Sudiarto Raharjo
parent 39f0bf4de2
commit 90ba8b9767
3 changed files with 4 additions and 36 deletions

View file

@ -1,30 +0,0 @@
https://github.com/inducer/tagpy/commit/d0759c0ec7d24ae8d1af395a1032521eb00b4d1f
https://github.com/inducer/tagpy/commit/813ec4f03bb4411c7ffd15dcb3974da04a3f109c
--- tagpy-0.94.8/src/wrapper/id3.cpp
+++ tagpy-0.94.8/src/wrapper/id3.cpp
@@ -79,6 +79,10 @@
MF_OL(setVolumeAdjustment, 1, 2);
MF_OL(setPeakVolume, 1, 2);
+ #if (TAGPY_TAGLIB_HEX_VERSION >= 0x10800)
+ MF_OL(render, 0, 1)
+ #endif
+
// -------------------------------------------------------------
// MPEG
// -------------------------------------------------------------
@@ -212,7 +216,12 @@
.DEF_SIMPLE_METHOD(removeFrame)
.DEF_SIMPLE_METHOD(removeFrames)
- .DEF_SIMPLE_METHOD(render)
+ #if (TAGPY_TAGLIB_HEX_VERSION >= 0x10800)
+ .DEF_OVERLOADED_METHOD(render, ByteVector (cl::*)() const)
+ .DEF_OVERLOADED_METHOD(render, ByteVector (cl::*)(int) const)
+ #else
+ .def("render", (ByteVector (cl::*)() const) &cl::render)
+ #endif
;
}

View file

@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=tagpy
VERSION=${VERSION:-0.94.8}
VERSION=${VERSION:-2013.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@ -67,8 +67,6 @@ find -L . \
# Remove ez_setup. We don't want to download distribute.
sed -i -e '/distribute_setup/d' -e "s/^if.*/if False:/" aksetup_helper.py
patch -p1 < $CWD/tagpy-0.94.8-taglib-1.8_compat.patch
./configure.py \
--taglib-inc-dir="/usr/include/taglib" \
--boost-python-libname="boost_python" \

View file

@ -1,8 +1,8 @@
PRGNAM="tagpy"
VERSION="0.94.8"
VERSION="2013.1"
HOMEPAGE="http://mathema.tician.de/software/tagpy"
DOWNLOAD="http://pypi.python.org/packages/source/t/tagpy/tagpy-0.94.8.tar.gz"
MD5SUM="6baff63318cf90b9bc5a2497a0597802"
DOWNLOAD="https://pypi.python.org/packages/source/t/tagpy/tagpy-2013.1.tar.gz"
MD5SUM="96cbbd8adb8a6c0b9c21851979cc7c64"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""