1 |
|
# Copyright 1999-2020 Gentoo Authors
|
|
1 |
# Copyright 1999-2023 Gentoo Authors
|
2 |
2 |
# Distributed under the terms of the GNU General Public License v2
|
3 |
3 |
|
4 |
|
EAPI="6"
|
|
4 |
EAPI=8
|
5 |
5 |
|
6 |
|
PYTHON_COMPAT=( python3_7 )
|
|
6 |
PYTHON_COMPAT=( python3_{9..11} )
|
7 |
7 |
|
8 |
8 |
inherit desktop python-single-r1 scons-utils toolchain-funcs udev multilib-minimal
|
9 |
9 |
|
... | ... | |
15 |
15 |
ESVN_REPO_URI="http://subversion.ffado.org/ffado/trunk/${PN}"
|
16 |
16 |
else
|
17 |
17 |
SRC_URI="http://www.ffado.org/files/${P}.tgz"
|
18 |
|
KEYWORDS="amd64 ~arm ~arm64 ~ppc ~ppc64 x86"
|
|
18 |
KEYWORDS="~alpha amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv x86"
|
19 |
19 |
fi
|
20 |
20 |
|
21 |
21 |
LICENSE="GPL-2 GPL-3"
|
... | ... | |
23 |
23 |
IUSE="debug qt5 test-programs"
|
24 |
24 |
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
25 |
25 |
|
26 |
|
COMMON_DEPEND="${PYTHON_DEPS}
|
|
26 |
BDEPEND="
|
|
27 |
virtual/pkgconfig
|
|
28 |
"
|
|
29 |
CDEPEND="${PYTHON_DEPS}
|
27 |
30 |
dev-cpp/libxmlpp:2.6[${MULTILIB_USEDEP}]
|
28 |
|
dev-libs/dbus-c++
|
29 |
|
dev-libs/libconfig[cxx,${MULTILIB_USEDEP}]
|
|
31 |
>=dev-libs/dbus-c++-0.9.0-r5
|
|
32 |
dev-libs/libconfig:=[cxx,${MULTILIB_USEDEP}]
|
30 |
33 |
media-libs/alsa-lib
|
31 |
34 |
media-libs/libiec61883[${MULTILIB_USEDEP}]
|
32 |
35 |
sys-apps/dbus
|
... | ... | |
34 |
37 |
sys-libs/libraw1394[${MULTILIB_USEDEP}]
|
35 |
38 |
qt5? (
|
36 |
39 |
$(python_gen_cond_dep '
|
37 |
|
dev-python/dbus-python[${PYTHON_MULTI_USEDEP}]
|
38 |
|
dev-python/PyQt5[dbus,${PYTHON_MULTI_USEDEP}]
|
|
40 |
dev-python/dbus-python[${PYTHON_USEDEP}]
|
|
41 |
dev-python/PyQt5[dbus,${PYTHON_USEDEP}]
|
39 |
42 |
')
|
40 |
43 |
x11-misc/xdg-utils
|
41 |
44 |
)"
|
42 |
|
DEPEND="${COMMON_DEPEND}
|
43 |
|
virtual/pkgconfig"
|
44 |
|
RDEPEND="${COMMON_DEPEND}
|
45 |
|
!<media-sound/jack-audio-connection-kit-0.122.0:0
|
46 |
|
!<media-sound/jack-audio-connection-kit-1.9.9:2"
|
|
45 |
DEPEND="${CDEPEND}"
|
|
46 |
RDEPEND="${CDEPEND}"
|
47 |
47 |
|
48 |
48 |
PATCHES=(
|
49 |
|
"${FILESDIR}/${P}-python3-scons-fix.patch"
|
|
49 |
"${FILESDIR}/libffado-2.4.7-fix-config-load-crash.patch"
|
50 |
50 |
)
|
51 |
51 |
|
52 |
52 |
myescons() {
|
... | ... | |
63 |
63 |
# -fomit-frame-pointer is added also which can cripple debugging.
|
64 |
64 |
# we set flags from portage instead
|
65 |
65 |
ENABLE_OPTIMIZATIONS=false
|
66 |
|
# This only works for JACK1>=0.122.0 or JACK2>=1.9.9, so we block
|
67 |
|
# lower versions.
|
|
66 |
# This only works for JACK1>=0.122.0 or JACK2>=1.9.9.
|
68 |
67 |
ENABLE_SETBUFFERSIZE_API_VER=force
|
69 |
68 |
)
|
70 |
69 |
if multilib_is_native_abi; then
|
... | ... | |
84 |
83 |
src_prepare() {
|
85 |
84 |
default
|
86 |
85 |
|
|
86 |
# Bug #808853
|
|
87 |
cp "${BROOT}"/usr/share/gnuconfig/config.guess admin/ || die "Failed to update config.guess"
|
|
88 |
|
87 |
89 |
# Always use Qt5
|
88 |
90 |
sed -i -e 's/try:/if False:/' -e 's/except.*/else:/' support/mixer-qt4/ffado/import_pyqt.py || die
|
89 |
91 |
|
... | ... | |
113 |
115 |
newmenu "support/xdg/ffado.org-ffadomixer.desktop" "ffado-mixer.desktop"
|
114 |
116 |
fi
|
115 |
117 |
}
|
|
118 |
|
|
119 |
pkg_postinst() {
|
|
120 |
udev_reload
|
|
121 |
}
|
|
122 |
|
|
123 |
pkg_postrm() {
|
|
124 |
udev_reload
|
|
125 |
}
|