pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/audio/py-vorbis Import py-vorbis from pkgsrc-wip. Pro...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/4c9841fb4e4b
branches:  trunk
changeset: 468622:4c9841fb4e4b
user:      minskim <minskim%pkgsrc.org@localhost>
date:      Sun Feb 15 15:47:29 2004 +0000

description:
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:

 audio/py-vorbis/DESCR            |   1 +
 audio/py-vorbis/Makefile         |  25 +++++++++++++++++++++++++
 audio/py-vorbis/PLIST            |   2 ++
 audio/py-vorbis/distinfo         |   5 +++++
 audio/py-vorbis/patches/patch-aa |  34 ++++++++++++++++++++++++++++++++++
 5 files changed, 67 insertions(+), 0 deletions(-)

diffs (87 lines):

diff -r 11e0aeed581c -r 4c9841fb4e4b audio/py-vorbis/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/py-vorbis/DESCR     Sun Feb 15 15:47:29 2004 +0000
@@ -0,0 +1,1 @@
+Vorbis bindings for Python; see vorbis for details.
diff -r 11e0aeed581c -r 4c9841fb4e4b audio/py-vorbis/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/py-vorbis/Makefile  Sun Feb 15 15:47:29 2004 +0000
@@ -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@localhost
+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 -r 11e0aeed581c -r 4c9841fb4e4b audio/py-vorbis/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/py-vorbis/PLIST     Sun Feb 15 15:47:29 2004 +0000
@@ -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 -r 11e0aeed581c -r 4c9841fb4e4b audio/py-vorbis/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/py-vorbis/distinfo  Sun Feb 15 15:47:29 2004 +0000
@@ -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 -r 11e0aeed581c -r 4c9841fb4e4b audio/py-vorbis/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/py-vorbis/patches/patch-aa  Sun Feb 15 15:47:29 2004 +0000
@@ -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");



Home | Main Index | Thread Index | Old Index