summaryrefslogtreecommitdiff
path: root/media-libs/libffado
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2019-02-16 12:59:29 +0000
committerV3n3RiX <venerix@redcorelinux.org>2019-02-16 12:59:29 +0000
commit79599515788b85b18aa655e7b7f8cc05c1bbddd8 (patch)
treeade7cb031f363fad64c77139dea7aa3d81908537 /media-libs/libffado
parent6bc2e4d7c5906e46a8f275a876ead6ec41aca5bb (diff)
gentoo resync : 16.02.1018
Diffstat (limited to 'media-libs/libffado')
-rw-r--r--media-libs/libffado/Manifest9
-rw-r--r--media-libs/libffado/files/libffado-2.4.0-additional-py3-fixes.patch96
-rw-r--r--media-libs/libffado/files/libffado-2.4.0-crossbar-router-fix.patch11
-rw-r--r--media-libs/libffado/files/libffado-2.4.0-py3-pyqt5-fixes.patch197
-rw-r--r--media-libs/libffado/files/libffado-2.4.0-pyqt5-dbus-detection.patch30
-rw-r--r--media-libs/libffado/files/libffado-2.4.0-rme-bigendian-fix.patch50
-rw-r--r--media-libs/libffado/libffado-2.4.0.ebuild119
-rw-r--r--media-libs/libffado/libffado-2.4.1.ebuild4
8 files changed, 3 insertions, 513 deletions
diff --git a/media-libs/libffado/Manifest b/media-libs/libffado/Manifest
index 3f665ac5585e..047289d1a965 100644
--- a/media-libs/libffado/Manifest
+++ b/media-libs/libffado/Manifest
@@ -1,11 +1,4 @@
-AUX libffado-2.4.0-additional-py3-fixes.patch 3657 BLAKE2B 8bb214f90fac168c682119d8758efd67812da784770684e7ff47c1d64146da79346d61dfe5b17c0d5e23700f04605d073147a1dd335f0a1da72faf68418a5cd7 SHA512 feb6cd85ee487182b56f003ddee1fc7a1aa3aa07d6d1f3ccbd2ab3735e5d756e836062789a71248d6a16f7377d9d76645c0a17ab76a8d9178b1154cd67783be8
-AUX libffado-2.4.0-crossbar-router-fix.patch 496 BLAKE2B 7a2b88344c319eb5c1da7a4430600843e57eccc6b96d833b7dfc17ca8f63fb22ff50d959ad06c4c8d06036a96412064ce5630f4a26b53fa0b5eb2e392d8ada66 SHA512 5f31f7db57cf54c05dc00bb00f5f0a5e1771dfd2cd716d9bc56788c24313d14d26fb0ffc7865acb5b55504592929a6b271f657e25971eee37c4aa0a7cc03c382
-AUX libffado-2.4.0-py3-pyqt5-fixes.patch 9119 BLAKE2B e1b4ead17535e573bfced949652fec2418b0236b4ab3146f45f6931b0d80f5c1af86f17247e931baf07d9efd3c3726e0d9a0cc42783fd9053464073bdc233577 SHA512 26f34e318040e3fb9066424538d4ad7dd41e49e93c5f89161cd460bce862d3e2a25e0a2ffb6c28beb1f91fdd00a146f7d33930242e52e5148a7d1a0fb0e1ff28
-AUX libffado-2.4.0-pyqt5-dbus-detection.patch 1503 BLAKE2B 448eb997454a72f9d55722462dbe696d293b271002acf205c73e5fb59690ab7ae622830e09ab05def50d73d3fa1bc62076ead695a7d79335b75a00d3a4f1ce73 SHA512 29a44a73786256e8aec380e4e68df9f6de3ceb1d7bf1d4f1565585418ab4167ac2d16b85958cc1acfa60906b384445bd82866d05d3c3f3bdc517ae424d83e559
-AUX libffado-2.4.0-rme-bigendian-fix.patch 1618 BLAKE2B db8969797d9f8bdf4aac9a1e8474ad7d84428ede18788746b885ed037dcc71798a348bc86335dd72083a3937ad00170f6bbe412666f3109395642186b0fb4e2c SHA512 0ecb20c21858df87f53c0033109a4b736e1a38dc8a2b0ed00660cd3b80f74ce7b4cb87438ac5a37e11f0d4650166b3519e163f442d27a7822a24f4485626d776
AUX libffado-2.4.1-python3-scons-fix.patch 982 BLAKE2B e9e6e5c8e9582db5e936d355abf8b7292c5a03d799dd3c36d567604a1f959b1b509856ee9ac1e7693a1147907ce7105841010c317d8d2981f35c1c125f4cb5a6 SHA512 5e3de46d1e9ff5d0ee0b555218d1d59deb81e87ccf3f4179c6c25fac0888abf27b96e6cd82a8815b58040b3ab949a5cf2128c709c91ea125c3194e19956817e1
-DIST libffado-2.4.0.tgz 1228916 BLAKE2B 21a3a2a96377f698e7c1a43912c761624aabe5401f0e147fee4fa203c4534166494de8867320b4b6bc3ff200b65c77bb62ab2c4e98948ed0ee74e6171d162deb SHA512 7df37584925cc908cc284dba344609928d39e006f71ae4ede62e4531b2628271ebd0db00407418e943fb569b5b8b919a76c90aaeed03005cefbd3c1c16ee1627
DIST libffado-2.4.1.tgz 1229295 BLAKE2B 3b42493b68fc8648e116784e04baee2278c21e01fa92b22d990340ef329f67c898e247891e76d494410a758009fcf186ba556e900598eaca539a9879664cc704 SHA512 0859f17b87c68108bbde726d1cf8ab0b99f6f7f02cbe36acd8b451e112688a4d1edc21134eb4a2edc8c92dcf5f5da52efeabb2ad0dc07804ed1aa664a3b38d74
-EBUILD libffado-2.4.0.ebuild 3194 BLAKE2B 57fc39ce908391aa991a5dc87d90cc9d709320c65c32eec065fb236a8cc3b5cf6b713b3e97bba0d4de1f96bf9dffb7922b8b8b33d6c31fe3608cba9a00a0b82f SHA512 54574ea4a2baa8a18d4dff29972c96cf94401af1e76afb52271358a0d353e51e4aa589bf590534eaf289998c72e3ee36983a55b77cb3b9969fe480a570c290f3
-EBUILD libffado-2.4.1.ebuild 2805 BLAKE2B 8e7742c0eb46f970945cd9c95f6407a844ce5b59c6b61e28997eda0e1600ae95a34e248b60a87ffc5204d6ea95a5274c1c817daa9788c12a67512382b83475ca SHA512 008724139623e65f92d75cc6731ed1d38c1fb78c8e55dd84e96cea9c26096d4c37baa9d8241857745bc178ec63020a51c81975b4dabfe9fcd56436404887314a
+EBUILD libffado-2.4.1.ebuild 2807 BLAKE2B 9e7a07ea267bbb3dc1d7e894b49696752b727c343bb30061f09e502ccfc7c17f02cde8b0085efd5f832ded7a594299f8a44b2b36ca214626b17cf5d19b51a9eb SHA512 321ed77cd069d7d415054614b491c5d10ee26d153f801ac67ed8d4bb5b42f96c51d0f0ae3ee20e6b3897c10bf9f4439486cfc41b75aacec75182a2d1f1dac144
MISC metadata.xml 566 BLAKE2B 66bf590980ba18079dfc4127aad3de692e4544f93518fec98e8c337c129df35fac11ff1c8b2c5c3b606855da6020f7abf311b14a4b8b607b08ed1662ae5adc3a SHA512 f1d19db6ac852100cae4d73b8608a892bae5d4907b35601c4c751a35555111de450edf1f0373c2f81cd68e947c76e9c36c7e2b76a8c9d3aa64345fa9b9227b34
diff --git a/media-libs/libffado/files/libffado-2.4.0-additional-py3-fixes.patch b/media-libs/libffado/files/libffado-2.4.0-additional-py3-fixes.patch
deleted file mode 100644
index fd5d2f44babd..000000000000
--- a/media-libs/libffado/files/libffado-2.4.0-additional-py3-fixes.patch
+++ /dev/null
@@ -1,96 +0,0 @@
---- a/support/mixer-qt4/ffado/panelmanager.py 2018-01-11 12:27:20.518923209 +0900
-+++ a/support/mixer-qt4/ffado/panelmanager.py 2018-01-11 12:31:03.956299962 +0900
-@@ -38,6 +38,7 @@
-
- import sys
- import time
-+import importlib
-
- import logging
- log = logging.getLogger('panelmanager')
-@@ -302,20 +303,15 @@
- #
- # Specific (or dummy) mixer widgets get loaded in the following
- #
-+ found = False
- if 'mixer' in dev and dev['mixer'] != None:
- mixerapp = dev['mixer']
-- global mixerwidget
-- exec( """
--try:
-- import ffado.mixer.%s
-- globals()["mixerwidget"] = ffado.mixer.%s.%s( w )
-- found = True
--except ImportError:
-- log.debug("bypassdbus set, %s module not available: ignored")
-- found = False
--""" % (mixerapp.lower(), mixerapp.lower(), mixerapp, mixerapp.lower()) )
-- else:
-- found = False
-+ try:
-+ mixer_module = importlib.import_module("ffado.mixer.%s" % mixerapp.lower())
-+ mixerwidget = getattr(mixer_module, mixerapp)(w)
-+ found = True
-+ except ImportError:
-+ log.debug("bypassdbus set, %s module not available: ignored" % mixerapp.lower())
-
- if not found:
- mixerwidget = Dummy( w )
---- a/support/mixer-qt4/ffado/widgets/crossbarrouter.py 2018-01-11 12:34:10.200777889 +0900
-+++ b/support/mixer-qt4/ffado/widgets/crossbarrouter.py 2018-01-11 12:45:13.278911705 +0900
-@@ -194,7 +194,7 @@
- #log.debug("Got %i peaks" % len(peakvalues))
- for peak in peakvalues:
- #log.debug("peak = [%s,%s]" % (str(peak[0]),str(peak[1])))
-- if peak[0] >= 0:
-+ if peak[1] >= 0:
- self.switchers[peak[0]].peakValue(peak[1])
-
- def updateMixerRouting(self):
---- a/support/mixer-qt4/ffado/widgets/matrixmixer.py 2018-01-11 12:54:27.545361864 +0900
-+++ b/support/mixer-qt4/ffado/widgets/matrixmixer.py 2018-01-11 12:56:36.899124318 +0900
-@@ -512,7 +512,7 @@
- self.rowHeaders[j].lbl.setText(row_name)
-
- def updateValues(self, n):
-- nbitems = len(n)/3
-+ nbitems = len(n) // 3
- for i in range(nbitems):
- n_0 = n[3*i]
- n_1 = n[3*i+1]
-@@ -951,7 +951,7 @@
- return self.interface.setValue(In, Out, val)
-
- def updateValues(self, n):
-- nbitems = len(n)/3
-+ nbitems = len(n) // 3
- for j in range(nbitems):
- n_0 = n[3*j]
- n_1 = n[3*j+1]
-@@ -1406,7 +1406,7 @@
- def matrixControlChanged(self, n):
- # Update value needed for "per Out" view
- #log.debug("Update per Output( %s )" % str(n))
-- nbitems = len(n)/3
-+ nbitems = len(n) // 3
- if (self.rule == "Columns_are_inputs"):
- n_t = n
- else:
-@@ -1420,7 +1420,7 @@
- def sliderControlChanged(self, n):
- # Update value needed for matrix view
- #log.debug("Update Matrix( %s )" % str(n))
-- nbitems = len(n)/3
-+ nbitems = len(n) // 3
- if (((self.rule == "Columns_are_inputs") and not self.transpose) or ((self.rule != "Columns_are_inputs") and self.transpose)):
- n_t = ()
- for i in range(nbitems):
-@@ -1512,7 +1512,7 @@
- log.debug("Number of stereo output channels must be specified")
- return False
- n = int(readMixerString[idx+2])
-- if n > self.perOut.nbOut/2:
-+ if n > self.perOut.nbOut // 2:
- log.debug("Incoherent number of stereo channels")
- return False
- if n > 0:
diff --git a/media-libs/libffado/files/libffado-2.4.0-crossbar-router-fix.patch b/media-libs/libffado/files/libffado-2.4.0-crossbar-router-fix.patch
deleted file mode 100644
index 99861abe284e..000000000000
--- a/media-libs/libffado/files/libffado-2.4.0-crossbar-router-fix.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- a/support/mixer-qt4/ffado/widgets/crossbarrouter.py 2018-01-11 12:34:10.200777889 +0900
-+++ b/support/mixer-qt4/ffado/widgets/crossbarrouter.py 2018-01-11 12:45:13.278911705 +0900
-@@ -98,7 +98,7 @@
- self.combo.setCurrentIndex(self.combo.findText(src))
- else:
- self.combo.setCurrentIndex(0)
-- self.combo.activated.connect(self.comboCurrentChanged)
-+ self.combo.activated[str].connect(self.comboCurrentChanged)
-
-
- def peakValue(self, value):
diff --git a/media-libs/libffado/files/libffado-2.4.0-py3-pyqt5-fixes.patch b/media-libs/libffado/files/libffado-2.4.0-py3-pyqt5-fixes.patch
deleted file mode 100644
index f0937559b8e9..000000000000
--- a/media-libs/libffado/files/libffado-2.4.0-py3-pyqt5-fixes.patch
+++ /dev/null
@@ -1,197 +0,0 @@
-------------------------------------------------------------------------
-r2726 | jwoithe | 2018-01-05 18:56:40 +0900 (Fri, 05 Jan 2018) | 13 lines
-
-Further Python3/PyQt5 compatibility fixes, enhance "About" dialog box.
-
-This patch was prepared by Orcan Ogetbil on Fedora and tested on that
-distribution with PyQt4-4.12.1 and PyQt5-5.9.1. It is primarily concerned
-with additional compatibility between Python2/3 and PyQt4/5. It has also
-been tested under python 2 with pyqt 4.11.4. Further testing under
-different python/pyqt environments would be welcomed.
-
-An enhancement to the "About" dialog is also included which adds version
-strings and updates the copyright year range.
-
-The patch was submitted to the ffado-devel mailing list.
-
-
-Index: support/mixer-qt4/ffado/ffadowindow.py
-===================================================================
---- a/support/mixer-qt4/ffado/ffadowindow.py (revision 2725)
-+++ b/support/mixer-qt4/ffado/ffadowindow.py (revision 2726)
-@@ -22,6 +22,8 @@
- # along with this program. If not, see <http://www.gnu.org/licenses/>.
- #
-
-+import ctypes
-+import datetime
- import os
-
- from ffado.config import *
-@@ -92,7 +94,8 @@
- self.menuTheme[theme].setCheckable(True)
-
- if (ffado_python3 and (self.style().objectName().lower() == theme.lower()) or
-- not(ffado_python3) and (self.style().objectName().toLower() == theme.toLower())):
-+ not(ffado_python3) and (self.style().objectName().toLower() == theme.toLower() if ffado_pyqt_version == 4 else
-+ self.style().objectName().lower() == theme.lower())):
- self.menuTheme[theme].setDisabled(True)
- self.menuTheme[theme].setChecked(True)
- self.menuTheme[theme].triggered.connect(self.switchTheme )
-@@ -174,9 +177,11 @@
- QMessageBox.about( self, "About FFADO", """
- <h1>ffado.org</h1>
-
-+<p>{ffado_version}</p>
-+
- <p>FFADO is the new approach to have firewire audio on linux.</p>
-
--<p>&copy; 2006-2014 by the FFADO developers<br />ffado is licensed under the GPLv3, for the full license text see <a href="http://www.gnu.org/licenses/">www.gnu.org/licenses</a> or the LICENSE.* files shipped with ffado.</p>
-+ <p>&copy; 2006-2018 by the FFADO developers<br />ffado is licensed under the GPLv3, for the full license text see <a href="http://www.gnu.org/licenses/">www.gnu.org/licenses</a> or the LICENSE.* files shipped with ffado.</p>
-
- <p>FFADO developers are:<ul>
- <li>Pieter Palmers
-@@ -191,8 +196,17 @@
- <li>Stefan Richter
- <li>Jano Svitok
- </ul>
--""" )
-+ """.format(ffado_version=get_ffado_version(), thisyear=datetime.datetime.now().year))
-
-+def get_ffado_version():
-+ try:
-+ # call the C function ffado_get_version() to figure out the version
-+ lib = ctypes.cdll.LoadLibrary('libffado.so')
-+ func = ctypes.CFUNCTYPE(ctypes.c_char_p)
-+ ffado_get_version = func(('ffado_get_version', lib))
-+ return ffado_get_version()
-+ except:
-+ return "libffado"
-
- def get_lock(process_name):
- import socket
-@@ -252,6 +266,7 @@
- logging.getLogger('global').setLevel(debug_level)
-
- log = logging.getLogger('main')
-+ log.debug("Using %s with Qt: %s PyQt: %s" % (get_ffado_version(), QtCore.QT_VERSION_STR, QtCore.PYQT_VERSION_STR))
-
- app = QApplication(args)
- app.setWindowIcon( QIcon( SHAREDIR + "/icons/hi64-apps-ffado.png" ) )
-Index: support/mixer-qt4/ffado/logginghandler.py
-===================================================================
---- a/support/mixer-qt4/ffado/logginghandler.py (revision 2725)
-+++ b/support/mixer-qt4/ffado/logginghandler.py (revision 2726)
-@@ -28,7 +28,7 @@
- log = logging.getLogger('logginghandler')
-
- class QStatusLogger( QObject, logging.Handler ):
-- log = pyqtSignal(QString, int, name='log')
-+ log = pyqtSignal(QString if ffado_pyqt_version == 4 else str, int, name='log')
- def __init__( self, parent, statusbar, level=logging.NOTSET ):
- QObject.__init__( self, parent )
- logging.Handler.__init__( self, level )
-Index: support/mixer-qt4/ffado/panelmanager.py
-===================================================================
---- a/support/mixer-qt4/ffado/panelmanager.py (revision 2725)
-+++ b/support/mixer-qt4/ffado/panelmanager.py (revision 2726)
-@@ -378,7 +378,7 @@
- action = self.sender()
- # Extract the action data and store as a dbus.String type so
- # it is usable as a key into self.panels[].
-- panel_key = dbus.String(action.data().toString())
-+ panel_key = dbus.String(action.data().toString() if ffado_pyqt_version == 4 else action.data())
- self.tabs.setCurrentIndex(self.tabs.indexOf(self.panels[panel_key]))
-
- def displayPanels(self):
-@@ -515,6 +515,8 @@
- saveString.append('</device>\n')
- # file saving
- savefilename = QFileDialog.getSaveFileName(self, 'Save File', os.getenv('HOME'))
-+ if isinstance(savefilename, tuple): # newer PyQt5
-+ savefilename = savefilename[0]
- try:
- f = open(savefilename, 'w')
- except IOError:
-@@ -526,6 +528,8 @@
-
- def readSettings(self):
- readfilename = QFileDialog.getOpenFileName(self, 'Open File', os.getenv('HOME'))
-+ if isinstance(readfilename, tuple): # newer PyQt5
-+ readfilename = readfilename[0]
- try:
- f = open(readfilename, 'r')
- except IOError:
-Index: support/mixer-qt4/ffado/widgets/crossbarrouter.py
-===================================================================
---- a/support/mixer-qt4/ffado/widgets/crossbarrouter.py (revision 2725)
-+++ b/support/mixer-qt4/ffado/widgets/crossbarrouter.py (revision 2726)
-@@ -168,7 +168,10 @@
- self.timer.setInterval(200)
- self.timer.timeout.connect(self.updateLevels)
-
-- self.vubtn.setChecked(self.settings.value("crossbarrouter/runvu", False).toBool())
-+ if ffado_pyqt_version == 4:
-+ self.vubtn.setChecked(self.settings.value("crossbarrouter/runvu", False).toBool())
-+ else:
-+ self.vubtn.setChecked(self.settings.value("crossbarrouter/runvu", False) == u'true')
-
- def __del__(self):
- print( "CrossbarRouter.__del__()" )
-Index: support/mixer-qt4/ffado/widgets/matrixmixer.py
-===================================================================
---- a/support/mixer-qt4/ffado/widgets/matrixmixer.py (revision 2725)
-+++ b/support/mixer-qt4/ffado/widgets/matrixmixer.py (revision 2726)
-@@ -200,7 +200,7 @@
-
- def mousePressEvent(self, ev):
- if ev.buttons() & Qt.LeftButton:
-- self.pos = ev.posF()
-+ self.pos = ev.posF() if ffado_pyqt_version == 4 else ev.localPos()
- self.tmpvalue = self.value()
- ev.accept()
- #log.debug("MixerNode.mousePressEvent() %s" % str(self.pos))
-@@ -207,7 +207,7 @@
-
- def mouseMoveEvent(self, ev):
- if hasattr(self, "tmpvalue") and self.pos is not QtCore.QPointF(0, 0):
-- newpos = ev.posF()
-+ newpos = ev.posF() if ffado_pyqt_version == 4 else ev.localPos()
- change = newpos.y() - self.pos.y()
- #log.debug("MixerNode.mouseReleaseEvent() change %s" % (str(change)))
- self.setValue( self.tmpvalue - math.copysign(pow(abs(change), 2), change) )
-@@ -215,7 +215,7 @@
-
- def mouseReleaseEvent(self, ev):
- if hasattr(self, "tmpvalue") and self.pos is not QtCore.QPointF(0, 0):
-- newpos = ev.posF()
-+ newpos = ev.posF() if ffado_pyqt_version == 4 else ev.localPos()
- change = newpos.y() - self.pos.y()
- #log.debug("MixerNode.mouseReleaseEvent() change %s" % (str(change)))
- self.setValue( self.tmpvalue - math.copysign(pow(abs(change), 2), change) )
-@@ -257,19 +257,19 @@
- if v == 0:
- symb_inf = u"\u221E"
- text = "-" + symb_inf + " dB"
-- if ffado_python3:
-+ if ffado_python3 or ffado_pyqt_version == 5:
- # Python3 uses native python UTF strings rather than QString.
- # This therefore appears to be the correct way to display this
- # UTF8 string, but testing may prove otherwise.
- p.drawText(rect, Qt.AlignCenter, text)
- else:
-- p.drawText(rect, Qt.AlignCenter, QtCore.QString.fromUtf8(text))
-+ p.drawText(rect, Qt.AlignCenter, QString.fromUtf8(text))
- if (self.inv_action!=None and self.inv_action.isChecked()):
-- if ffado_python3:
-+ if ffado_python3 or ffado_pyqt_version == 5:
- # Refer to the comment about about Python UTF8 strings.
- p.drawText(rect, Qt.AlignLeft|Qt.AlignTop, " ϕ")
- else:
-- p.drawText(rect, Qt.AlignLeft|Qt.AlignTop, QtCore.QString.fromUtf8(" ϕ"))
-+ p.drawText(rect, Qt.AlignLeft|Qt.AlignTop, QString.fromUtf8(" ϕ"))
-
- def internalValueChanged(self, value):
- #log.debug("MixerNode.internalValueChanged( %i )" % value)
-
-------------------------------------------------------------------------
diff --git a/media-libs/libffado/files/libffado-2.4.0-pyqt5-dbus-detection.patch b/media-libs/libffado/files/libffado-2.4.0-pyqt5-dbus-detection.patch
deleted file mode 100644
index 9064a59a6bcc..000000000000
--- a/media-libs/libffado/files/libffado-2.4.0-pyqt5-dbus-detection.patch
+++ /dev/null
@@ -1,30 +0,0 @@
-------------------------------------------------------------------------
-r2725 | jwoithe | 2018-01-05 18:40:19 +0900 (Fri, 05 Jan 2018) | 11 lines
-
-SCons: fix detection of dbus on PyQt5 systems.
-
-The detection of the dbus python modules was qualified on the presence of
-pyuic4. On systems with only PyQt5 this would obviously fail. Patch from
-Orcan Ogetbil via the ffado-devel mailing list.
-
-r2724 inadvertently included a change to SConstruct to import sys. This is
-needed since sys.stdout is referenced in some situations (in particular, if
-jack is not installed in the build environment). This patch was also from
-Orcan Ogetbil, via the ffado-devel mailing list.
-
-
-Index: SConstruct
-===================================================================
---- a/SConstruct (revision 2724)
-+++ b/SConstruct (revision 2725)
-@@ -396,7 +396,7 @@
-
- # PyQT checks
- if env['BUILD_MIXER'] != 'false':
-- have_dbus = (conf.CheckForApp( 'which pyuic4' ) and conf.CheckForPyModule( 'dbus.mainloop.qt' ))
-+ have_dbus = ((conf.CheckForApp( 'which pyuic4' ) and conf.CheckForPyModule( 'dbus.mainloop.qt' )) or (conf.CheckForApp( 'which pyuic5' ) and conf.CheckForPyModule( 'dbus.mainloop.pyqt5' )))
- have_pyqt4 = (conf.CheckForApp( 'which pyuic4' ) and conf.CheckForPyModule( 'PyQt4' ))
- have_pyqt5 = (conf.CheckForApp( 'which pyuic5' ) and conf.CheckForPyModule( 'PyQt5' ))
- if ((have_pyqt4 or have_pyqt5) and have_dbus):
-
-------------------------------------------------------------------------
diff --git a/media-libs/libffado/files/libffado-2.4.0-rme-bigendian-fix.patch b/media-libs/libffado/files/libffado-2.4.0-rme-bigendian-fix.patch
deleted file mode 100644
index 8e0158a03c5d..000000000000
--- a/media-libs/libffado/files/libffado-2.4.0-rme-bigendian-fix.patch
+++ /dev/null
@@ -1,50 +0,0 @@
-------------------------------------------------------------------------
-r2724 | jwoithe | 2018-01-05 18:33:39 +0900 (Fri, 05 Jan 2018) | 8 lines
-
-RME: ensure byte swap macros are available for all components.
-
-The byte swap macros (ByteSwap32() in particular) are required on big-endian
-architectures for more than just the rme_avdevice module. Including these
-in the RME device header file is a reasonable way to fix this.
-
-Patch from Orcan Ogetbil via the ffado-devel mailing list.
-
-
-Index: SConstruct
-===================================================================
---- a/SConstruct (revision 2723)
-+++ b/SConstruct (revision 2724)
-@@ -29,6 +29,7 @@
- from subprocess import Popen, PIPE
- import os
- import re
-+import sys
- from string import Template
- import imp
- import distutils.sysconfig
-Index: src/rme/rme_avdevice.cpp
-===================================================================
---- a/src/rme/rme_avdevice.cpp (revision 2723)
-+++ b/src/rme/rme_avdevice.cpp (revision 2724)
-@@ -42,7 +42,6 @@
- #include <stdint.h>
- #include <assert.h>
- #include <unistd.h>
--#include "libutil/ByteSwap.h"
-
- #include <iostream>
- #include <sstream>
-Index: src/rme/rme_avdevice.h
-===================================================================
---- a/src/rme/rme_avdevice.h (revision 2723)
-+++ b/src/rme/rme_avdevice.h (revision 2724)
-@@ -31,6 +31,7 @@
- #include "libavc/avc_definitions.h"
-
- #include "libutil/Configuration.h"
-+#include "libutil/ByteSwap.h"
-
- #include "fireface_def.h"
- #include "libstreaming/rme/RmeReceiveStreamProcessor.h"
-
-------------------------------------------------------------------------
diff --git a/media-libs/libffado/libffado-2.4.0.ebuild b/media-libs/libffado/libffado-2.4.0.ebuild
deleted file mode 100644
index 10e673c6113d..000000000000
--- a/media-libs/libffado/libffado-2.4.0.ebuild
+++ /dev/null
@@ -1,119 +0,0 @@
-# Copyright 1999-2018 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="6"
-
-PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
-
-inherit desktop python-single-r1 scons-utils toolchain-funcs udev multilib-minimal
-
-DESCRIPTION="Driver for IEEE1394 (Firewire) audio interfaces"
-HOMEPAGE="http://www.ffado.org"
-
-if [[ "${PV}" = "9999" ]]; then
- inherit subversion
- ESVN_REPO_URI="http://subversion.ffado.org/ffado/trunk/${PN}"
-else
- SRC_URI="http://www.ffado.org/files/${P}.tgz"
- KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
-fi
-
-LICENSE="GPL-2 GPL-3"
-SLOT="0"
-IUSE="debug qt5 test-programs"
-REQUIRED_USE="${PYTHON_REQUIRED_USE}"
-
-COMMON_DEPEND="${PYTHON_DEPS}
- dev-cpp/libxmlpp:2.6[${MULTILIB_USEDEP}]
- dev-libs/dbus-c++
- dev-libs/libconfig[cxx,${MULTILIB_USEDEP}]
- media-libs/alsa-lib
- media-libs/libiec61883[${MULTILIB_USEDEP}]
- sys-apps/dbus
- sys-libs/libavc1394[${MULTILIB_USEDEP}]
- sys-libs/libraw1394[${MULTILIB_USEDEP}]
- qt5? (
- dev-python/dbus-python[${PYTHON_USEDEP}]
- dev-python/PyQt5[dbus,${PYTHON_USEDEP}]
- x11-misc/xdg-utils
- )"
-DEPEND="${COMMON_DEPEND}
- virtual/pkgconfig"
-RDEPEND="${COMMON_DEPEND}
- !<media-sound/jack-audio-connection-kit-0.122.0:0
- !<media-sound/jack-audio-connection-kit-1.9.9:2"
-
-PATCHES=(
- "${FILESDIR}/${P}-rme-bigendian-fix.patch"
- "${FILESDIR}/${P}-pyqt5-dbus-detection.patch"
- "${FILESDIR}/${P}-py3-pyqt5-fixes.patch"
- "${FILESDIR}/${P}-additional-py3-fixes.patch"
- "${FILESDIR}/${P}-crossbar-router-fix.patch"
-)
-
-myescons() {
- local myesconsargs=(
- PREFIX="${EPREFIX}/usr"
- LIBDIR="${EPREFIX}/usr/$(get_libdir)"
- MANDIR="${EPREFIX}/usr/share/man"
- UDEVDIR="$(get_udevdir)/rules.d"
- CUSTOM_ENV=true
- DETECT_USERSPACE_ENV=false
- DEBUG=$(usex debug)
- PYPKGDIR="$(python_get_sitedir)"
- # ENABLE_OPTIMIZATIONS detects cpu type and sets flags accordingly
- # -fomit-frame-pointer is added also which can cripple debugging.
- # we set flags from portage instead
- ENABLE_OPTIMIZATIONS=false
- # This only works for JACK1>=0.122.0 or JACK2>=1.9.9, so we block
- # lower versions.
- ENABLE_SETBUFFERSIZE_API_VER=force
- )
- if multilib_is_native_abi; then
- myesconsargs+=(
- BUILD_MIXER=$(usex qt5 true false)
- BUILD_TESTS=$(usex test-programs)
- )
- else
- myesconsargs+=(
- BUILD_MIXER=false
- BUILD_TESTS=false
- )
- fi
- escons "${myesconsargs[@]}" "${@}"
-}
-
-src_prepare() {
- default
-
- # Python3 fixes
- sed -i -e 's/\t/ /g' support/mixer-qt4/ffado/mixer/phase88control.py || die
- sed -i -e 's/\t/ /g' support/mixer-qt4/ffado/mixer/audiofire.py || die
- sed -i -e 's/\bprint \(.*\)$/print(\1)/g' -e '/import commands/d' support/tools/ffado-diag-static || die
-
- # Always use Qt5
- sed -i -e 's/try:/if False:/' -e 's/except.*/else:/' support/mixer-qt4/ffado/import_pyqt.py || die
-
- multilib_copy_sources
-}
-
-multilib_src_compile() {
- tc-export CC CXX
- myescons
-}
-
-multilib_src_install() {
- myescons DESTDIR="${D}" WILL_DEAL_WITH_XDG_MYSELF="True" install
-}
-
-multilib_src_install_all() {
- einstalldocs
-
- python_fix_shebang "${D}"
- python_optimize "${D}"
-
- if use qt5; then
- newicon "support/xdg/hi64-apps-ffado.png" "ffado.png"
- newmenu "support/xdg/ffado.org-ffadomixer.desktop" "ffado-mixer.desktop"
- fi
-}
diff --git a/media-libs/libffado/libffado-2.4.1.ebuild b/media-libs/libffado/libffado-2.4.1.ebuild
index a9c3d2c6e170..d987a24a6465 100644
--- a/media-libs/libffado/libffado-2.4.1.ebuild
+++ b/media-libs/libffado/libffado-2.4.1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="6"
@@ -15,7 +15,7 @@ if [[ "${PV}" = "9999" ]]; then
ESVN_REPO_URI="http://subversion.ffado.org/ffado/trunk/${PN}"
else
SRC_URI="http://www.ffado.org/files/${P}.tgz"
- KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
+ KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
fi
LICENSE="GPL-2 GPL-3"