summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Lauer <patrick@gentoo.org>2009-04-23 13:05:04 +0000
committerPatrick Lauer <patrick@gentoo.org>2009-04-23 13:05:04 +0000
commit9945179a3a09b935225b1327f26e8b3200124212 (patch)
tree4824082bcb75a4c07887bbeeb361f858da3c181d /dev-python/pyao
parentVersion bump, change qa&inquisitio dependency from pcre++ to libpcre[cxx] for... (diff)
downloadgentoo-2-9945179a3a09b935225b1327f26e8b3200124212.tar.gz
gentoo-2-9945179a3a09b935225b1327f26e8b3200124212.tar.bz2
gentoo-2-9945179a3a09b935225b1327f26e8b3200124212.zip
Small fix for >=python-2.5. Thanks to gilhad for the patch. Fixes #257550
(Portage version: 2.2_rc31/cvs/Linux x86_64)
Diffstat (limited to 'dev-python/pyao')
-rw-r--r--dev-python/pyao/ChangeLog10
-rw-r--r--dev-python/pyao/files/pyao-fix-deallocation.patch12
-rw-r--r--dev-python/pyao/pyao-0.82-r1.ebuild34
3 files changed, 54 insertions, 2 deletions
diff --git a/dev-python/pyao/ChangeLog b/dev-python/pyao/ChangeLog
index 5eecb0bb6015..0921efc2ce7a 100644
--- a/dev-python/pyao/ChangeLog
+++ b/dev-python/pyao/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-python/pyao
-# Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/pyao/ChangeLog,v 1.13 2007/02/22 00:34:01 peper Exp $
+# Copyright 2000-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pyao/ChangeLog,v 1.14 2009/04/23 13:05:04 patrick Exp $
+
+*pyao-0.82-r1 (23 Apr 2009)
+
+ 23 Apr 2009; Patrick Lauer <patrick@gentoo.org>
+ +files/pyao-fix-deallocation.patch, +pyao-0.82-r1.ebuild:
+ Small fix for >=python-2.5. Thanks to gilhad for the patch. Fixes #257550
22 Feb 2007; Piotr Jaroszyński <peper@gentoo.org> ChangeLog:
Transition to Manifest2.
diff --git a/dev-python/pyao/files/pyao-fix-deallocation.patch b/dev-python/pyao/files/pyao-fix-deallocation.patch
new file mode 100644
index 000000000000..ae422272da82
--- /dev/null
+++ b/dev-python/pyao/files/pyao-fix-deallocation.patch
@@ -0,0 +1,12 @@
+diff -ru pyao-0.82/src/aomodule.c pyao-0.82.ok/src/aomodule.c
+--- pyao-0.82/src/aomodule.c 2003-07-24 08:52:59.000000000 +0200
++++ pyao-0.82.ok/src/aomodule.c 2009-02-04 03:22:17.000000000 +0100
+@@ -150,7 +150,7 @@
+ py_ao_dealloc(ao_Object *self)
+ {
+ ao_close(self->dev);
+- PyMem_DEL(self);
++ PyObject_FREE(self);
+ }
+
+ static PyObject *
diff --git a/dev-python/pyao/pyao-0.82-r1.ebuild b/dev-python/pyao/pyao-0.82-r1.ebuild
new file mode 100644
index 000000000000..5a3ef0beee97
--- /dev/null
+++ b/dev-python/pyao/pyao-0.82-r1.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pyao/pyao-0.82-r1.ebuild,v 1.1 2009/04/23 13:05:04 patrick Exp $
+
+inherit eutils distutils
+
+DESCRIPTION="Python bindings for the libao library"
+HOMEPAGE="http://www.andrewchatham.com/pyogg/"
+SRC_URI="http://www.andrewchatham.com/pyogg/download/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ia64 ~ppc -sparc ~x86"
+IUSE=""
+
+DEPEND="virtual/python
+ >=media-libs/libao-0.8.3"
+RDEPEND="${DEPEND}"
+
+src_unpack() {
+ unpack ${A}
+ epatch "${FILESDIR}/pyao-fix-deallocation.patch" || die
+}
+
+src_compile() {
+ ./config_unix.py || die
+ distutils_src_compile
+}
+
+src_install() {
+ distutils_src_install
+ insinto /usr/share/doc/${PF}/examples
+ doins test.py
+}