blob: f11556202d24194b494a71ac798313227765b792 (
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
|
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
PYTHON_COMPAT=( python3_{5,6} )
inherit gnome2-utils meson python-r1 virtualx xdg-utils
DESCRIPTION="Two-factor authentication code generator for GNOME"
HOMEPAGE="https://github.com/bilelmoussaoui/Authenticator"
if [[ ${PV} == *9999 ]]; then
inherit git-r3
SRC_URI=""
EGIT_REPO_URI="${HOMEPAGE}"
else
SRC_URI="https://github.com/bilelmoussaoui/Authenticator/archive/${PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/Authenticator-${PV}"
KEYWORDS="~amd64 ~x86"
fi
LICENSE="GPL-2+"
SLOT="0"
DEPEND="
app-crypt/libsecret
dev-python/pillow[${PYTHON_USEDEP}]
dev-python/pyotp[${PYTHON_USEDEP}]
dev-python/pyzbar[${PYTHON_USEDEP}]
media-gfx/gnome-screenshot
x11-libs/gtk+:3
"
RDEPEND="${DEPEND}"
PATCHES=( "${FILESDIR}/disable-failing-tests.patch" )
pkg_preinst() {
gnome2_icon_savelist
gnome2_schemas_savelist
}
pkg_postinst() {
gnome2_icon_cache_update
gnome2_schemas_update
}
pkg_postrm() {
gnome2_icon_cache_update
gnome2_schemas_update
}
src_test() {
xdg_environment_reset
virtx meson_src_test
}
|