summaryrefslogtreecommitdiff
path: root/app-containers/oras
diff options
context:
space:
mode:
Diffstat (limited to 'app-containers/oras')
-rw-r--r--app-containers/oras/Manifest2
-rw-r--r--app-containers/oras/oras-1.2.0.ebuild32
2 files changed, 34 insertions, 0 deletions
diff --git a/app-containers/oras/Manifest b/app-containers/oras/Manifest
new file mode 100644
index 0000000..40f2954
--- /dev/null
+++ b/app-containers/oras/Manifest
@@ -0,0 +1,2 @@
+DIST oras-1.2.0-vendor.tar.xz 850988 BLAKE2B b553d58f7ed97c852b059375881bc92da7d576ce7279678e3affbcf239f321f015e374b563cd9628e6a477f102d9ce780fd078e03344145e6a35dd7a15a1e897 SHA512 45489df62d09ff06f759fa3a4268ea5e650f2de2a7efa2f6b7398dfe2986ee842e740f21678b23c5520d5fba8ffbe974065a64ec84212920587ed827afc42a07
+DIST oras-1.2.0.tar.gz 186551 BLAKE2B f97f0a9db227665a442f844afcee0196657a6b8c7ae8d6ec1c23619fb50853d1fbfd69e6d64714fcc869c569497655108815b353c95f94269b8b5f841846cf29 SHA512 c90c9619f392e923a5515895dd93ce24d3fec7279109e7ce10ae14b7c86dd8ccc530fe99164d0e1a82d1be1fea1ee3e91f7211f7b9e4dae41fb9d1619c87093d
diff --git a/app-containers/oras/oras-1.2.0.ebuild b/app-containers/oras/oras-1.2.0.ebuild
new file mode 100644
index 0000000..7dc9bf9
--- /dev/null
+++ b/app-containers/oras/oras-1.2.0.ebuild
@@ -0,0 +1,32 @@
+# Copyright 2020-2024 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.22"
+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="dcef719e208a9b226b15bc6512ad729a7dd93270"
+
+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
+}