[proaudio] [2922] media-libs/libffado: patch to avoid detecting userspace, thanks to Maurizio Berti for report; sort inherits lexically, revert live revision |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/proaudio Archives
]
- To: proaudio@xxxxxxxxxxxxxxxxxxx
- Subject: [proaudio] [2922] media-libs/libffado: patch to avoid detecting userspace, thanks to Maurizio Berti for report; sort inherits lexically, revert live revision
- From: subversion@xxxxxxxxxxxxx
- Date: Thu, 19 Mar 2015 22:32:32 +0100
Revision: 2922
Author: lilrc
Date: 2015-03-19 22:32:31 +0100 (Thu, 19 Mar 2015)
Log Message:
-----------
media-libs/libffado: patch to avoid detecting userspace, thanks to Maurizio Berti for report; sort inherits lexically, revert live revision
Modified Paths:
--------------
trunk/overlays/proaudio/media-libs/libffado/ChangeLog
trunk/overlays/proaudio/media-libs/libffado/Manifest
Added Paths:
-----------
trunk/overlays/proaudio/media-libs/libffado/files/libffado-2.2.1-detect-userspace.patch
trunk/overlays/proaudio/media-libs/libffado/libffado-2.2.1-r1.ebuild
trunk/overlays/proaudio/media-libs/libffado/libffado-9999.ebuild
Removed Paths:
-------------
trunk/overlays/proaudio/media-libs/libffado/libffado-9999-r1.ebuild
Modified: trunk/overlays/proaudio/media-libs/libffado/ChangeLog
===================================================================
--- trunk/overlays/proaudio/media-libs/libffado/ChangeLog 2015-03-16 17:55:49 UTC (rev 2921)
+++ trunk/overlays/proaudio/media-libs/libffado/ChangeLog 2015-03-19 21:32:31 UTC (rev 2922)
@@ -1,7 +1,18 @@
# ChangeLog for media-libs/libffado
-# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
+# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
+*libffado-9999 (19 Mar 2015)
+*libffado-2.2.1-r1 (19 Mar 2015)
+
+ 19 Mar 2015; Karl Linden (lilrc) <lilrc@xxxxxxxxxxxxxxxxxxxxx>
+ +libffado-2.2.1-r1.ebuild, +libffado-9999.ebuild, -libffado-9999-r1.ebuild,
+ +files/libffado-2.2.1-detect-userspace.patch:
+ patch to avoid detecting userspace (patch sent upstream), thanks to Maurizio
+ Berti for reporting
+ sort inherits lexically
+ revert live revision
+
15 Dec 2014; Karl Linden (lilrc) <lilrc@xxxxxxxxxxxxxxxxxxxxx>
-libffado-2.1.0-r1.ebuild, libffado-2.2.1.ebuild, libffado-9999-r1.ebuild,
-files/libffado-2.1.0, -files/libffado-2.1.0-no-jackd-version.patch,
Modified: trunk/overlays/proaudio/media-libs/libffado/Manifest
===================================================================
--- trunk/overlays/proaudio/media-libs/libffado/Manifest 2015-03-16 17:55:49 UTC (rev 2921)
+++ trunk/overlays/proaudio/media-libs/libffado/Manifest 2015-03-19 21:32:31 UTC (rev 2922)
@@ -1,7 +1,9 @@
+AUX libffado-2.2.1-detect-userspace.patch 3392 SHA256 e6f538f0638a8d1091beb41393e4a2e607eccca4684a0200baf50da4731f4bd5 SHA512 237b316964c6605c43890afbef2a17539296085962161dd099edffd0296e338ec67875d365ab4b1f4e00508eddf7508975a9f97c87438a5f0527f2f900d0f21e WHIRLPOOL f8365715b145214fa24a6f054f594745835678656abf6a91e2bd46bc7621ea3a3866df25d4877b31b1fdbb3777cb72112a2945281efafa3328f03ef9af84ee91
AUX libffado-2.2.1-flags.patch 4064 SHA256 85c0686d252678d67da600fde931a10adb2d88243ad9fcde56b377d7dec7fdf1 SHA512 4674efbb9c70045520e7efd9789bba016fb91a6dd0b4021e2069b93c559d3f74c5c23af573da28427846aa8f5bad7952dd6e39fc4e9c6be7a9982ca60ff222a0 WHIRLPOOL fe021e45c0824df293f7bfccba143b6d4a148ea5ddb7c6847b906c7f85369d3639815798c115343818c9b8caf1d4e1be9ffe437b1e6f86f39c126272d08bce4b
AUX libffado-2.2.1-jack-detect.patch 2247 SHA256 bfe097ee811573d647e26a80c1999691fb19263d5434f18c0cd2c16827760d4c SHA512 a184ed839ffd8f13c6b2fd7b58e03e3d4b670375571ed414d741a89b288644090788a483482e73d65f1691f11b96408b512fe4a19df05edfe2599a4910cd6fa5 WHIRLPOOL 2dc7c485e1b0bea34fe20a8d411aa67d5e618d0da699ca0a5fc62838df68880dc947b6365bca56dcd9d374d970535562faa8d57b7f8fb3c87b06f2e1929a6c09
DIST libffado-2.2.1.tgz 1227685 SHA256 9f299b8ecd9885338aeae8c7f2fc10af9afb85ca4384256d485b010a128b35f6 SHA512 310741703912dd273458d0ecc4aca43af1735e15a19704e39b0c660212a34875e9c6086a325914d70d2373ff56b888acb4d925778db8cc3b9b2e8866e0a7b042 WHIRLPOOL ce03c47121a1afa85ed5120e1e77aa5d94dbf49129201a894c4523c8abd07d5d6485fbb68819ef522afd5a987416098ef6f95ab8984f62c325be735833136d22
+EBUILD libffado-2.2.1-r1.ebuild 2222 SHA256 2b555646a83b6890e5dff3fa27796be8c4568154195f25f0bb8243a1ce5a4085 SHA512 c9bd982b124856324b32fac8c7eef1241f1ec1aec8c455c5f24eb07a2afeada3682a7b11772e0a378917bb4e27e822efd217ab52627c88660f7c26e8ae056973 WHIRLPOOL 55b95baa3ffd9af5a934ae6e9c61076e5995dc44afee7fb456175e6e9889ecc4ad2bae8b879e402d4aa67bad2aa7edf3b362d32a58e023168a165762168a608d
EBUILD libffado-2.2.1.ebuild 2154 SHA256 9600223a859ff36bc43b43d3387a94ec1699235852d1ce675e832b795bfa41aa SHA512 b531cefdfb3a4f3c7ad4d664e17fb33143893b3d362f1b3957640ca820e9b3cbe9be265f082a6cd1cc9a847c24e4fcdc6dcbbf39fe5bb441904b4fd7aecc3490 WHIRLPOOL 71c088f84a13bed9274ff8e9e53c713cb9c11ce2f0c36567d07749985fa778f40f30b2dba0d353c1f0680c6c9eff59ccbcdcd4cecdb34e59ae30bf7404b1f787
-EBUILD libffado-9999-r1.ebuild 2071 SHA256 efca9728ec15648b0385de645ac3dc0b26d2ba6d27353134944d154edb837c62 SHA512 5f72b2015d0145197ef4d4abc1703bf97bb8a69d0f652aee210a9bb52746ddad8c2f5bebc97dbf89e6f3b579533d7b0e0d8979f84c925e4b4cbb818a364f4928 WHIRLPOOL 640baf626e4deded2da46f154d84a4bb6d16856d8ef04e018ede88034489ffb4af0252147a2c742716cef45fedd8543811f47d701828bbad48057d8e6f9bf095
-MISC ChangeLog 4753 SHA256 bfa8a277c5dffe3cbd2579770c5d9a28ff8708e01c38b43e876dcdc73004a584 SHA512 d9e08a6579bd9ade4740db05a1a0b9f8687d6dc72910fbf7e293da528bc205f956d9accc0cee13fc815c192b6665f0cb5e669d0ebdbe9f4e1a386e1c01e1c1dc WHIRLPOOL ca81e2aa01fafb99d791d16234e51e8ebabb2556ce37fa392c8806ecaf051ee3f39a3febb27948352c563ed654ef5e4925cbb593ae0f2f19a755780205e024ff
+EBUILD libffado-9999.ebuild 2159 SHA256 af5280cb76f26b611d0c6384cbea5b61c207a787c05d26d38dcc2bd898615e5d SHA512 a937e393bb865898d717eaa3c51d36d4ad3e67b666127066bc39360e6a8af659a30e0ae97cebddc8b8dcb4e958165250fcf51f10d3500f15c5f306764521707a WHIRLPOOL 446b047fc98583e8f3c855b00636af1d859fd128192d919f204eca83a6d74d8f73602fdba240052569f0b09f8e3669f6ec6bf9088dad7140c3895168120a4f78
+MISC ChangeLog 5158 SHA256 be146a90a800b539fc24c7d4bbeb3264f1f1addb0e318548c6677ee817653910 SHA512 9854d8580f7f592e40705c374df3d9b719c2d98c4bb1a5c3ceb911b6eca7cff34de87c4b5f6e88e7e7f8a8359562b4c38e2d50cfb9597db62c314624deff889d WHIRLPOOL 0f2a911240d48d198ad8ddd9ffd8f45d26d24cc6057f083ba386a529d44ed2876ba26dd7a97d15804d64fc907cd6df81b288cb69be96a2e733e7e95507dcdab1
MISC metadata.xml 353 SHA256 608a4a6b28282ff02bda855731c407ccec16d907de90968b75241be123780a64 SHA512 f0399d9fbe3ffcd86066d1442c7a9dd178ac7601dea53280b6bd570bc5a839f4e63051b6bdd04d38c58a5edd6a39dac33af90b82bf46c633516d9ec3a5ee78b9 WHIRLPOOL a75323edc62d5cc245791c7d0cd56d16827d8f8778932c862684cbe59295821339ada5a3ed8a26de27a61f7f7c8ab0df8391efc4c42c608406314d9c579fad72
Added: trunk/overlays/proaudio/media-libs/libffado/files/libffado-2.2.1-detect-userspace.patch
===================================================================
--- trunk/overlays/proaudio/media-libs/libffado/files/libffado-2.2.1-detect-userspace.patch (rev 0)
+++ trunk/overlays/proaudio/media-libs/libffado/files/libffado-2.2.1-detect-userspace.patch 2015-03-19 21:32:31 UTC (rev 2922)
@@ -0,0 +1,63 @@
+# AUTHOR: Karl Linden
+# DESCRIPTION: Patch to make the build system not detect user space on request
+# STATUS: Sent upstream 19 March 2015
+# SEE: http://subversion.ffado.org/ticket/389
+
+Index: SConstruct
+===================================================================
+--- SConstruct (revision 2584)
++++ SConstruct (working copy)
+@@ -76,6 +76,7 @@
+ BoolVariable( "BUILD_STATIC_TOOLS", "Build a statically linked version of the FFADO tools.", False ),
+ EnumVariable('DIST_TARGET', 'Build target for cross compiling packagers', 'auto', allowed_values=('auto', 'i386', 'i686', 'x86_64', 'powerpc', 'powerpc64', 'none' ), ignorecase=2),
+ BoolVariable( "ENABLE_OPTIMIZATIONS", "Enable optimizations and the use of processor specific extentions (MMX/SSE/...).", False ),
++ BoolVariable( "DETECT_USERSPACE", "Try to detect the user space and add necessary machine flags.", True ),
+ BoolVariable( "PEDANTIC", "Enable -Werror and more pedantic options during compile.", False ),
+ BoolVariable( "CUSTOM_ENV", "Respect CC, CXX, CFLAGS, CXXFLAGS and LDFLAGS.\nOnly meant for distributors and gentoo-users who want to over-optimize their build.\n Using this is not supported by the ffado-devs!", False ),
+ ( "COMPILE_FLAGS", "Deprecated (use CFLAGS and CXXFLAGS with CUSTOM_ENV=True instead). Add additional flags to the environment.\nOnly meant for distributors and gentoo-users who want to over-optimize their build.\n Using this is not supported by the ffado-devs!" ),
+@@ -783,25 +784,26 @@
+ if '-msse2' in opt_flags:
+ env['USE_SSE2'] = 1
+
+-m32 = is_userspace_32bit(cpuinfo)
+-print 'User space is %s' % (m32 and '32-bit' or '64-bit')
+-if cpuinfo.is_powerpc:
+- if m32:
+- print "Doing a 32-bit PowerPC build for %s CPU" % cpuinfo.ppc_type
+- machineflags = { 'CXXFLAGS' : ['-m32'] }
+- else:
+- print "Doing a 64-bit PowerPC build for %s CPU" % cpuinfo.ppc_type
+- machineflags = { 'CXXFLAGS' : ['-m64'] }
+- env.MergeFlags( machineflags )
+-elif cpuinfo.is_x86:
+- if m32:
+- print "Doing a 32-bit %s build for %s" % (cpuinfo.machine, cpuinfo.model_name)
+- machineflags = { 'CXXFLAGS' : ['-m32'] }
+- else:
+- print "Doing a 64-bit %s build for %s" % (cpuinfo.machine, cpuinfo.model_name)
+- machineflags = { 'CXXFLAGS' : ['-m64'] }
+- needs_fPIC = True
+- env.MergeFlags( machineflags )
++if env['DETECT_USERSPACE']:
++ m32 = is_userspace_32bit(cpuinfo)
++ print 'User space is %s' % (m32 and '32-bit' or '64-bit')
++ if cpuinfo.is_powerpc:
++ if m32:
++ print "Doing a 32-bit PowerPC build for %s CPU" % cpuinfo.ppc_type
++ machineflags = { 'CXXFLAGS' : ['-m32'] }
++ else:
++ print "Doing a 64-bit PowerPC build for %s CPU" % cpuinfo.ppc_type
++ machineflags = { 'CXXFLAGS' : ['-m64'] }
++ env.MergeFlags( machineflags )
++ elif cpuinfo.is_x86:
++ if m32:
++ print "Doing a 32-bit %s build for %s" % (cpuinfo.machine, cpuinfo.model_name)
++ machineflags = { 'CXXFLAGS' : ['-m32'] }
++ else:
++ print "Doing a 64-bit %s build for %s" % (cpuinfo.machine, cpuinfo.model_name)
++ machineflags = { 'CXXFLAGS' : ['-m64'] }
++ needs_fPIC = True
++ env.MergeFlags( machineflags )
+ #=== End Revised CXXFLAGS =========================================
+
+
Copied: trunk/overlays/proaudio/media-libs/libffado/libffado-2.2.1-r1.ebuild (from rev 2921, trunk/overlays/proaudio/media-libs/libffado/libffado-2.2.1.ebuild)
===================================================================
--- trunk/overlays/proaudio/media-libs/libffado/libffado-2.2.1-r1.ebuild (rev 0)
+++ trunk/overlays/proaudio/media-libs/libffado/libffado-2.2.1-r1.ebuild 2015-03-19 21:32:31 UTC (rev 2922)
@@ -0,0 +1,100 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="5"
+
+PYTHON_COMPAT=( python2_7 )
+[[ "${PV}" = "9999" ]] && inherit subversion
+inherit base eutils multilib python-single-r1 scons-utils toolchain-funcs udev
+
+DESCRIPTION="Successor for freebob: Library for accessing BeBoB IEEE1394 devices"
+HOMEPAGE="http://www.ffado.org"
+
+RESTRICT="mirror"
+if [ "${PV}" = "9999" ]; then
+ ESVN_REPO_URI="http://subversion.ffado.org/ffado/trunk/${PN}"
+ SRC_URI=""
+ KEYWORDS=""
+else
+ SRC_URI="http://www.ffado.org/files/${P}.tgz"
+ KEYWORDS="~amd64 ~ppc ~x86"
+fi
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="debug qt4 +test-programs"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="dev-cpp/libxmlpp
+ dev-libs/dbus-c++
+ dev-libs/libconfig[cxx]
+ media-libs/alsa-lib
+ media-libs/libiec61883
+ media-sound/jack-audio-connection-kit
+ sys-apps/dbus
+ sys-libs/libraw1394
+ sys-libs/libavc1394
+ ${PYTHON_DEPS}
+ qt4? (
+ dev-python/PyQt4[dbus,${PYTHON_USEDEP}]
+ dev-python/dbus-python[${PYTHON_USEDEP}]
+ )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+DOCS=( AUTHORS ChangeLog README )
+
+PATCHES=(
+ "${FILESDIR}"/${P}-flags.patch
+ "${FILESDIR}"/${P}-jack-detect.patch
+ "${FILESDIR}"/${P}-detect-userspace.patch
+)
+
+src_unpack() {
+ if [ "${PV}" = "9999" ]; then
+ subversion_src_unpack
+ else
+ default
+ fi
+}
+
+src_prepare() {
+ base_src_prepare
+ python_fix_shebang "${S}"
+}
+
+src_configure() {
+ myesconsargs=(
+ PREFIX="${EPREFIX}/usr"
+ LIBDIR="${EPREFIX}/usr/$(get_libdir)"
+ MANDIR="${EPREFIX}/usr/share/man"
+ UDEVDIR="$(get_udevdir)/rules.d"
+ CUSTOM_ENV=True
+ DETECT_USERSPACE=False
+ $(use_scons debug DEBUG)
+ $(use_scons test-programs BUILD_TESTS)
+ # 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
+ )
+}
+
+src_compile () {
+ tc-export CC CXX
+ escons
+}
+
+src_install () {
+ escons DESTDIR="${D}" WILL_DEAL_WITH_XDG_MYSELF="True" install
+
+ base_src_install_docs
+
+ python_optimize "${D}"
+
+ if use qt4; then
+ newicon "support/xdg/hi64-apps-ffado.png" "ffado.png"
+ newmenu "support/xdg/ffado.org-ffadomixer.desktop" "ffado-mixer.desktop"
+ fi
+}
Deleted: trunk/overlays/proaudio/media-libs/libffado/libffado-9999-r1.ebuild
===================================================================
--- trunk/overlays/proaudio/media-libs/libffado/libffado-9999-r1.ebuild 2015-03-16 17:55:49 UTC (rev 2921)
+++ trunk/overlays/proaudio/media-libs/libffado/libffado-9999-r1.ebuild 2015-03-19 21:32:31 UTC (rev 2922)
@@ -1,93 +0,0 @@
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-EAPI="5"
-
-PYTHON_COMPAT=( python2_7 )
-[[ "${PV}" = "9999" ]] && inherit subversion
-inherit base scons-utils eutils toolchain-funcs multilib python-single-r1 udev
-
-DESCRIPTION="Successor for freebob: Library for accessing BeBoB IEEE1394 devices"
-HOMEPAGE="http://www.ffado.org"
-
-RESTRICT="mirror"
-if [ "${PV}" = "9999" ]; then
- ESVN_REPO_URI="http://subversion.ffado.org/ffado/trunk/${PN}"
- SRC_URI=""
- KEYWORDS=""
-else
- SRC_URI="http://www.ffado.org/files/${P}.tgz"
- KEYWORDS="~amd64 ~ppc ~x86"
-fi
-
-LICENSE="GPL-2"
-SLOT="0"
-IUSE="debug qt4 +test-programs"
-REQUIRED_USE="${PYTHON_REQUIRED_USE}"
-
-RDEPEND="dev-cpp/libxmlpp
- dev-libs/dbus-c++
- dev-libs/libconfig[cxx]
- media-libs/alsa-lib
- media-libs/libiec61883
- media-sound/jack-audio-connection-kit
- sys-apps/dbus
- sys-libs/libraw1394
- sys-libs/libavc1394
- ${PYTHON_DEPS}
- qt4? (
- dev-python/PyQt4[dbus,${PYTHON_USEDEP}]
- dev-python/dbus-python[${PYTHON_USEDEP}]
- )"
-DEPEND="${RDEPEND}
- virtual/pkgconfig"
-
-DOCS=( AUTHORS ChangeLog README )
-
-src_unpack() {
- if [ "${PV}" = "9999" ]; then
- subversion_src_unpack
- else
- default
- fi
-}
-
-src_prepare() {
- base_src_prepare
- python_fix_shebang "${S}"
-}
-
-src_configure() {
- myesconsargs=(
- PREFIX="${EPREFIX}/usr"
- LIBDIR="${EPREFIX}/usr/$(get_libdir)"
- MANDIR="${EPREFIX}/usr/share/man"
- UDEVDIR="$(get_udevdir)/rules.d"
- CUSTOM_ENV=True
- $(use_scons debug DEBUG)
- $(use_scons test-programs BUILD_TESTS)
- # 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
- )
-}
-
-src_compile () {
- tc-export CC CXX
- escons
-}
-
-src_install () {
- escons DESTDIR="${D}" WILL_DEAL_WITH_XDG_MYSELF="True" install
-
- base_src_install_docs
-
- python_optimize "${D}"
-
- if use qt4; then
- newicon "support/xdg/hi64-apps-ffado.png" "ffado.png"
- newmenu "support/xdg/ffado.org-ffadomixer.desktop" "ffado-mixer.desktop"
- fi
-}
Copied: trunk/overlays/proaudio/media-libs/libffado/libffado-9999.ebuild (from rev 2921, trunk/overlays/proaudio/media-libs/libffado/libffado-9999-r1.ebuild)
===================================================================
--- trunk/overlays/proaudio/media-libs/libffado/libffado-9999.ebuild (rev 0)
+++ trunk/overlays/proaudio/media-libs/libffado/libffado-9999.ebuild 2015-03-19 21:32:31 UTC (rev 2922)
@@ -0,0 +1,98 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="5"
+
+PYTHON_COMPAT=( python2_7 )
+[[ "${PV}" = "9999" ]] && inherit subversion
+inherit base eutils multilib python-single-r1 scons-utils toolchain-funcs udev
+
+DESCRIPTION="Successor for freebob: Library for accessing BeBoB IEEE1394 devices"
+HOMEPAGE="http://www.ffado.org"
+
+RESTRICT="mirror"
+if [ "${PV}" = "9999" ]; then
+ ESVN_REPO_URI="http://subversion.ffado.org/ffado/trunk/${PN}"
+ SRC_URI=""
+ KEYWORDS=""
+else
+ SRC_URI="http://www.ffado.org/files/${P}.tgz"
+ KEYWORDS="~amd64 ~ppc ~x86"
+fi
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="debug qt4 +test-programs"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="dev-cpp/libxmlpp
+ dev-libs/dbus-c++
+ dev-libs/libconfig[cxx]
+ media-libs/alsa-lib
+ media-libs/libiec61883
+ media-sound/jack-audio-connection-kit
+ sys-apps/dbus
+ sys-libs/libraw1394
+ sys-libs/libavc1394
+ ${PYTHON_DEPS}
+ qt4? (
+ dev-python/PyQt4[dbus,${PYTHON_USEDEP}]
+ dev-python/dbus-python[${PYTHON_USEDEP}]
+ )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+DOCS=( AUTHORS ChangeLog README )
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-2.2.1-detect-userspace.patch
+)
+
+src_unpack() {
+ if [ "${PV}" = "9999" ]; then
+ subversion_src_unpack
+ else
+ default
+ fi
+}
+
+src_prepare() {
+ base_src_prepare
+ python_fix_shebang "${S}"
+}
+
+src_configure() {
+ myesconsargs=(
+ PREFIX="${EPREFIX}/usr"
+ LIBDIR="${EPREFIX}/usr/$(get_libdir)"
+ MANDIR="${EPREFIX}/usr/share/man"
+ UDEVDIR="$(get_udevdir)/rules.d"
+ CUSTOM_ENV=True
+ DETECT_USERSPACE=False
+ $(use_scons debug DEBUG)
+ $(use_scons test-programs BUILD_TESTS)
+ # 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
+ )
+}
+
+src_compile () {
+ tc-export CC CXX
+ escons
+}
+
+src_install () {
+ escons DESTDIR="${D}" WILL_DEAL_WITH_XDG_MYSELF="True" install
+
+ base_src_install_docs
+
+ python_optimize "${D}"
+
+ if use qt4; then
+ newicon "support/xdg/hi64-apps-ffado.png" "ffado.png"
+ newmenu "support/xdg/ffado.org-ffadomixer.desktop" "ffado-mixer.desktop"
+ fi
+}