Date: Friday, January 25, 2013 @ 09:15:50 Author: andrea Revision: 82865
tagpy has switched to python 3 Added: python2-tagpy/ python2-tagpy/repos/ python2-tagpy/trunk/ python2-tagpy/trunk/PKGBUILD python2-tagpy/trunk/taglib1.7.patch -----------------+ PKGBUILD | 47 +++++++++++++++++++++++++++++++++++++++++++++++ taglib1.7.patch | 37 +++++++++++++++++++++++++++++++++++++ 2 files changed, 84 insertions(+) Added: python2-tagpy/trunk/PKGBUILD =================================================================== --- python2-tagpy/trunk/PKGBUILD (rev 0) +++ python2-tagpy/trunk/PKGBUILD 2013-01-25 08:15:50 UTC (rev 82865) @@ -0,0 +1,47 @@ +# $Id$ +# Contributor: Andrea Scarpino <and...@archlinux.org> +# Contributor: Callan Barrett <wizzomafi...@gmail.com> +# Contributor: Scott Horowitz <stonecr...@gmail.com> + +pkgname=python2-tagpy +pkgver=0.94.8 +pkgrel=1 +pkgdesc="Python bindings for TagLib" +arch=('i686' 'x86_64') +url="http://pypi.python.org/pypi/tagpy" +license=('MIT') +depends=('python2' 'taglib' 'boost-libs') +makedepends=('python2-distribute' 'boost') +replaces=('tagpy') +conflicts=('tagpy') +source=("http://pypi.python.org/packages/source/t/tagpy/tagpy-$pkgver.tar.gz" + 'taglib1.7.patch') +md5sums=('6baff63318cf90b9bc5a2497a0597802' + '5b47cefe5fad98a093232256779da345') + +build() { + cd tagpy-${pkgver} + + patch -p1 -i "${srcdir}"/taglib1.7.patch + + sed -i -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \ + $(find . -name '*.py') + + ./configure.py --taglib-lib-dir=/usr/lib/ \ + --taglib-inc-dir=/usr/include/taglib/ \ + --boost-inc-dir=/usr/include/boost/ \ + --boost-lib-dir=/usr/lib/ \ + --boost-python-libname=boost_python + python2 setup.py build +} + +package(){ + cd tagpy-${pkgver} + python2 setup.py install --root="${pkgdir}" --optimize=1 + install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/$pkgname/LICENSE" +} + +check(){ + cd tagpy-${pkgver} + python2 setup.py test +} Property changes on: python2-tagpy/trunk/PKGBUILD ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Id \ No newline at end of property Added: python2-tagpy/trunk/taglib1.7.patch =================================================================== --- python2-tagpy/trunk/taglib1.7.patch (rev 0) +++ python2-tagpy/trunk/taglib1.7.patch 2013-01-25 08:15:50 UTC (rev 82865) @@ -0,0 +1,37 @@ +From: Andreas Kloeckner <inf...@tiker.net> +Date: Tue, 25 Dec 2012 19:36:42 +0000 (+0100) +Subject: Update tagpy for TagLib 1.7 compatibility. (patch by unknown Gentoo user, via Lars... +X-Git-Tag: v2013.1~6 +X-Git-Url: http://git.tiker.net/tagpy.git/commitdiff_plain/d0759c0ec7d24ae8d1af395a1032521eb00b4d1f?hp=c2801c31493f77d7c33d20fa20f0b298b0f322ef + +Update tagpy for TagLib 1.7 compatibility. (patch by unknown Gentoo user, via Lars Wendler) +--- + +diff --git a/src/wrapper/id3.cpp b/src/wrapper/id3.cpp +index a76f7ef..5c08ae1 100644 +--- a/src/wrapper/id3.cpp ++++ b/src/wrapper/id3.cpp +@@ -79,6 +79,10 @@ namespace + MF_OL(setVolumeAdjustment, 1, 2); + MF_OL(setPeakVolume, 1, 2); + ++ #if (TAGPY_TAGLIB_HEX_VERSION >= 0x10700) ++ MF_OL(render, 0, 1) ++ #endif ++ + // ------------------------------------------------------------- + // MPEG + // ------------------------------------------------------------- +@@ -212,7 +216,11 @@ void exposeID3() + .DEF_SIMPLE_METHOD(removeFrame) + .DEF_SIMPLE_METHOD(removeFrames) + +- .DEF_SIMPLE_METHOD(render) ++ #if (TAGPY_TAGLIB_HEX_VERSION >= 0x10700) ++ .DEF_OVERLOADED_METHOD(render, ByteVector (cl::*)(int) const) ++ #else ++ .DEF_SIMPLE_METHOD(render) ++ #endif + ; + } +