diff options
author | wiz <wiz@pkgsrc.org> | 2014-01-17 14:35:06 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2014-01-17 14:35:06 +0000 |
commit | 937298054c68f1fb563b3d24144bc79c9e21553a (patch) | |
tree | c674860c6c904f0c829727f591d4432f13bc1a41 /audio/py-audioread | |
parent | 83559eddc44a0ab9c69ebaa11929676e364b197e (diff) | |
download | pkgsrc-937298054c68f1fb563b3d24144bc79c9e21553a.tar.gz |
Update to 1.0.1 and fix python-3.x compatibility problem.
Changes:
1.0.1
When GStreamer fails to report a duration, raise an exception
instead of silently setting the duration field to None.
Diffstat (limited to 'audio/py-audioread')
-rw-r--r-- | audio/py-audioread/Makefile | 12 | ||||
-rw-r--r-- | audio/py-audioread/distinfo | 9 | ||||
-rw-r--r-- | audio/py-audioread/patches/patch-audioread_gstdec.py | 19 |
3 files changed, 30 insertions, 10 deletions
diff --git a/audio/py-audioread/Makefile b/audio/py-audioread/Makefile index 5d18270b102..01dc712b5f9 100644 --- a/audio/py-audioread/Makefile +++ b/audio/py-audioread/Makefile @@ -1,8 +1,8 @@ -# $NetBSD: Makefile,v 1.1 2013/04/02 10:44:41 drochner Exp $ -# +# $NetBSD: Makefile,v 1.2 2014/01/17 14:35:06 wiz Exp $ -DISTNAME= v1.0.0 -PKGNAME= ${PYPKGPREFIX}-audioread-1.0.0 +VERSION= 1.0.1 +DISTNAME= v${VERSION} +PKGNAME= ${PYPKGPREFIX}-audioread-${VERSION} CATEGORIES= audio MASTER_SITES= https://github.com/sampsyo/audioread/archive/ DIST_SUBDIR= audioread @@ -12,9 +12,9 @@ HOMEPAGE= https://github.com/sampsyo/audioread COMMENT= Audio file decoder LICENSE= mit -WRKSRC= ${WRKDIR}/audioread-1.0.0 +WRKSRC= ${WRKDIR}/audioread-${VERSION} USE_LANGUAGES= # none -EGG_NAME= audioread-1.0.0 +EGG_NAME= audioread-${VERSION} .include "../../lang/python/distutils.mk" .include "../../mk/bsd.pkg.mk" diff --git a/audio/py-audioread/distinfo b/audio/py-audioread/distinfo index 42ff13c508b..52fac11ef68 100644 --- a/audio/py-audioread/distinfo +++ b/audio/py-audioread/distinfo @@ -1,5 +1,6 @@ -$NetBSD: distinfo,v 1.1 2013/04/02 10:44:41 drochner Exp $ +$NetBSD: distinfo,v 1.2 2014/01/17 14:35:06 wiz Exp $ -SHA1 (audioread/v1.0.0.tar.gz) = f67aa7e11a86869dacc8189769c14d3c88e7a494 -RMD160 (audioread/v1.0.0.tar.gz) = 748d38461b63ac45053e5f4019fcf0b795e25649 -Size (audioread/v1.0.0.tar.gz) = 12934 bytes +SHA1 (audioread/v1.0.1.tar.gz) = 40a738de9a405439dff1d6b83257fb87e966662f +RMD160 (audioread/v1.0.1.tar.gz) = a6fd5c4c2e5715183a2ce8a3e7af680fe6491585 +Size (audioread/v1.0.1.tar.gz) = 13055 bytes +SHA1 (patch-audioread_gstdec.py) = ca80c0f0c265d44e038c8321e7824325f4e920f7 diff --git a/audio/py-audioread/patches/patch-audioread_gstdec.py b/audio/py-audioread/patches/patch-audioread_gstdec.py new file mode 100644 index 00000000000..d6e626deb04 --- /dev/null +++ b/audio/py-audioread/patches/patch-audioread_gstdec.py @@ -0,0 +1,19 @@ +$NetBSD: patch-audioread_gstdec.py,v 1.1 2014/01/17 14:35:06 wiz Exp $ + +Use print() function for python-3.x compatibility. + +--- audioread/gstdec.py.orig 2013-04-24 17:08:52.000000000 +0000 ++++ audioread/gstdec.py +@@ -366,8 +366,8 @@ if __name__ == '__main__': + for path in sys.argv[1:]: + path = os.path.abspath(os.path.expanduser(path)) + with GstAudioFile(path) as f: +- print f.channels +- print f.samplerate +- print f.duration ++ print(f.channels) ++ print(f.samplerate) ++ print(f.duration) + for s in f: +- print len(s), ord(s[0]) ++ print(len(s), ord(s[0])) |