Diff flannel-0.20.0 with a flannel-0.26.3

/usr/portage/app-containers/flannel/flannel-0.26.3.ebuild 2025-02-03 17:39:32.282664971 +0300
1
# Copyright 1999-2022 Gentoo Authors
1
# Copyright 1999-2025 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4
EAPI=7
4
EAPI=8
5 5
inherit go-module systemd tmpfiles
6 6

  
7 7
KEYWORDS="~amd64 ~arm64"
8 8
DESCRIPTION="An etcd backed network fabric for containers"
9 9
HOMEPAGE="https://github.com/flannel-io/flannel"
10
SRC_URI="https://github.com/flannel-io/flannel/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
10
SRC_URI="https://github.com/flannel-io/flannel/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
11
	https://dev.gentoo.org/~zmedico/dist/${P}-deps.tar.xz"
11 12

  
12
LICENSE="Apache-2.0 BSD ISC LGPL-3 MIT"
13
LICENSE="Apache-2.0"
14
LICENSE+=" BSD ISC LGPL-3 MIT"
13 15
SLOT="0"
14 16
IUSE="hardened"
15 17

  
......
18 20
src_prepare() {
19 21
	default
20 22
	sed -e "s:^var Version =.*:var Version = \"${PV}\":" \
21
		-i "${S}/version/version.go" || die
23
		-i "${S}/pkg/version/version.go" || die
22 24
}
23 25

  
24 26
src_compile() {
25 27
	CGO_LDFLAGS="$(usex hardened '-fno-PIC ' '')"\
26
	go build -o dist/flanneld -ldflags "
28
	ego build -o dist/flanneld -ldflags "
27 29
		-X github.com/flannel-io/flannel/version.Version=v${PV}
28 30
		-extldflags \"-static\"" . || die
29 31
}
30 32

  
31 33
src_test() {
32 34
	GOPATH="${WORKDIR}/${P}" \
33
		go test -v -work -x "${EGO_PN}" || die
35
		ego test -v -work -x "${EGO_PN}" || die
34 36
}
35 37

  
36 38
src_install() {
Thank you!