diff options
author | Lars Wendler <polynomial-c@gentoo.org> | 2019-05-16 10:31:15 +0200 |
---|---|---|
committer | Lars Wendler <polynomial-c@gentoo.org> | 2019-05-16 10:32:29 +0200 |
commit | 82a86ba7b8a7e4395cb979869b11c85dcfdcc01c (patch) | |
tree | 0258c772ca7aad1d66b944b923d6fd00b1b66490 /sys-auth/ykpers | |
parent | kde-frameworks/kfilemetadata: restrict broken tests (diff) | |
download | gentoo-82a86ba7b8a7e4395cb979869b11c85dcfdcc01c.tar.gz gentoo-82a86ba7b8a7e4395cb979869b11c85dcfdcc01c.tar.bz2 gentoo-82a86ba7b8a7e4395cb979869b11c85dcfdcc01c.zip |
sys-auth/ykpers: Added elogind USE flag.
Bumped ebuild to EAPI-7
Closes: https://bugs.gentoo.org/686014
Package-Manager: Portage-2.3.66, Repoman-2.3.12
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
Diffstat (limited to 'sys-auth/ykpers')
-rw-r--r-- | sys-auth/ykpers/ykpers-1.19.3.ebuild | 32 |
1 files changed, 22 insertions, 10 deletions
diff --git a/sys-auth/ykpers/ykpers-1.19.3.ebuild b/sys-auth/ykpers/ykpers-1.19.3.ebuild index 1996fb57cb46..a014641d7eb5 100644 --- a/sys-auth/ykpers/ykpers-1.19.3.ebuild +++ b/sys-auth/ykpers/ykpers-1.19.3.ebuild @@ -1,7 +1,7 @@ # Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=6 +EAPI=7 inherit autotools udev @@ -12,17 +12,21 @@ HOMEPAGE="https://github.com/Yubico/yubikey-personalization" KEYWORDS="~amd64 ~x86" SLOT="0" LICENSE="BSD-2" -IUSE="static-libs consolekit" +IUSE="consolekit elogind static-libs" -RDEPEND=" +DEPEND=" dev-libs/json-c:= >=sys-auth/libyubikey-1.6 virtual/libusb:1" -DEPEND="${RDEPEND} +BDEPEND=" app-text/asciidoc virtual/pkgconfig" -RDEPEND="${RDEPEND} - consolekit? ( sys-auth/consolekit[acl] )" +RDEPEND="${DEPEND} + consolekit? ( sys-auth/consolekit[acl] ) + elogind? ( sys-auth/elogind[acl] ) +" + +REQUIRED_USE="^^ ( consolekit elogind )" S="${WORKDIR}/yubikey-personalization-${PV}" @@ -31,18 +35,26 @@ DOCS=( doc/. AUTHORS NEWS README ) src_prepare() { default eautoreconf + + if use elogind ; then + sed '/TEST==/d' -i 70-yubikey.rules || die + fi } src_configure() { - econf \ - --libdir=/usr/$(get_libdir) \ - --localstatedir=/var \ + local myeconfargs=( + --libdir=/usr/$(get_libdir) + --localstatedir=/var $(use_enable static-libs static) + ) + econf "${myeconfargs[@]}" } src_install() { default - use consolekit && udev_dorules *.rules + if use consolekit || use elogind ; then + udev_dorules *.rules + fi find "${D}" -name '*.la' -delete || die } |