summaryrefslogtreecommitdiff
path: root/app-containers/oras/oras-1.3.4.ebuild
blob: e13153f50e7cab4a46c4dab2105f39e79c1dec16 (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
# Copyright 2020-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8
inherit go-module

DESCRIPTION="OCI registry client"
HOMEPAGE="https://github.com/oras-project/oras"
BDEPEND=">=dev-lang/go-1.25.7"
SRC_URI="https://github.com/oras-project/oras/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
SRC_URI+=" https://share.terinstock.com/${P}-vendor.tar.xz"
COMMIT="db9e29505c3059f2b8fde34ae8cae266c5c765e9"

LICENSE="BSD"
LICENSE+=" Apache-2.0 MIT BSD"
SLOT="0"
KEYWORDS="~amd64"

src_compile() {
	ego build -ldflags "-X oras.land/oras/internal/version.BuildMetadata="" \
			-X oras.land/oras/internal/version.GitCommit=${COMMIT} \
			-X oras.land/oras/internal/version.GitTreeState=clean" \
		./cmd/oras
}

src_test() {
	ego test ./...
}

src_install() {
	dobin oras
}