[gentoo-commits] repo/gentoo:master commit in: dev-python/pyalsa/files/

2020-05-14 Thread Aaron Bauman
commit: ef50828f0f21b77bfaf34719ae430ff3515f1602
Author: Michael Mair-Keimberger  gmail  com>
AuthorDate: Mon Mar 30 16:22:34 2020 +
Commit: Aaron Bauman  gentoo  org>
CommitDate: Thu May 14 22:19:29 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ef50828f

dev-python/pyalsa: remove unused patch

Package-Manager: Portage-2.3.96, Repoman-2.3.22
Signed-off-by: Michael Mair-Keimberger  gmail.com>
Signed-off-by: Aaron Bauman  gentoo.org>

 .../files/pyalsa-1.0.29-no-build-symlinks.patch| 24 --
 1 file changed, 24 deletions(-)

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
deleted file mode 100644
index 72bf0bcb49c..000
--- a/dev-python/pyalsa/files/pyalsa-1.0.29-no-build-symlinks.patch
+++ /dev/null
@@ -1,24 +0,0 @@
-diff -ur pyalsa-1.0.29.orig/setup.py pyalsa-1.0.29/setup.py
 setup.py   2015-02-26 20:36:18.0 +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)



[gentoo-commits] repo/gentoo:master commit in: dev-python/pyalsa/files/, dev-python/pyalsa/

2018-04-04 Thread Lars Wendler
commit: 3ab12576789c056542667339518f2846f839094c
Author: Lars Wendler  gentoo  org>
AuthorDate: Wed Apr  4 08:45:27 2018 +
Commit: Lars Wendler  gentoo  org>
CommitDate: Wed Apr  4 08:46:05 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3ab12576

dev-python/pyalsa: Bump to version 1.1.6

Package-Manager: Portage-2.3.28, Repoman-2.3.9

 dev-python/pyalsa/Manifest |  1 +
 .../files/pyalsa-1.1.6-no-build-symlinks.patch | 27 ++
 dev-python/pyalsa/pyalsa-1.1.6.ebuild  | 25 
 3 files changed, 53 insertions(+)

diff --git a/dev-python/pyalsa/Manifest b/dev-python/pyalsa/Manifest
index 1f3d56b8f4c..6fc8736733f 100644
--- a/dev-python/pyalsa/Manifest
+++ b/dev-python/pyalsa/Manifest
@@ -1 +1,2 @@
 DIST pyalsa-1.0.29.tar.bz2 39481 BLAKE2B 
12644bad27c06ce4782ef3396e883bf1aab521a39d813f11d25f910c99d899b14b618f21568bdc1422a3ed448e7421c8b8129dc19c8fcd0f9c0b595f9fbae370
 SHA512 
cc885094b020ea6e1735391cfc73a11e29f7d59b1e24a766908d57bec0fae4f490616c59f04eb74648f8ee610e76295a9501ab31a2513e921bcd8b4fdb104683
+DIST pyalsa-1.1.6.tar.bz2 39797 BLAKE2B 
3a23dde67ec807d09b2e9ef0f893b8ec2f5902b0fa88f0f02f8127b7a5a8bdf3fa09397dd01ae1cafbce6b9c733a0eca65fda3cd6fd18e533dd4fbace284caa3
 SHA512 
6c6aee1ad32c2208ab3f91defee5651cca8bb414479ff80e8a1bd6791ec1df2218a61dd8e7c01f95bd5d51807776034ff96cca2b935e9e4e23d13b6c3c40a0dd

diff --git a/dev-python/pyalsa/files/pyalsa-1.1.6-no-build-symlinks.patch 
b/dev-python/pyalsa/files/pyalsa-1.1.6-no-build-symlinks.patch
new file mode 100644
index 000..7f8cf6815d0
--- /dev/null
+++ b/dev-python/pyalsa/files/pyalsa-1.1.6-no-build-symlinks.patch
@@ -0,0 +1,27 @@
+--- pyalsa-1.1.6/setup.py
 pyalsa-1.1.6/setup.py
+@@ -70,24 +70,3 @@
+   'alsamixer',
+   'alsaseq'
+ ]
+-
+-uname = os.uname()
+-dir = 'build/lib.%s-%s-%s/pyalsa' % (uname[0].lower(), uname[4], 
sys.version[:3])
+-files = os.path.exists(dir) and os.listdir(dir) or []
+-for f in SOFILES:
+-  path = ''
+-  for f2 in files:
+-if f2.startswith(f + '.') and f2.endswith('.so'):
+-  path = dir + '/' + f2
+-  break
+-  if not path or not os.path.exists(path):
+-continue
+-  p = 'pyalsa/%s.so' % f
+-  print("%s -> %s" % (p, path))
+-  try:
+-st = os.lstat(p)
+-if stat.S_ISLNK(st.st_mode):
+-  os.remove(p)
+-  except:
+-pass
+-  os.symlink('../' + path, 'pyalsa/%s.so' % f)

diff --git a/dev-python/pyalsa/pyalsa-1.1.6.ebuild 
b/dev-python/pyalsa/pyalsa-1.1.6.ebuild
new file mode 100644
index 000..9f25f2ab8f5
--- /dev/null
+++ b/dev-python/pyalsa/pyalsa-1.1.6.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python{2_7,3_{4,5,6}} pypy )
+
+inherit distutils-r1 flag-o-matic
+
+DESCRIPTION="Python bindings for ALSA library"
+HOMEPAGE="https://alsa-project.org/;
+SRC_URI="mirror://alsaproject/pyalsa/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~mips ~ppc ~ppc64 ~sparc ~x86"
+IUSE=""
+
+RDEPEND="media-libs/alsa-lib"
+DEPEND="${RDEPEND}
+   dev-python/setuptools[${PYTHON_USEDEP}]"
+
+PATCHES=( "${FILESDIR}/${PN}-1.1.6-no-build-symlinks.patch" )
+
+# Testsuite appears to require installed state



[gentoo-commits] repo/gentoo:master commit in: dev-python/pyalsa/files/

2017-08-29 Thread Patrice Clement
commit: c70ff8fd32ac37ee73a55aa523a837eb95c807e6
Author: Michael Mair-Keimberger (asterix)  gmail 
 com>
AuthorDate: Wed Aug 16 08:47:18 2017 +
Commit: Patrice Clement  gentoo  org>
CommitDate: Tue Aug 29 20:18:14 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c70ff8fd

dev-python/pyalsa: remove unused patch.

 .../files/pyalsa-1.0.25-no-build-symlinks.patch| 25 --
 1 file changed, 25 deletions(-)

diff --git a/dev-python/pyalsa/files/pyalsa-1.0.25-no-build-symlinks.patch 
b/dev-python/pyalsa/files/pyalsa-1.0.25-no-build-symlinks.patch
deleted file mode 100644
index 2b02c8afe77..000
--- a/dev-python/pyalsa/files/pyalsa-1.0.25-no-build-symlinks.patch
+++ /dev/null
@@ -1,25 +0,0 @@
-The build system creates some symlinks that are useful when developing
-but get in the way when we install for more than one python. Remove
-these.
-
-Not a patch for upstream, as it makes development slightly more
-complicated.
-
-Patch by Arfrever.
-
 setup.py
-+++ setup.py
-@@ -57,12 +57,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
--os.symlink(a, 'pyalsa/%s' % f)
-