# Copyright 2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=9 inherit go-module DESCRIPTION="GitOps continuous delivery tool for Kubernetes" HOMEPAGE="https://argoproj.github.io/argo-cd/" # deps tarball; regenerate with: # GOMODCACHE="${PWD}"/go-mod go mod download -modcacherw # XZ_OPT='-T0 -9' tar -acf ${P}-deps.tar.xz go-mod SRC_URI="https://github.com/argoproj/argo-cd/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" SRC_URI+=" https://github.com/SonicFrog/overlay/releases/download/argocd-${PV}/${P}-deps.tar.xz" S="${WORKDIR}/argo-cd-${PV}" LICENSE="Apache-2.0 BSD BSD-2 MIT ISC MPL-2.0" SLOT="0" KEYWORDS="~amd64" BDEPEND=">=dev-lang/go-1.26.0:=" src_compile() { ego build \ -ldflags " -X github.com/argoproj/argo-cd/v3/common.version=${PV} -X github.com/argoproj/argo-cd/v3/common.gitTag=v${PV} -X github.com/argoproj/argo-cd/v3/common.gitCommit=564b94973b284b8de98da7cee6eeade2cb941e46 -X github.com/argoproj/argo-cd/v3/common.gitTreeState=clean -X github.com/argoproj/argo-cd/v3/common.buildDate=2026-08-06T00:00:00Z -X github.com/argoproj/argo-cd/v3/common.kubectlVersion=v0.34.0 " \ -o argocd \ ./cmd } src_install() { dobin argocd }