Diff authenticator-0.2.1 with a authenticator-0.2.4

/usr/portage/sys-auth/authenticator/authenticator-0.2.4.ebuild 2019-01-09 23:09:00.000000000 +0300
1
# Copyright 1999-2018 Gentoo Foundation
1
# Copyright 1999-2018 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4 4
EAPI=6
5 5

  
6
PYTHON_COMPAT=( python3_{5,6} )
7
inherit gnome2-utils meson python-r1 virtualx xdg-utils
6
PYTHON_COMPAT=( python3_{5,6,7} )
7
inherit gnome2-utils meson python-single-r1 virtualx xdg-utils
8 8

  
9 9
DESCRIPTION="Two-factor authentication code generator for GNOME"
10
HOMEPAGE="https://github.com/bilelmoussaoui/Authenticator"
10
HOMEPAGE="https://gitlab.gnome.org/World/Authenticator"
11 11

  
12 12
if [[ ${PV} == *9999 ]]; then
13 13
	inherit git-r3
14 14
	SRC_URI=""
15 15
	EGIT_REPO_URI="${HOMEPAGE}"
16 16
else
17
	SRC_URI="https://github.com/bilelmoussaoui/Authenticator/archive/${PV}.tar.gz -> ${P}.tar.gz"
17
	SRC_URI="https://gitlab.gnome.org/World/Authenticator/-/archive/${PV}/Authenticator-${PV}.tar.gz -> ${P}.tar.gz"
18 18
	S="${WORKDIR}/Authenticator-${PV}"
19 19
	KEYWORDS="~amd64 ~x86"
20 20
fi
21 21

  
22 22
LICENSE="GPL-2+"
23 23
SLOT="0"
24

  
25
DEPEND="
24
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
25
IUSE="test"
26
RDEPEND="
27
	${PYTHON_DEPS}
26 28
	app-crypt/libsecret
27 29
	dev-python/pillow[${PYTHON_USEDEP}]
30
	dev-python/pygobject:3[${PYTHON_USEDEP}]
28 31
	dev-python/pyotp[${PYTHON_USEDEP}]
32
	dev-python/python-gnupg[${PYTHON_USEDEP}]
29 33
	dev-python/pyzbar[${PYTHON_USEDEP}]
30
	media-gfx/gnome-screenshot
34
	media-libs/gd
31 35
	x11-libs/gtk+:3
32 36
"
33
RDEPEND="${DEPEND}"
37
DEPEND="${RDEPEND}
38
	test? ( x11-apps/xhost )"
39
PATCHES=(
40
	"${FILESDIR}/${P}-disable-failing-tests.patch"
41
	"${FILESDIR}/${P}-support-use-of-gdlib-from-system.patch"
42
)
43

  
44
src_prepare() {
45
	default
34 46

  
35
PATCHES=( "${FILESDIR}/disable-failing-tests.patch" )
47
	sed -i -e "1s:#!/usr/bin/env python3:#!${PYTHON}:" "authenticator.py.in" || die "Could not fix shebang."
48

  
49
	rm -r "subprojects/libgd" || die "Could not remove the subproject libgd folder."
50
}
36 51

  
37 52
pkg_preinst() {
38 53
	gnome2_icon_savelist
39 54
	gnome2_schemas_savelist
40 55
}
41 56

  
57
src_test() {
58
	xdg_environment_reset
59
	virtx meson_src_test
60
}
61

  
42 62
pkg_postinst() {
43 63
	gnome2_icon_cache_update
44 64
	gnome2_schemas_update
......
48 68
	gnome2_icon_cache_update
49 69
	gnome2_schemas_update
50 70
}
51

  
52
src_test() {
53
	xdg_environment_reset
54
	virtx meson_src_test
55
}
Thank you!