Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 686014
Collapse All | Expand All

(-)file_not_specified_in_diff (-12 / +24 lines)
Line  Link Here
0
-- sys-auth/ykpers/ykpers-1.19.0.ebuild
0
++ sys-auth/ykpers/ykpers-1.19.3.ebuild
Lines 1-7 Link Here
1
# Copyright 1999-2019 Gentoo Authors
1
# Copyright 1999-2019 Gentoo Authors
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
3
4
EAPI=6
4
EAPI=7
5
5
6
inherit autotools udev
6
inherit autotools udev
7
7
Lines 9-28 Link Here
9
SRC_URI="https://github.com/Yubico/yubikey-personalization/archive/v${PV}.tar.gz -> ${P}.tar.gz"
9
SRC_URI="https://github.com/Yubico/yubikey-personalization/archive/v${PV}.tar.gz -> ${P}.tar.gz"
10
HOMEPAGE="https://github.com/Yubico/yubikey-personalization"
10
HOMEPAGE="https://github.com/Yubico/yubikey-personalization"
11
11
12
KEYWORDS="amd64 x86"
12
KEYWORDS="~amd64 ~x86"
13
SLOT="0"
13
SLOT="0"
14
LICENSE="BSD-2"
14
LICENSE="BSD-2"
15
IUSE="static-libs consolekit"
15
IUSE="consolekit elogind static-libs"
16
16
17
RDEPEND="
17
DEPEND="
18
	dev-libs/json-c:=
18
	dev-libs/json-c:=
19
	>=sys-auth/libyubikey-1.6
19
	>=sys-auth/libyubikey-1.6
20
	virtual/libusb:1"
20
	virtual/libusb:1"
21
DEPEND="${RDEPEND}
21
BDEPEND="
22
	app-text/asciidoc
22
	app-text/asciidoc
23
	virtual/pkgconfig"
23
	virtual/pkgconfig"
24
RDEPEND="${RDEPEND}
24
RDEPEND="${DEPEND}
25
	consolekit? ( sys-auth/consolekit[acl] )"
25
	consolekit? ( sys-auth/consolekit[acl] )
26
	elogind? ( sys-auth/elogind[acl] )
27
"
28
29
REQUIRED_USE="^^ ( consolekit elogind )"
26
30
27
S="${WORKDIR}/yubikey-personalization-${PV}"
31
S="${WORKDIR}/yubikey-personalization-${PV}"
28
32
Lines 31-48 Link Here
31
src_prepare() {
35
src_prepare() {
32
	default
36
	default
33
	eautoreconf
37
	eautoreconf
38
39
	if use elogind ; then
40
		sed '/TEST==/d' -i 70-yubikey.rules || die
41
	fi	
34
}
42
}
35
43
36
src_configure() {
44
src_configure() {
37
	econf \
45
	local myeconfargs=(
38
		--libdir=/usr/$(get_libdir) \
46
		--libdir=/usr/$(get_libdir)
39
		--localstatedir=/var \
47
		--localstatedir=/var
40
		$(use_enable static-libs static)
48
		$(use_enable static-libs static)
49
	)
50
	econf "${myeconfargs[@]}"
41
}
51
}
42
52
43
src_install() {
53
src_install() {
44
	default
54
	default
45
	use consolekit && udev_dorules *.rules
55
	if use consolekit || use elogind ; then
56
		udev_dorules *.rules
57
	fi
46
58
47
	find "${D}" -name '*.la' -delete || die
59
	find "${D}" -name '*.la' -delete || die
48
}
60
}

Return to bug 686014