media-sound/bluez-alsa: Synced live ebuild
authorLars Wendler <polynomial-c@gentoo.org>
Sun, 26 Jan 2020 16:53:07 +0000 (17:53 +0100)
committerLars Wendler <polynomial-c@gentoo.org>
Sun, 26 Jan 2020 16:54:27 +0000 (17:54 +0100)
Package-Manager: Portage-2.3.85, Repoman-2.3.20
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
media-sound/bluez-alsa/bluez-alsa-9999.ebuild

index 32e9eef4fbc08537e4ce6f837d8cb09784d7a943..fc03fb3b79e0354e2dc6c1472e58f712356d747b 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -17,20 +17,26 @@ fi
 
 LICENSE="MIT"
 SLOT="0"
-IUSE="aac debug hcitop ldac ofono static-libs test"
+IUSE="aac debug hcitop ldac ofono static-libs test upower"
 RESTRICT="!test? ( test )"
 
-RDEPEND=">=dev-libs/glib-2.26[dbus,${MULTILIB_USEDEP}]
+# bluez-alsa does not directly link to upower but
+# is using the upower interface via dbus calls.
+RDEPEND="
+       >=dev-libs/glib-2.26[dbus,${MULTILIB_USEDEP}]
        >=media-libs/alsa-lib-1.1.2[${MULTILIB_USEDEP}]
        >=media-libs/sbc-1.2[${MULTILIB_USEDEP}]
        >=net-wireless/bluez-5.0[${MULTILIB_USEDEP}]
+       sys-apps/dbus[${MULTILIB_USEDEP}]
        sys-libs/readline:0=
        aac? ( >=media-libs/fdk-aac-0.1.1:=[${MULTILIB_USEDEP}] )
        hcitop? (
                dev-libs/libbsd
                sys-libs/ncurses:0=
        )
-       ldac? ( >=media-libs/libldac-2.0.0 )"
+       ldac? ( >=media-libs/libldac-2.0.0 )
+       upower? ( sys-power/upower )
+"
 DEPEND="${RDEPEND}"
 BDEPEND="virtual/pkgconfig"
 
@@ -49,13 +55,14 @@ multilib_src_configure() {
                $(use_enable test)
                $(multilib_native_use_enable hcitop)
                $(multilib_native_use_enable ldac)
+               $(multilib_native_use_enable upower)
        )
        ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
 }
 
 multilib_src_install_all() {
        default
-       find "${ED}" -name "*.la" -delete || die
+       find "${ED}" -type f -name "*.la" -delete || die
 
        newinitd "${FILESDIR}"/bluealsa-init.d bluealsa
        newconfd "${FILESDIR}"/bluealsa-conf.d-2 bluealsa