diff options
author | 2025-09-10 01:31:47 +0200 | |
---|---|---|
committer | 2025-09-10 01:31:47 +0200 | |
commit | e03f56efcd0ad0725f5f2f4a2f5af7fba968aac5 (patch) | |
tree | 688b267211f44191b50d880b206023e00f2f82c4 /app-containers/oras/oras-1.3.0.ebuild | |
parent | dev-go/gotestsum: add 1.12.3, drop 1.12.1 (diff) | |
download | ebuilds-e03f56efcd0ad0725f5f2f4a2f5af7fba968aac5.tar.xz |
app-containers/oras: add 1.3.0, drop 1.2.0
Diffstat (limited to 'app-containers/oras/oras-1.3.0.ebuild')
-rw-r--r-- | app-containers/oras/oras-1.3.0.ebuild | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/app-containers/oras/oras-1.3.0.ebuild b/app-containers/oras/oras-1.3.0.ebuild new file mode 100644 index 0000000..1fd37f1 --- /dev/null +++ b/app-containers/oras/oras-1.3.0.ebuild @@ -0,0 +1,32 @@ +# Copyright 2020-2025 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" +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="40530fe4c68e5825b868cd874bd46fc0cdd0f432" + +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 +} |