commit:     61fd529aacca3f9d331b4da8c0e008a78d22de4c
Author:     Mario Haustein <mario.haustein <AT> hrz <DOT> tu-chemnitz <DOT> de>
AuthorDate: Thu Oct  9 18:47:54 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Oct  9 21:38:52 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=61fd529a

net-vpn/eduvpn-common: add 4.0.0

Signed-off-by: Mario Haustein <mario.haustein <AT> hrz.tu-chemnitz.de>
Part-of: https://github.com/gentoo/gentoo/pull/44114
Closes: https://github.com/gentoo/gentoo/pull/44114
Signed-off-by: Sam James <sam <AT> gentoo.org>

 net-vpn/eduvpn-common/Manifest                   |  3 +
 net-vpn/eduvpn-common/eduvpn-common-4.0.0.ebuild | 92 ++++++++++++++++++++++++
 2 files changed, 95 insertions(+)

diff --git a/net-vpn/eduvpn-common/Manifest b/net-vpn/eduvpn-common/Manifest
index d393b648c57b..59c87e636daa 100644
--- a/net-vpn/eduvpn-common/Manifest
+++ b/net-vpn/eduvpn-common/Manifest
@@ -4,3 +4,6 @@ DIST eduvpn-common-2.1.0.tar.xz.asc 228 BLAKE2B 
b0bb3b74b19b9274b4bc08cfa108b693
 DIST eduvpn-common-3.0.0-deps.tar.xz 24897412 BLAKE2B 
0a90e68de111ca7de9930d6cea1f3f4d30f13884a34721c6b4d543704ff8e73a794b375319974092997952d6187c5d518a487d54105e3da43e529562212b00ce
 SHA512 
25fe843784fa0d0d607697266279e524ca45f71d0b804b16d6b6b69aa251b9794bdd6c71b0266ff1a1570fba7615ab75ef7e09b3c14f333cc989bd51c2e06631
 DIST eduvpn-common-3.0.0.tar.xz 1960452 BLAKE2B 
1095d328509c16c301b6a3158c7101093dec52e0fe3c1b1ed9472a3e63d8029283ebe1ca3ff01b78f701aff398ba51f8bdf32a0269d58a34834278a3c829f1ae
 SHA512 
300775798810a5831ad7791dfe23078eac75b2e0879e537e9b1e999ed1e585e5f6e6e1f44b92d0f7c210ab5690a0e0175642ea480b05cc5bf29f39004941c963
 DIST eduvpn-common-3.0.0.tar.xz.asc 228 BLAKE2B 
26720489d26c40650c8f636b654dbb33b514f4bec9e326e3e9f05aa200bdc9345f2628934f1c7d115a335b7082b24fdc5060e0222a3481c59061d2c87c023b1c
 SHA512 
a9792842dd27a92b62298a17429b663b24b3d3062013de5728f7cbe0f44c6dc28e97be6afca92dcbe86d0197277350a4bca28b8b3d4f58c99d125f4950819194
+DIST eduvpn-common-4.0.0-deps.tar.xz 20436036 BLAKE2B 
b525b08e25f17f977781facc05e713963c07646836e5a76ba4119913cba7ec3be94740276a483125b060dfa9d217561f7a2c0cf6dc3861323399f6179f7fbeba
 SHA512 
3b0319fe17caeaed582cff1845fbaa7d7bdbeb19da0dbf9997859766c42927c28b5b4d905b6e4f4c4ff2ab854d60ab48b89b2496d9288f0c3ac0db782217c68d
+DIST eduvpn-common-4.0.0.tar.xz 1044748 BLAKE2B 
16486a0e030ebf75a3339f1711716dcc543603648ae0d174113ad64dfa61de45afd233c5cad124cf87e61f04fc50f631e70668702464834ac186a808400390b4
 SHA512 
f415077fd8404c74a3bb67d57445506cfcb5417e5986b2feb3f9a54a792da639d95c48b85d9bde653e822c2e2842329224b08ad79ad45f76d8f96d4fff056300
+DIST eduvpn-common-4.0.0.tar.xz.asc 228 BLAKE2B 
8a67efb18d07ad2b8dad5d2cdac3adbfc18cbab22aceba41e5bc95428103ef03006bb19de0842aa6c9895939bae58f4c99a1119a32ad16b424ac68278e674167
 SHA512 
c50c7ba4e5ca05365446fe0dc33ba14db283d52a3f7d61fa176e0aac8e54fae438c2c336bb16bf8f126156f362d6685b892544d51537b7e580d2072ff33fd4ac

diff --git a/net-vpn/eduvpn-common/eduvpn-common-4.0.0.ebuild 
b/net-vpn/eduvpn-common/eduvpn-common-4.0.0.ebuild
new file mode 100644
index 000000000000..b652880740b1
--- /dev/null
+++ b/net-vpn/eduvpn-common/eduvpn-common-4.0.0.ebuild
@@ -0,0 +1,92 @@
+# Copyright 2021-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{11..13} )
+
+DISTUTILS_USE_PEP517=setuptools
+DISTUTILS_EXT=1
+inherit distutils-r1 go-module linux-info
+
+DESCRIPTION="Linux client and Python client API for eduVPN"
+HOMEPAGE="https://www.eduvpn.org/";
+
+if [[ ${PV} == "9999" ]] ; then
+       inherit git-r3
+       EGIT_REPO_URI="https://github.com/eduvpn/eduvpn-common.git";
+else
+       # 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
+       inherit verify-sig
+       SRC_URI="
+               
https://codeberg.org/eduVPN/eduvpn-common/releases/download/${PV}/${P}.tar.xz
+               verify-sig? ( 
https://codeberg.org/eduVPN/eduvpn-common/releases/download/${PV}/${P}.tar.xz.asc
 )
+               https://www-user.tu-chemnitz.de/~hamari/eduvpn/${P}-deps.tar.xz
+       "
+       KEYWORDS="amd64 x86"
+fi
+
+LICENSE="GPL-3+"
+SLOT="0"
+IUSE="openvpn"
+RESTRICT="test"
+
+RDEPEND="
+       openvpn? ( net-vpn/openvpn )
+"
+
+if [[ ${PV} != *9999* ]] ; then
+       BDEPEND="verify-sig? ( >=sec-keys/openpgp-keys-eduvpn-20240307 )"
+fi
+
+wrap_python() {
+       local phase=$1
+       shift
+
+       pushd wrappers/python >/dev/null || die
+       distutils-r1_${phase} "$@"
+       popd >/dev/null || die
+}
+
+pkg_pretend() {
+       CONFIG_CHECK="~WIREGUARD"
+       WARNING_WIREGUARD="You must enable WIREGUARD to use wireguard."
+       check_extra_config
+}
+
+src_unpack() {
+       # go dependencies are not signed
+       if use verify-sig; then
+               pushd "${DISTDIR}" > /dev/null || die
+               verify-sig_verify_detached \
+                       ${P}.tar.xz{,.asc}
+               popd > /dev/null || die
+       fi
+       default_src_unpack
+}
+
+src_compile() {
+       default
+
+       # Install shared library into the python directory so the python 
packaging
+       # magic can find it.
+       pushd wrappers/python >/dev/null || die
+       emake install-lib
+       popd >/dev/null || die
+
+       wrap_python ${FUNCNAME}
+}
+
+src_test() {
+       default
+       wrap_python ${FUNCNAME}
+}
+
+src_install() {
+       wrap_python ${FUNCNAME}
+}

Reply via email to