| 2 |
2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
3 |
|
| 4 |
4 |
EAPI=8
|
| 5 |
|
PYTHON_COMPAT=( python3_{10..13} )
|
|
5 |
PYTHON_COMPAT=( python3_{11..13} )
|
| 6 |
6 |
|
| 7 |
|
inherit autotools flag-o-matic linux-info python-single-r1 systemd udev multilib-minimal #readme.gentoo-r1
|
|
7 |
inherit autotools flag-o-matic linux-info optfeature python-single-r1 systemd udev multilib-minimal #readme.gentoo-r1
|
| 8 |
8 |
|
| 9 |
9 |
DESCRIPTION="Bluetooth Tools and System Daemons for Linux"
|
| 10 |
|
HOMEPAGE="http://www.bluez.org https://github.com/bluez/bluez"
|
|
10 |
HOMEPAGE="https://www.bluez.org https://github.com/bluez/bluez"
|
| 11 |
11 |
SRC_URI="https://www.kernel.org/pub/linux/bluetooth/${P}.tar.xz"
|
| 12 |
12 |
|
| 13 |
13 |
LICENSE="GPL-2+ LGPL-2.1+"
|
| 14 |
14 |
SLOT="0/3"
|
| 15 |
|
KEYWORDS="amd64 arm arm64 ~hppa ~loong ~mips ppc ppc64 ~riscv x86"
|
|
15 |
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~x86"
|
| 16 |
16 |
IUSE="btpclient cups doc debug deprecated extra-tools experimental man +mesh midi +obex +readline selinux systemd test test-programs +udev"
|
| 17 |
17 |
|
| 18 |
18 |
# Since this release all remaining extra-tools need readline support, but this could
|
| ... | ... | |
| 38 |
38 |
test? ( ${TEST_DEPS} )
|
| 39 |
39 |
"
|
| 40 |
40 |
DEPEND="
|
| 41 |
|
>=dev-libs/glib-2.28:2[${MULTILIB_USEDEP}]
|
|
41 |
>=dev-libs/glib-2.36:2[${MULTILIB_USEDEP}]
|
|
42 |
>=sys-apps/dbus-1.6:=
|
| 42 |
43 |
btpclient? ( >=dev-libs/ell-0.39 )
|
| 43 |
44 |
cups? ( net-print/cups:= )
|
| 44 |
45 |
mesh? (
|
| ... | ... | |
| 50 |
51 |
obex? ( dev-libs/libical:= )
|
| 51 |
52 |
readline? ( sys-libs/readline:0= )
|
| 52 |
53 |
systemd? ( sys-apps/systemd )
|
| 53 |
|
>=sys-apps/dbus-1.6:=
|
| 54 |
54 |
udev? ( >=virtual/udev-196 )
|
| 55 |
55 |
"
|
| 56 |
56 |
RDEPEND="${DEPEND}
|
| ... | ... | |
| 64 |
64 |
# Try both udevadm paths to cover udev/systemd vs. eudev locations (#539844)
|
| 65 |
65 |
# http://www.spinics.net/lists/linux-bluetooth/msg58739.html
|
| 66 |
66 |
# https://bugs.gentoo.org/539844
|
| 67 |
|
# https://github.com/bluez/bluez/issues/268
|
|
67 |
# https://github.com/bluez/bluez/issues/1650
|
| 68 |
68 |
"${FILESDIR}"/${PN}-udevadm-path-r1.patch
|
| 69 |
|
|
| 70 |
|
# https://github.com/bluez/bluez/commit/9d69dba21f1e46b34cdd8ae27fec11d0803907ee
|
| 71 |
|
"${FILESDIR}"/${P}-musl-gdbus.patch
|
| 72 |
|
|
| 73 |
|
# https://bugs.gentoo.org/928365
|
| 74 |
|
# https://github.com/bluez/bluez/issues/726
|
| 75 |
|
"${FILESDIR}"/${PN}-disable-test-vcp.patch
|
| 76 |
|
|
| 77 |
|
# bug #944059
|
| 78 |
|
"${FILESDIR}"/${P}-c23.patch
|
| 79 |
|
|
| 80 |
|
# bug #950467
|
| 81 |
|
"${FILESDIR}"/${P}-slibtoolize.patch
|
| 82 |
69 |
)
|
| 83 |
70 |
|
| 84 |
71 |
pkg_setup() {
|
| ... | ... | |
| 113 |
100 |
src_prepare() {
|
| 114 |
101 |
default
|
| 115 |
102 |
|
| 116 |
|
# https://github.com/bluez/bluez/issues/806
|
| 117 |
|
eapply "${FILESDIR}"/0001-Allow-using-obexd-without-systemd-in-the-user-session-r4.patch
|
| 118 |
|
|
| 119 |
103 |
eautoreconf
|
| 120 |
104 |
|
| 121 |
105 |
multilib_copy_sources
|
| ... | ... | |
| 142 |
126 |
|
| 143 |
127 |
econf \
|
| 144 |
128 |
--localstatedir=/var \
|
| 145 |
|
--disable-android \
|
| 146 |
129 |
--enable-datafiles \
|
| 147 |
130 |
--enable-optimization \
|
| 148 |
131 |
$(use_enable debug) \
|
| ... | ... | |
| 229 |
212 |
python_fix_shebang "${ED}"/usr/$(get_libdir)/bluez/test
|
| 230 |
213 |
|
| 231 |
214 |
for i in $(find "${ED}"/usr/$(get_libdir)/bluez/test -maxdepth 1 -type f ! -name "*.*"); do
|
| 232 |
|
dosym "${i}" /usr/bin/bluez-"${i##*/}"
|
|
215 |
dosym "${i#${ED}}" /usr/bin/bluez-"${i##*/}"
|
| 233 |
216 |
done
|
| 234 |
217 |
fi
|
| 235 |
218 |
else
|
| ... | ... | |
| 281 |
264 |
use udev && udev_reload
|
| 282 |
265 |
systemd_reenable bluetooth.service
|
| 283 |
266 |
|
| 284 |
|
has_version net-dialup/ppp || elog "To use dial up networking you must install net-dialup/ppp"
|
|
267 |
optfeature "Dial-up networking" net-dialup/ppp
|
| 285 |
268 |
}
|
| 286 |
269 |
|
| 287 |
270 |
pkg_postrm() {
|