net-wireless/gnome-bluetooth: Use acct-group/plugdev
authorMichał Górny <mgorny@gentoo.org>
Fri, 13 Sep 2019 12:16:13 +0000 (14:16 +0200)
committerMichał Górny <mgorny@gentoo.org>
Fri, 13 Sep 2019 12:42:48 +0000 (14:42 +0200)
Signed-off-by: Michał Górny <mgorny@gentoo.org>
net-wireless/gnome-bluetooth/gnome-bluetooth-3.28.2.ebuild

index 9cbfd6f8efd06f3f20b8629999acc36cab113a71..67dc1ab5ae0271ffbb3e788b1dcafe10d31cdd34 100644 (file)
@@ -2,7 +2,7 @@
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
-inherit gnome.org gnome2-utils meson udev user xdg
+inherit gnome.org gnome2-utils meson udev xdg
 
 DESCRIPTION="Bluetooth graphical utilities integrated with GNOME"
 HOMEPAGE="https://wiki.gnome.org/Projects/GnomeBluetooth"
@@ -21,6 +21,7 @@ COMMON_DEPEND="
        introspection? ( >=dev-libs/gobject-introspection-0.9.5:= )
 "
 RDEPEND="${COMMON_DEPEND}
+       acct-group/plugdev
        virtual/udev
        >=net-wireless/bluez-5
 "
@@ -33,10 +34,6 @@ DEPEND="${COMMON_DEPEND}
        virtual/pkgconfig
 "
 
-pkg_setup() {
-       enewgroup plugdev
-}
-
 src_configure() {
        local emesonargs=(
                -Dicon_update=false
@@ -53,7 +50,7 @@ src_install() {
 
 pkg_postinst() {
        xdg_pkg_postinst
-       if ! has_version sys-auth/consolekit[acl] && ! has_version sys-apps/systemd[acl] ; then
+       if ! has_version 'sys-auth/consolekit[acl]' && ! has_version 'sys-apps/systemd[acl]' ; then
                elog "Don't forget to add yourself to the plugdev group "
                elog "if you want to be able to control bluetooth transmitter."
        fi