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: Thu, 17 Sep 2020 09:06:46
Message-Id: 1600333597.d094b764e9c2352d769e0ea40753f4ad09737354.polynomial-c@gentoo
1 commit: d094b764e9c2352d769e0ea40753f4ad09737354
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Thu Sep 17 09:03:19 2020 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 17 09:06:37 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d094b764
7
8 media-sound/bluez-alsa: Bump to version 3.0.0
9
10 Closes: https://bugs.gentoo.org/743016
11 Package-Manager: Portage-3.0.7, Repoman-3.0.1
12 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
13
14 media-sound/bluez-alsa/Manifest | 1 +
15 media-sound/bluez-alsa/bluez-alsa-3.0.0.ebuild | 90 ++++++++++++++++++++++++++
16 media-sound/bluez-alsa/metadata.xml | 2 +
17 3 files changed, 93 insertions(+)
18
19 diff --git a/media-sound/bluez-alsa/Manifest b/media-sound/bluez-alsa/Manifest
20 index 8d141d0c41f..1f278685cce 100644
21 --- a/media-sound/bluez-alsa/Manifest
22 +++ b/media-sound/bluez-alsa/Manifest
23 @@ -1 +1,2 @@
24 DIST bluez-alsa-2.1.0.tar.gz 129650 BLAKE2B 6ab1b618828b5ad6f35c62a711cd24a51536ae4e013227addff8193bb522e0e7322d054fa8e688b5322ec59f6d08a654760ebb5792a637fa11536afc41c5dba5 SHA512 8b6d520f5733799b1c509052ac527377cbe5e0106b75180f783f83071246937b5dc7a22c2d27f3e9e331c52c74be59f3bc6d78caab97b41f06cfd6ed5191b584
25 +DIST bluez-alsa-3.0.0.tar.gz 157776 BLAKE2B 68cc67dcfd303e624333d7dafa53a3ce0f91f55e58a9a1a51f17153eadfdca5acc1b12b2e41a11c4780909fe8283e0a9c859a7d755e38dd9aeebbf4ae9e0daf2 SHA512 094c91636c3f1803b3eb88e295683acc604be9f86d00022c196784b4ec88aa4a6cc20bdff0fdab2a7e5af3efe95ed8bd8c5486a8cd7896ec572bfa9e8e0f13d0
26
27 diff --git a/media-sound/bluez-alsa/bluez-alsa-3.0.0.ebuild b/media-sound/bluez-alsa/bluez-alsa-3.0.0.ebuild
28 new file mode 100644
29 index 00000000000..3ab8343e381
30 --- /dev/null
31 +++ b/media-sound/bluez-alsa/bluez-alsa-3.0.0.ebuild
32 @@ -0,0 +1,90 @@
33 +# Copyright 1999-2020 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +inherit autotools multilib-minimal systemd
38 +
39 +DESCRIPTION="Bluetooth Audio ALSA Backend"
40 +HOMEPAGE="https://github.com/Arkq/bluez-alsa"
41 +
42 +if [[ ${PV} == "9999" ]] ; then
43 + inherit git-r3
44 + EGIT_REPO_URI="https://github.com/Arkq/${PN}"
45 +else
46 + SRC_URI="https://github.com/Arkq/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
47 + KEYWORDS="~amd64 ~x86"
48 +fi
49 +
50 +LICENSE="MIT"
51 +SLOT="0"
52 +IUSE="aac debug hcitop lame ldac man mpg123 ofono static-libs test unwind upower"
53 +RESTRICT="!test? ( test )"
54 +
55 +# bluez-alsa does not directly link to upower but
56 +# is using the upower interface via dbus calls.
57 +RDEPEND="
58 + >=dev-libs/glib-2.26[dbus,${MULTILIB_USEDEP}]
59 + >=media-libs/alsa-lib-1.1.2[${MULTILIB_USEDEP}]
60 + >=media-libs/sbc-1.2[${MULTILIB_USEDEP}]
61 + >=net-wireless/bluez-5.0[${MULTILIB_USEDEP}]
62 + sys-apps/dbus[${MULTILIB_USEDEP}]
63 + sys-libs/readline:0=
64 + aac? ( >=media-libs/fdk-aac-0.1.1:=[${MULTILIB_USEDEP}] )
65 + lame? ( media-sound/lame[${MULTILIB_USEDEP}] )
66 + mpg123? ( media-sound/mpg123[${MULTILIB_USEDEP}] )
67 + hcitop? (
68 + dev-libs/libbsd
69 + sys-libs/ncurses:0=
70 + )
71 + ldac? ( >=media-libs/libldac-2.0.0 )
72 + ofono? ( net-misc/ofono )
73 + unwind? ( sys-libs/libunwind[${MULTILIB_USEDEP}] )
74 + upower? ( sys-power/upower )
75 +"
76 +DEPEND="${RDEPEND}
77 + test? ( dev-libs/check )"
78 +BDEPEND="
79 + virtual/pkgconfig
80 + man? ( app-text/pandoc )
81 +"
82 +
83 +src_prepare() {
84 + default
85 + eautoreconf
86 +}
87 +
88 +multilib_src_configure() {
89 + local myeconfargs=(
90 + --enable-rfcomm
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 hcitop)
99 + $(multilib_native_use_enable ldac)
100 + $(multilib_native_use_enable ofono)
101 + $(multilib_native_use_enable upower)
102 + $(use_with unwind libunwind)
103 + )
104 + ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
105 +}
106 +
107 +multilib_src_install_all() {
108 + default
109 + find "${ED}" -type f -name "*.la" -delete || die
110 +
111 + newinitd "${FILESDIR}"/bluealsa-init.d bluealsa
112 + newconfd "${FILESDIR}"/bluealsa-conf.d-2 bluealsa
113 + systemd_dounit "${FILESDIR}"/bluealsa.service
114 +
115 + # Add config file to alsa datadir as well to preserve changes in /etc
116 + insinto "/usr/share/alsa/alsa.conf.d/"
117 + doins "src/asound/20-bluealsa.conf"
118 +}
119 +
120 +pkg_postinst() {
121 + elog "Users can use this service when they are members of the \"audio\" group."
122 +}
123
124 diff --git a/media-sound/bluez-alsa/metadata.xml b/media-sound/bluez-alsa/metadata.xml
125 index 4fa05b5a0f0..cf14e256b35 100644
126 --- a/media-sound/bluez-alsa/metadata.xml
127 +++ b/media-sound/bluez-alsa/metadata.xml
128 @@ -11,6 +11,8 @@
129 <use>
130 <flag name="hcitop">Enable top-like monitoring tool for HCI</flag>
131 <flag name="ldac">Enable support for AOSP <pkg>media-libs/libldac</pkg> dispatcher</flag>
132 + <flag name="man">Generate (and install) man pages with <pkg>app-text/pandoc</pkg></flag>
133 + <flag name="mpg123">Enable support for MPEG audio playback via <pkg>media-sound/mpg123</pkg></flag>
134 <flag name="ofono">Enable ofono elephony support</flag>
135 </use>
136 </pkgmetadata>