blob: 7d59373c03b421526ea772c47bf15d1027e6c2cd (
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
61
62
|
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DOCS_BUILDER="mkdocs"
DOCS_DEPEND="dev-python/mkdocs-material"
DOCS_DIR="doc"
PYTHON_COMPAT=( python3_{10..12} )
DISTUTILS_USE_PEP517=setuptools
inherit distutils-r1 docs xdg-utils
if [[ ${PV} == "9999" ]] ; then
inherit git-r3
EGIT_REPO_URI="https://github.com/eduvpn/python-${PN}.git"
S="${WORKDIR}/${P}"
else
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/eduvpn.asc
inherit verify-sig
MY_P="python-${P}"
SRC_URI="
https://github.com/eduvpn/python-eduvpn-client/releases/download/${PV}/${MY_P}.tar.xz
verify-sig? ( https://github.com/eduvpn/python-eduvpn-client/releases/download/${PV}/${MY_P}.tar.xz.asc )
"
KEYWORDS="amd64 x86"
S="${WORKDIR}/${MY_P}"
fi
DESCRIPTION="Linux client and Python client API for eduVPN"
HOMEPAGE="https://www.eduvpn.org/"
LICENSE="GPL-3+"
SLOT="0"
# Test suite involves adding NetworkManager configuration entries,
# disable for now.
RESTRICT="test"
RDEPEND="
dev-python/requests[${PYTHON_USEDEP}]
dev-python/pygobject:3[${PYTHON_USEDEP}]
net-misc/networkmanager
>=net-vpn/eduvpn-common-1.2.0[${PYTHON_USEDEP}]
"
if [[ ${PV} != *9999* ]] ; then
BDEPEND="verify-sig? ( sec-keys/openpgp-keys-eduvpn )"
fi
PATCHES=(
"${FILESDIR}/${PN}-desktop.patch"
)
pkg_postinst() {
xdg_icon_cache_update
}
pkg_postrm() {
xdg_icon_cache_update
}
|