summaryrefslogtreecommitdiff
path: root/dev-python/pyalsa
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/pyalsa')
-rw-r--r--dev-python/pyalsa/Manifest6
-rw-r--r--dev-python/pyalsa/files/pyalsa-1.0.29-no-build-symlinks.patch24
-rw-r--r--dev-python/pyalsa/metadata.xml12
-rw-r--r--dev-python/pyalsa/pyalsa-1.0.29.ebuild29
4 files changed, 71 insertions, 0 deletions
diff --git a/dev-python/pyalsa/Manifest b/dev-python/pyalsa/Manifest
new file mode 100644
index 000000000000..f35228aadf4f
--- /dev/null
+++ b/dev-python/pyalsa/Manifest
@@ -0,0 +1,6 @@
+AUX pyalsa-1.0.29-no-build-symlinks.patch 775 SHA256 534113bdc34faa82c3bad7a4cbc96d71e6ff4e828bc9004b48b6424cc19ab757 SHA512 647783293e2576e8fe3631bad6082000c315ac4b5312e4e212c7fcadd84082e06964fda66bbeda781f33f75596ef561e18b0652e25beb88d0f883c131b3d2d32 WHIRLPOOL 4bfd897de1d51d12e1dfc8d7e8d191c4f451cc67b1e4cbc1c3fd483e971bb56d8ff673db831a3ac58c4d767998976d81c908efba2b6545fbafce4393aa3ca699
+DIST pyalsa-1.0.29.tar.bz2 39481 SHA256 87ea6d8a2b7a9d7b015cdd84c898dc5e524f770ae6795e0d32ac2234311c953a SHA512 cc885094b020ea6e1735391cfc73a11e29f7d59b1e24a766908d57bec0fae4f490616c59f04eb74648f8ee610e76295a9501ab31a2513e921bcd8b4fdb104683 WHIRLPOOL 492a924d4ce2c22f368df06ea4f213b22c2fef7ac215f0a1c401524e7c510e3d5c5949ea7e8fdb1cbbe5104c6ef51051a7574032e0cb743f20399ef17e79239d
+EBUILD pyalsa-1.0.29.ebuild 732 SHA256 bb6aff388b6f10657f0b07ff359d6dc2dc6ae8d9293aac4d4dc1e2a38bc075bc SHA512 41885c989d98db00b6045a8f9c766e9fa9fd5ae9c02d9eb3051e46f07efbbd04a8091870fd7768a62771b3bed81424af487ecb59236c9d832a51523a4c3337c4 WHIRLPOOL 10746a7dbc86758aa764791cd75dd930ea24ffcb90e531d0002e4389051cbd8179c02ee21a5738d7b8e8037796750ef1fa2a1e641a063420775dc38b24119d04
+MISC ChangeLog 3042 SHA256 f3da6dd8972e4109ca727534db8b9db1fe00dd6705dc05b5b2ea3dc6aa57279b SHA512 0c910ec61557699eb00cbc19f92334b06cf8c808fbd00f2665d12945a1f16638341d7358c80d6eac4cbd501ad5fb222a6842b3bdfbc55e38a989cad81905b049 WHIRLPOOL c59c0770a16b85f926992b137e5b2b896172d8877eb4a686b503fd7528bad643c909ac245c1d6157f01f336d7e7565701a6999353d454611a918decaff1bccc0
+MISC ChangeLog-2015 5825 SHA256 e64c1f63785678005868d8e8f3f2d7b894b081d3f66cb484ffa7cdb88707355f SHA512 d9ef9e2f6f71cbb927209cfb1a4c4e7aab68a724ce086f5c136bcef8ab5cbb2adc8feba2f9c40e3b9eca08f6b6761f3c11f61723c62ac87289c04c28d4fe1d95 WHIRLPOOL a7d6ecc2bb958ec5f50677c21b9916ab50beb324e22d4753afafe17485a842917fd4fc616fe44315dba12c3d7b2d8ed2c977b1b68eda9a2944cac9aeac2713e6
+MISC metadata.xml 349 SHA256 3ec35c25d62d744c4cfa25ca8dba6e4bcb96c860913301cf9dacc877ab4062f6 SHA512 ef94ac2639e61234b2140a6dae1683f99c3c8bf564a37d22e54612340a2d0147037e590ef8f6c639914df05684f3d62ebc96a9e2176cab82ba85e5d87171ec58 WHIRLPOOL 4234da0db2e38a805b4e6c5ed397b7fef415856575ccdd68f28f554685f9072e726f375be4da42afb0537269deff127ad2b32b3097db1aba60ef1f47b2eca25f
diff --git a/dev-python/pyalsa/files/pyalsa-1.0.29-no-build-symlinks.patch b/dev-python/pyalsa/files/pyalsa-1.0.29-no-build-symlinks.patch
new file mode 100644
index 000000000000..72bf0bcb49c5
--- /dev/null
+++ b/dev-python/pyalsa/files/pyalsa-1.0.29-no-build-symlinks.patch
@@ -0,0 +1,24 @@
+diff -ur pyalsa-1.0.29.orig/setup.py pyalsa-1.0.29/setup.py
+--- setup.py 2015-02-26 20:36:18.000000000 +0800
++++ setup.py 2015-03-22 12:53:26.941401236 +0800
+@@ -58,20 +58,3 @@
+ packages=['pyalsa'],
+ scripts=[]
+ )
+-
+-uname = os.uname()
+-a = 'build/lib.%s-%s-%s' % (uname[0].lower(), uname[4], sys.version[:3])
+-for f in ['alsacard.so', 'alsacontrol.so', 'alsahcontrol.so',
+- 'alsamixer.so', 'alsaseq.so']:
+- if not os.path.exists('pyalsa/%s' % f):
+- a = '../build/lib.%s-%s-%s/pyalsa/%s' % \
+- (uname[0].lower(), uname[4], sys.version[:3], f)
+- print a, f
+- p = 'pyalsa/' + f
+- try:
+- st = os.lstat(p)
+- if stat.S_ISLNK(st.st_mode):
+- os.remove(p)
+- except:
+- pass
+- os.symlink(a, 'pyalsa/%s' % f)
diff --git a/dev-python/pyalsa/metadata.xml b/dev-python/pyalsa/metadata.xml
new file mode 100644
index 000000000000..924dc07b5c11
--- /dev/null
+++ b/dev-python/pyalsa/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>alsa-bugs@gentoo.org</email>
+ <name>Gentoo ALSA Project</name>
+</maintainer>
+<maintainer type="project">
+ <email>python@gentoo.org</email>
+ <name>Python</name>
+</maintainer>
+</pkgmetadata>
diff --git a/dev-python/pyalsa/pyalsa-1.0.29.ebuild b/dev-python/pyalsa/pyalsa-1.0.29.ebuild
new file mode 100644
index 000000000000..4ab9d25891ae
--- /dev/null
+++ b/dev-python/pyalsa/pyalsa-1.0.29.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 pypy ) # Still py2 only it appears
+
+inherit distutils-r1 flag-o-matic
+
+DESCRIPTION="Python bindings for ALSA library"
+HOMEPAGE="http://alsa-project.org/"
+SRC_URI="mirror://alsaproject/pyalsa/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc ppc64 sparc x86"
+IUSE=""
+
+RDEPEND="media-libs/alsa-lib"
+DEPEND="${RDEPEND}
+ dev-python/setuptools[${PYTHON_USEDEP}]"
+
+PATCHES=( "${FILESDIR}/${P}-no-build-symlinks.patch" )
+
+python_configure_all() {
+ # note: this needs changing when py3 becomes supported
+ append-flags -fno-strict-aliasing
+}
+# Testsuite appears to require installed state