diff options
author | minskim <minskim@pkgsrc.org> | 2004-02-15 15:47:29 +0000 |
---|---|---|
committer | minskim <minskim@pkgsrc.org> | 2004-02-15 15:47:29 +0000 |
commit | a417d41ce39fd6f337eecaf1f0c7684b933ba21f (patch) | |
tree | 8de6f110baccc09a0f67659f40d9155bcdf2568b /audio/py-vorbis | |
parent | cffe5240a096d09b3563478f3c9281c29674fe94 (diff) | |
download | pkgsrc-a417d41ce39fd6f337eecaf1f0c7684b933ba21f.tar.gz |
Import py-vorbis from pkgsrc-wip. Provided by Michal Pasternak, and
slightly modified by me.
This package is Vorbis bindings for Python; see vorbis for details.
Diffstat (limited to 'audio/py-vorbis')
-rw-r--r-- | audio/py-vorbis/DESCR | 1 | ||||
-rw-r--r-- | audio/py-vorbis/Makefile | 25 | ||||
-rw-r--r-- | audio/py-vorbis/PLIST | 2 | ||||
-rw-r--r-- | audio/py-vorbis/distinfo | 5 | ||||
-rw-r--r-- | audio/py-vorbis/patches/patch-aa | 34 |
5 files changed, 67 insertions, 0 deletions
diff --git a/audio/py-vorbis/DESCR b/audio/py-vorbis/DESCR new file mode 100644 index 00000000000..5fea2332439 --- /dev/null +++ b/audio/py-vorbis/DESCR @@ -0,0 +1 @@ +Vorbis bindings for Python; see vorbis for details. diff --git a/audio/py-vorbis/Makefile b/audio/py-vorbis/Makefile new file mode 100644 index 00000000000..cb5a474e9e5 --- /dev/null +++ b/audio/py-vorbis/Makefile @@ -0,0 +1,25 @@ +# $NetBSD: Makefile,v 1.1.1.1 2004/02/15 15:47:29 minskim Exp $ +# + +DISTNAME= pyvorbis-1.3 +PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/py//} +CATEGORIES= audio +MASTER_SITES= http://vorbis.com/files/1.0.1/unix/py/ + +MAINTAINER= dotz@irc.pl +HOMEPAGE= http://vorbis.com/ +COMMENT= Python bindings for Vorbis library + +USE_BUILDLINK3= yes +PY_PATCHPLIST= yes +PYDISTUTILSPKG= yes + +HAS_CONFIGURE= yes +CONFIGURE_SCRIPT= ${PYTHONBIN} config_unix.py +CONFIGURE_ARGS+= --prefix ${PREFIX} + +.include "../../audio/py-ogg/buildlink3.mk" +.include "../../audio/libogg/buildlink3.mk" +.include "../../audio/libvorbis/buildlink3.mk" +.include "../../lang/python/extension.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/audio/py-vorbis/PLIST b/audio/py-vorbis/PLIST new file mode 100644 index 00000000000..a3fca10af14 --- /dev/null +++ b/audio/py-vorbis/PLIST @@ -0,0 +1,2 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2004/02/15 15:47:29 minskim Exp $ +${PYSITELIB}/ogg/vorbis.so diff --git a/audio/py-vorbis/distinfo b/audio/py-vorbis/distinfo new file mode 100644 index 00000000000..6a2d46c4ae9 --- /dev/null +++ b/audio/py-vorbis/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1.1.1 2004/02/15 15:47:29 minskim Exp $ + +SHA1 (pyvorbis-1.3.tar.gz) = 589bbb35a43532d59311fdfef3d5f32255432367 +Size (pyvorbis-1.3.tar.gz) = 38075 bytes +SHA1 (patch-aa) = d698a2e6000882d8ec512b8549f1e35f88f10127 diff --git a/audio/py-vorbis/patches/patch-aa b/audio/py-vorbis/patches/patch-aa new file mode 100644 index 00000000000..b6ac518b977 --- /dev/null +++ b/audio/py-vorbis/patches/patch-aa @@ -0,0 +1,34 @@ +$NetBSD: patch-aa,v 1.1.1.1 2004/02/15 15:47:29 minskim Exp $ + +--- src/pyvorbisfile.c.foo Tue Sep 9 05:40:48 2003 ++++ src/pyvorbisfile.c Sat Nov 22 15:03:35 2003 +@@ -178,10 +178,12 @@ + static void + py_ov_file_dealloc(PyObject *self) + { ++ py_vorbisfile *py_self; ++ + if (PY_VORBISFILE(self)) + ov_clear(PY_VORBISFILE(self)); + +- py_vorbisfile *py_self = (py_vorbisfile *) self; ++ py_self = (py_vorbisfile *) self; + if (py_self->py_file) { + /* If file was opened from a file object, decref it, so it can + close */ +@@ -221,6 +223,7 @@ + PyErr_Clear(); /* clear first failure */ + if (PyArg_ParseTuple(args, "O!|sl", &PyFile_Type, &fobject, + &initial, &ibytes)) { ++ int orig_fd, new_fd; + + fname = NULL; + file = PyFile_AsFile(fobject); +@@ -234,7 +237,6 @@ + Really, you shouldn't be passing in files anymore, but in the + interest of backwards compatibility it'll stay. + */ +- int orig_fd, new_fd; + orig_fd = fileno(file); + new_fd = dup(orig_fd); + file = fdopen(new_fd, "r"); |