You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
68 lines
1.6 KiB
68 lines
1.6 KiB
3 months ago
|
# 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
|
||
2 months ago
|
# Development Versions use a different release signing key
|
||
|
if [[ $(ver_cut 2) == 99 || $(ver_cut 3) == 99 ]] ; then
|
||
|
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/eduvpn-dev.asc
|
||
|
else
|
||
|
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/eduvpn.asc
|
||
|
fi
|
||
3 months ago
|
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 )
|
||
|
"
|
||
2 months ago
|
KEYWORDS="~amd64 ~x86"
|
||
3 months ago
|
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}]
|
||
2 months ago
|
net-misc/networkmanager
|
||
|
>=net-vpn/eduvpn-common-1.99.0[${PYTHON_USEDEP}]
|
||
3 months ago
|
"
|
||
|
|
||
|
if [[ ${PV} != *9999* ]] ; then
|
||
2 months ago
|
BDEPEND="verify-sig? ( >=sec-keys/openpgp-keys-eduvpn-20240307 )"
|
||
3 months ago
|
fi
|
||
|
|
||
|
PATCHES=(
|
||
|
"${FILESDIR}/${PN}-desktop.patch"
|
||
|
)
|
||
|
|
||
|
pkg_postinst() {
|
||
|
xdg_icon_cache_update
|
||
|
}
|
||
|
|
||
|
pkg_postrm() {
|
||
|
xdg_icon_cache_update
|
||
|
}
|