mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-07-22 23:19:14 +02:00
disable for now due to failure with network-sandbox Closes: https://bugs.gentoo.org/927667 Closes: https://github.com/gentoo/gentoo/pull/41074 Signed-off-by: jinqiang zhang <peeweep@0x0.ee> Signed-off-by: Yixun Lan <dlan@gentoo.org>
39 lines
1.1 KiB
Bash
39 lines
1.1 KiB
Bash
# Copyright 1999-2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit go-module
|
|
|
|
MY_PV="$(ver_cut 1-3)T$(ver_cut 4-7)Z"
|
|
MY_PV=${MY_PV//./-}
|
|
YEAR="$(ver_cut 1)"
|
|
COMMIT_ID=c1d5d4cbb4caf05afef3ea06a91a56bd778336de
|
|
|
|
DESCRIPTION="Minio client provides alternatives for ls, cat on cloud storage and filesystems"
|
|
HOMEPAGE="https://github.com/minio/mc"
|
|
SRC_URI="https://github.com/minio/mc/archive/RELEASE.${MY_PV}.tar.gz -> ${P}.tar.gz"
|
|
SRC_URI+=" https://github.com/gentoo-zh/gentoo-deps/releases/download/${P}/${P}-vendor.tar.xz"
|
|
|
|
S="${WORKDIR}/${PN}-RELEASE.${MY_PV}"
|
|
LICENSE="Apache-2.0 BSD MIT MPL-2.0"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64"
|
|
RESTRICT="test" # bug #927667, fails with network-sandbox
|
|
|
|
RDEPEND="!!app-misc/mc"
|
|
|
|
src_compile() {
|
|
# go run buildscripts/gen-ldflags.go
|
|
local ldflags="-s -w \
|
|
-X github.com/minio/mc/cmd.Version=${MY_PV} \
|
|
-X github.com/minio/mc/cmd.CopyrightYear=${YEAR} \
|
|
-X github.com/minio/mc/cmd.ReleaseTag=RELEASE.${MY_PV} \
|
|
-X github.com/minio/mc/cmd.CommitID=${COMMIT_ID}"
|
|
ego build -trimpath --ldflags "${ldflags}"
|
|
}
|
|
|
|
src_install() {
|
|
dobin mc
|
|
dodoc README.md CONTRIBUTING.md
|
|
}
|