blob: 0cf919d9712ae5dcf4dd68b323ae096f29f01650 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{9..10} )
inherit desktop python-single-r1 qmake-utils xdg
DESCRIPTION="Library and tool for personalization of Yubico's YubiKey NEO"
HOMEPAGE="
https://developers.yubico.com/yubioath-desktop/
https://github.com/Yubico/yubioath-desktop"
SRC_URI="https://github.com/Yubico/yubioath-desktop/archive/${P}.tar.gz"
S="${WORKDIR}/${PN}-${P}"
LICENSE="BSD-2"
SLOT="0"
KEYWORDS="~amd64 ~riscv"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
DEPEND="
${PYTHON_DEPS}
dev-qt/qtconcurrent:5
dev-qt/qtcore:5
dev-qt/qtquickcontrols2:5
dev-qt/qtdeclarative:5
dev-qt/qtmultimedia:5
dev-qt/qtwidgets:5
dev-qt/qtgui:5
dev-qt/qtnetwork:5
x11-libs/libdrm"
RDEPEND="${DEPEND}
$(python_gen_cond_dep '
>=app-crypt/yubikey-manager-4.0.0[${PYTHON_USEDEP}]
<app-crypt/yubikey-manager-5.0.0[${PYTHON_USEDEP}]
')
dev-python/pyotherside[${PYTHON_SINGLE_USEDEP}]"
PATCHES=(
"${FILESDIR}"/${P}-bin-installdir.patch
"${FILESDIR}"/${P}-qtquickcontrols1.patch
)
src_prepare() {
default
python_fix_shebang "${S}"
}
src_configure() {
eqmake5 yubioath-desktop.pro
}
src_install() {
emake INSTALL_ROOT="${D}" install
domenu resources/com.yubico.yubioath.desktop
doicon resources/icons/com.yubico.yubioath.png
doicon -s scalable resources/icons/com.yubico.yubioath.svg
}
|