app-crypt/libu2f-host: Use acct-group/plugdev
authorMichał Górny <mgorny@gentoo.org>
Fri, 13 Sep 2019 12:15:54 +0000 (14:15 +0200)
committerMichał Górny <mgorny@gentoo.org>
Fri, 13 Sep 2019 12:42:36 +0000 (14:42 +0200)
Signed-off-by: Michał Górny <mgorny@gentoo.org>
app-crypt/libu2f-host/libu2f-host-1.1.10.ebuild

index 104c7ec0ef0d9bb6f93d83dd1f355a6855eab894..6797a6c93d08f49434cb4f80e09390cb130c64c9 100644 (file)
@@ -3,7 +3,7 @@
 
 EAPI=7
 
-inherit linux-info udev user
+inherit linux-info udev
 
 DESCRIPTION="Yubico Universal 2nd Factor (U2F) Host C Library"
 HOMEPAGE="https://developers.yubico.com/libu2f-host/"
@@ -16,20 +16,15 @@ IUSE="kernel_linux static-libs systemd"
 
 DEPEND="dev-libs/hidapi
        dev-libs/json-c:="
+# The U2F device node will be owned by group 'plugdev'
+# in non-systemd configurations
 RDEPEND="${DEPEND}
+       !systemd? ( acct-group/plugdev )
        systemd? ( sys-apps/systemd[acl] )"
 BDEPEND="virtual/pkgconfig"
 
 CONFIG_CHECK="~HIDRAW"
 
-pkg_setup() {
-       # The U2F device node will be owned by group 'plugdev'
-       # in non-systemd configurations
-       if ! use systemd; then
-               enewgroup plugdev
-       fi
-}
-
 src_install() {
        default
        if use kernel_linux; then