Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-sound/bluez-alsa/
Date: Wed, 09 Jun 2021 07:38:22
Message-Id: 1623224290.c4967e60c5f845596d70a690dfdda5261de55ba4.polynomial-c@gentoo
1 commit: c4967e60c5f845596d70a690dfdda5261de55ba4
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jun 9 07:32:03 2021 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Wed Jun 9 07:38:10 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c4967e60
7
8 media-sound/bluez-alsa: Bump to version 3.1.0
9
10 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
11
12 media-sound/bluez-alsa/Manifest | 1 +
13 media-sound/bluez-alsa/bluez-alsa-3.1.0.ebuild | 95 ++++++++++++++++++++++++++
14 2 files changed, 96 insertions(+)
15
16 diff --git a/media-sound/bluez-alsa/Manifest b/media-sound/bluez-alsa/Manifest
17 index d44d76abd81..c294ef4f454 100644
18 --- a/media-sound/bluez-alsa/Manifest
19 +++ b/media-sound/bluez-alsa/Manifest
20 @@ -1 +1,2 @@
21 DIST bluez-alsa-3.0.0.tar.gz 157776 BLAKE2B 68cc67dcfd303e624333d7dafa53a3ce0f91f55e58a9a1a51f17153eadfdca5acc1b12b2e41a11c4780909fe8283e0a9c859a7d755e38dd9aeebbf4ae9e0daf2 SHA512 094c91636c3f1803b3eb88e295683acc604be9f86d00022c196784b4ec88aa4a6cc20bdff0fdab2a7e5af3efe95ed8bd8c5486a8cd7896ec572bfa9e8e0f13d0
22 +DIST bluez-alsa-3.1.0.tar.gz 179984 BLAKE2B b0bd5008d1bcc972577d8626970834934cc9424b4dff5c9ede1b1bfb0ac6c62c50dd8a7b94bdaa8884354379fb4fe06d758f620b2f42207d85f68da5064b3499 SHA512 8b2644cb2114569cc896869f22352386a9362eeacae823423a63d9b21198f561d4af796700fcd3267556bb69ff2575569474a1da8e3a645b5a2e779882c27cbf
23
24 diff --git a/media-sound/bluez-alsa/bluez-alsa-3.1.0.ebuild b/media-sound/bluez-alsa/bluez-alsa-3.1.0.ebuild
25 new file mode 100644
26 index 00000000000..80ea97b69db
27 --- /dev/null
28 +++ b/media-sound/bluez-alsa/bluez-alsa-3.1.0.ebuild
29 @@ -0,0 +1,95 @@
30 +# Copyright 1999-2021 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=7
34 +inherit autotools bash-completion-r1 multilib-minimal systemd
35 +
36 +DESCRIPTION="Bluetooth Audio ALSA Backend"
37 +HOMEPAGE="https://github.com/Arkq/bluez-alsa"
38 +
39 +if [[ ${PV} == "9999" ]] ; then
40 + inherit git-r3
41 + EGIT_REPO_URI="https://github.com/Arkq/${PN}"
42 +else
43 + SRC_URI="https://github.com/Arkq/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
44 + KEYWORDS="~amd64 ~arm64 ~x86"
45 +fi
46 +
47 +LICENSE="MIT"
48 +SLOT="0"
49 +IUSE="aac aptx debug hcitop lame ldac man mpg123 ofono static-libs test unwind upower"
50 +RESTRICT="!test? ( test )"
51 +
52 +# bluez-alsa does not directly link to upower but
53 +# is using the upower interface via dbus calls.
54 +RDEPEND="
55 + >=dev-libs/glib-2.26[${MULTILIB_USEDEP}]
56 + >=media-libs/alsa-lib-1.1.2[${MULTILIB_USEDEP}]
57 + >=media-libs/sbc-1.2[${MULTILIB_USEDEP}]
58 + >=net-wireless/bluez-5.0[${MULTILIB_USEDEP}]
59 + sys-apps/dbus[${MULTILIB_USEDEP}]
60 + sys-libs/readline:0=
61 + aac? ( >=media-libs/fdk-aac-0.1.1:=[${MULTILIB_USEDEP}] )
62 + aptx? ( media-libs/libopenaptx )
63 + lame? ( media-sound/lame[${MULTILIB_USEDEP}] )
64 + mpg123? ( media-sound/mpg123[${MULTILIB_USEDEP}] )
65 + hcitop? (
66 + dev-libs/libbsd
67 + sys-libs/ncurses:0=
68 + )
69 + ldac? ( >=media-libs/libldac-2.0.0 )
70 + ofono? ( net-misc/ofono )
71 + unwind? ( sys-libs/libunwind[${MULTILIB_USEDEP}] )
72 + upower? ( sys-power/upower )
73 +"
74 +DEPEND="${RDEPEND}
75 + test? ( dev-libs/check )"
76 +BDEPEND="
77 + virtual/pkgconfig
78 + man? ( app-text/pandoc )
79 +"
80 +
81 +src_prepare() {
82 + default
83 + eautoreconf
84 +}
85 +
86 +multilib_src_configure() {
87 + local myeconfargs=(
88 + --enable-cli
89 + --enable-rfcomm
90 + --with-bash-completion="$(get_bashcompdir)"
91 + $(use_enable aac)
92 + $(use_enable debug)
93 + $(use_enable lame mp3lame)
94 + $(use_enable man manpages)
95 + $(use_enable mpg123)
96 + $(use_enable static-libs static)
97 + $(use_enable test)
98 + $(multilib_native_use_enable aptx)
99 + $(multilib_native_use_enable hcitop)
100 + $(multilib_native_use_enable ldac)
101 + $(multilib_native_use_enable ofono)
102 + $(multilib_native_use_enable upower)
103 + $(multilib_native_use_with aptx libopenaptx)
104 + $(use_with unwind libunwind)
105 + )
106 + ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
107 +}
108 +
109 +multilib_src_install_all() {
110 + default
111 + find "${ED}" -type f -name "*.la" -delete || die
112 +
113 + newinitd "${FILESDIR}"/bluealsa-init.d bluealsa
114 + newconfd "${FILESDIR}"/bluealsa-conf.d-2 bluealsa
115 + systemd_dounit "${FILESDIR}"/bluealsa.service
116 +
117 + # Add config file to alsa datadir as well to preserve changes in /etc
118 + insinto "/usr/share/alsa/alsa.conf.d/"
119 + doins "src/asound/20-bluealsa.conf"
120 +}
121 +
122 +pkg_postinst() {
123 + elog "Users can use this service when they are members of the \"audio\" group."
124 +}