summaryrefslogtreecommitdiff
path: root/dev-python/pyao
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-python/pyao
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-python/pyao')
-rw-r--r--dev-python/pyao/Manifest6
-rw-r--r--dev-python/pyao/files/pyao-0.82-new_api.patch71
-rw-r--r--dev-python/pyao/metadata.xml8
-rw-r--r--dev-python/pyao/pyao-0.82-r3.ebuild26
4 files changed, 111 insertions, 0 deletions
diff --git a/dev-python/pyao/Manifest b/dev-python/pyao/Manifest
new file mode 100644
index 000000000000..b9dd52404ef5
--- /dev/null
+++ b/dev-python/pyao/Manifest
@@ -0,0 +1,6 @@
+AUX pyao-0.82-new_api.patch 1626 SHA256 06f99b0a677d1575f3bd95e0ff8d195d64b4464f47ff652c0ff83c244b842a37 SHA512 f060f764208c0a7015c86eeee5010df78ac3c8eb1b925cc1c08fdedfccf94ec8ddbf635d8f9052034c1cf6ee73c816904e18c945c2e9afca7ffe78147b57d373 WHIRLPOOL 52455cb6fdec727300447a11b29580893625aa85672224bc193b3e5ca1cb5077b19b3078e4c352a37d5377970eb5c8973243d49db0218b44b9b74101883fead4
+DIST pyao-0.82.tar.gz 15399 SHA256 9a444518252f6d747e76a219e5efbc05b4e1742260a7419da9ddf93a519b30c5 SHA512 9c2349a2cfd55f64b8edaa6aaf9cecd4589dab3c6fd8a5cc8ad8c9512bf3595c85e0efaa56d6bb2f89410fbfa82081c8c2ea5ea68071e64afdbd8809f70b36cf WHIRLPOOL 16918ba2a683af4d1df860ff31c6f2a6a86d0fe1ef297ef09269219e3af860e22a8945ca5682f9063e9d4ff7a2a4ab3ed794eb355eb459c73b0290f145ebda8a
+EBUILD pyao-0.82-r3.ebuild 589 SHA256 7d7c6574a8e9e7c8d4cfb50c58dcd29fe4bc649e63197e2b488bac785fc4bb6f SHA512 329b4ab8a1b849cfbf2a54245f7e6ed5cd8e08736bfb0cb8d764872d201399a7b223f09903c73bd37148166885f55a0f88fea1182aca3fce1f5d13c0c5b565ed WHIRLPOOL 6dbed1896c2ee1cba0a5b95e6053badb0876563003f45ff0d765d942084d8027711af7fd8d3686cc381db823662e6672d0f046b31a1a748a36242fdcac4536b1
+MISC ChangeLog 2987 SHA256 ee849ee5fa57344cb630e9f17e8dd8303c5707add16312ed81255a0f8bec1b56 SHA512 59ae2b2c847dba83df9f702de5461ec1e6c3941b23ca1b081b667a229697677d6e6a03d5ec5f264cf0494e8fca747ad5cb051c1cdc5b7e2f55b192c40b12628e WHIRLPOOL b1e1cd541db944272465954f14b71af647a3914e4bcba6ab15832ed399381d525619ea9710fadee800b23de69a1eaef5fdf1c78488423550ad4bccb84f7e2c2e
+MISC ChangeLog-2015 2557 SHA256 2651bf634016c48325b4725279ca3206dc86d21a5794595725cbeed1d6ec0182 SHA512 0d2d0a62b6d3e87b1a76a3456b1f3c25b41d17d80ee9cf7d99ccf1bba18d94060f499b5517a0e3ab5d45f5bdbabb840c743236859fd77671f379992650542f74 WHIRLPOOL 88224c343394b8cf5585f149ee0affefdeec9c1149908acf46df54bed4d7eaa02e9e6e173f5386384a3e70d0869266f30bebad214ef5e2f9b1c5d5cc47180b5f
+MISC metadata.xml 236 SHA256 4709fa7f17a11d5eae6dd884b488d3c6eb8f85e9b63fe3684b4f234d3b9b14a9 SHA512 0f2c2a0401b53543eac90eafdd4d11c5913be07f47b968e2892ca92c265adbd9564f02a491ff2607d7031194ba3e50c7720851537341b1541120821c487147a3 WHIRLPOOL d73790bb41c2cefb5e2f7b163fc95a79b9674d9808ca34cef58fbc8c5a765023a0be285508a2e7f5f70eadc5725cf8d63553d599e4b367f52fac3374de347abb
diff --git a/dev-python/pyao/files/pyao-0.82-new_api.patch b/dev-python/pyao/files/pyao-0.82-new_api.patch
new file mode 100644
index 000000000000..7a77d0ab8a2e
--- /dev/null
+++ b/dev-python/pyao/files/pyao-0.82-new_api.patch
@@ -0,0 +1,71 @@
+http://bugs.gentoo.org/314627
+http://bugs.gentoo.org/257550
+
+--- src/aomodule.c
++++ src/aomodule.c
+@@ -4,7 +4,7 @@
+ static ao_option *
+ dict_to_options(PyObject *dict)
+ {
+- int pos = 0;
++ Py_ssize_t pos = 0;
+ PyObject *key, *val;
+ ao_option *head = NULL;
+ int ret;
+@@ -71,7 +71,7 @@
+
+ *overwrite = 0;
+
+- if(PyArg_ParseTupleAndKeywords(args, kwargs, "s|llllO!sl",
++ if(PyArg_ParseTupleAndKeywords(args, kwargs, "s|iiiiO!si",
+ (char **) driver_name_kwlist,
+ &driver_name,
+ &format->bits,
+@@ -84,7 +84,7 @@
+ *driver_id = ao_driver_id(driver_name);
+ } else {
+ PyErr_Clear();
+- if(!(PyArg_ParseTupleAndKeywords(args, kwargs, "i|llllO!sl",
++ if(!(PyArg_ParseTupleAndKeywords(args, kwargs, "i|iiiiO!si",
+ (char **) driver_id_kwlist,
+ driver_id,
+ &format->bits,
+@@ -141,8 +141,9 @@
+ return NULL;
+ }
+
+- retobj = (ao_Object *) PyObject_NEW(ao_Object, &ao_Type);
++ retobj = (ao_Object *) PyObject_New(ao_Object, &ao_Type);
+ retobj->dev = dev;
++ retobj->driver_id = driver_id;
+ return (PyObject *) retobj;
+ }
+
+@@ -150,7 +151,7 @@
+ py_ao_dealloc(ao_Object *self)
+ {
+ ao_close(self->dev);
+- PyMem_DEL(self);
++ PyObject_Del(self);
+ }
+
+ static PyObject *
+@@ -184,7 +185,7 @@
+
+ /* It's a method */
+ ao_Object *ao_self = (ao_Object *) self;
+- info = ao_driver_info(ao_self->dev->driver_id);
++ info = ao_driver_info(ao_self->driver_id);
+
+ } else {
+
+--- src/aomodule.h
++++ src/aomodule.h
+@@ -9,6 +9,7 @@
+ typedef struct {
+ PyObject_HEAD
+ ao_device *dev;
++ uint32_t driver_id;
+ } ao_Object;
+
+ static PyObject *Py_aoError;
diff --git a/dev-python/pyao/metadata.xml b/dev-python/pyao/metadata.xml
new file mode 100644
index 000000000000..9e5274c5b4ae
--- /dev/null
+++ b/dev-python/pyao/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>python@gentoo.org</email>
+ <name>Python</name>
+</maintainer>
+</pkgmetadata>
diff --git a/dev-python/pyao/pyao-0.82-r3.ebuild b/dev-python/pyao/pyao-0.82-r3.ebuild
new file mode 100644
index 000000000000..85282e85eb17
--- /dev/null
+++ b/dev-python/pyao/pyao-0.82-r3.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1
+
+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=">=media-libs/libao-1.0.0"
+RDEPEND="${DEPEND}"
+
+PATCHES=( "${FILESDIR}"/${P}-new_api.patch )
+
+python_compile() {
+ "${PYTHON}" config_unix.py || die
+ distutils-r1_python_compile
+}