diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-python/pyao | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-python/pyao')
-rw-r--r-- | dev-python/pyao/Manifest | 4 | ||||
-rw-r--r-- | dev-python/pyao/files/pyao-0.82-new_api.patch | 71 | ||||
-rw-r--r-- | dev-python/pyao/metadata.xml | 8 | ||||
-rw-r--r-- | dev-python/pyao/pyao-0.82-r3.ebuild | 26 |
4 files changed, 109 insertions, 0 deletions
diff --git a/dev-python/pyao/Manifest b/dev-python/pyao/Manifest new file mode 100644 index 000000000000..213045646bdb --- /dev/null +++ b/dev-python/pyao/Manifest @@ -0,0 +1,4 @@ +AUX pyao-0.82-new_api.patch 1626 BLAKE2B c2d4718b9d39fc0710d511c730d07bb2ec7e721fc6c0e3e47105cdd6dd838818823b2e208c20a72cd119f07ed2202ea68f6182ada29a360284b4aa62767ecaa8 SHA512 f060f764208c0a7015c86eeee5010df78ac3c8eb1b925cc1c08fdedfccf94ec8ddbf635d8f9052034c1cf6ee73c816904e18c945c2e9afca7ffe78147b57d373 +DIST pyao-0.82.tar.gz 15399 BLAKE2B 40f136984831e3f081d2a2274054bf4f5a2387127709065ae4c5c6047610b13c62583851fd2e39ceb746e2d722a1b9069bea7bc6e1670a13f8731ce784f43a53 SHA512 9c2349a2cfd55f64b8edaa6aaf9cecd4589dab3c6fd8a5cc8ad8c9512bf3595c85e0efaa56d6bb2f89410fbfa82081c8c2ea5ea68071e64afdbd8809f70b36cf +EBUILD pyao-0.82-r3.ebuild 589 BLAKE2B cbc4e4fe7bcd1a475ef1b74f40119447120ec33df18f78628bd51cf0c13e2d28c7e54a7de653111b88922b2c4ff727d483406a7db2f7e3577f982def70e40588 SHA512 329b4ab8a1b849cfbf2a54245f7e6ed5cd8e08736bfb0cb8d764872d201399a7b223f09903c73bd37148166885f55a0f88fea1182aca3fce1f5d13c0c5b565ed +MISC metadata.xml 236 BLAKE2B 167eb58da19caba0e03167e2f209e118ce8a468851bca2790a0353112848fffcd72522497e5f951bf5c6eafa9691fa2a1ad980843cb4170a8194f3b8178ebe16 SHA512 0f2c2a0401b53543eac90eafdd4d11c5913be07f47b968e2892ca92c265adbd9564f02a491ff2607d7031194ba3e50c7720851537341b1541120821c487147a3 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 +} |