summaryrefslogtreecommitdiff
path: root/net-fs
diff options
context:
space:
mode:
authorMikle Kolyada <zlogene@gentoo.org>2019-03-30 14:57:10 +0300
committerMikle Kolyada <zlogene@gentoo.org>2019-03-30 14:57:10 +0300
commit2e6749ce6fe08344401cbef1308d3dbbb90d3390 (patch)
treeef2b16fbf9d8dc000ab62183af186943c3099e20 /net-fs
parentapp-admin/fluentd: Version bump (v1.4.1) (diff)
downloadgentoo-2e6749ce6fe08344401cbef1308d3dbbb90d3390.tar.gz
gentoo-2e6749ce6fe08344401cbef1308d3dbbb90d3390.tar.bz2
gentoo-2e6749ce6fe08344401cbef1308d3dbbb90d3390.zip
net-fs/mc: Version bump
Signed-off-by: Mikle Kolyada <zlogene@gentoo.org> Package-Manager: Portage-2.3.62, Repoman-2.3.11
Diffstat (limited to 'net-fs')
-rw-r--r--net-fs/mc/Manifest1
-rw-r--r--net-fs/mc/mc-2019.03.28.20.43.56.ebuild50
2 files changed, 51 insertions, 0 deletions
diff --git a/net-fs/mc/Manifest b/net-fs/mc/Manifest
index fae13f5cbde..0b1ed34930d 100644
--- a/net-fs/mc/Manifest
+++ b/net-fs/mc/Manifest
@@ -8,3 +8,4 @@ DIST mc-2019.02.27.18.44.28.tar.gz 3007123 BLAKE2B bbb382f48b5744e0ebef6848d2d41
DIST mc-2019.03.06.18.41.35.tar.gz 3060998 BLAKE2B 8ce267ebeb132aae1ab2681d7fcaeb557f7822cc518153cb001dfbde9d968ab0056ed52b01cdeb44d1112ea2ce233877751f205661cd7d53c6640bea533b131c SHA512 b0b5aa99aaaf8858fcf2884154bc7e293a618e88a13a8ea4c3671c4d187d8628a1ce9b190895db09520a0af452be1125e7cd5158373467f14e7fbe771199c9db
DIST mc-2019.03.09.00.30.31.tar.gz 3061079 BLAKE2B 528c3e8b20af8c77c256dbb25cee0c79691e6575f9739788927bd8b023fb2fe492fb1186f144f3abf1132b3b7375c649940b40c63f59dcbc7436cff9603fdd6d SHA512 28aa906be58afd85a5d5afd8458f5a200270d8bf4caad90484ee6335ce5033c910369a212f47272d6f7bcbb6aaa78fc35f3307da5e8bad3268ba737f8791f4c6
DIST mc-2019.03.20.21.29.03.tar.gz 3068226 BLAKE2B 9659aa05931c28f054d639a8850692a77e81d75c1a86af9e7887fc492bdcb30c0e3582d42495a443945f1c89f691989d8e67d479cef4f1c1ebc82fde63b3f444 SHA512 ce4aad970b6f41bf06423a414ffc3396257c37654b9f7e10d6994e4adbacb0ba5b5fc94412e1d420429333e341ff2f76172d1a6ce978612f09f7ff37547d8d06
+DIST mc-2019.03.28.20.43.56.tar.gz 268089 BLAKE2B dda5b3186360ab917031423e1532a72da8005978b6c1e8f363bd97f1e1575399ee9d319c01aa2e7097e0b57723c8def849838ea99876b476d021bb8a787ca8dd SHA512 160054070e412c420b2c75e0d6f5b7b78dc20f07d695b46fb3141b3428c7a9391205810d9edd720b35b35e4901fcfe801277d4bc6ec7ff2a840ccc776f329bfd
diff --git a/net-fs/mc/mc-2019.03.28.20.43.56.ebuild b/net-fs/mc/mc-2019.03.28.20.43.56.ebuild
new file mode 100644
index 00000000000..927f40765b1
--- /dev/null
+++ b/net-fs/mc/mc-2019.03.28.20.43.56.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eapi7-ver golang-build golang-vcs-snapshot
+
+MY_PV="$(ver_cut 1-3)T$(ver_cut 4-7)Z"
+MY_PV=${MY_PV//./-}
+
+EGIT_COMMIT="c352cadd4be2c6bed64884c78d1e8a8ac6efaf3f"
+
+EGO_PN="github.com/minio/mc"
+
+DESCRIPTION="Minio client provides alternatives for ls, cat on cloud storage and filesystems"
+HOMEPAGE="https://github.com/minio/mc"
+SRC_URI="https://${EGO_PN}/archive/RELEASE.${MY_PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND="!!app-misc/mc"
+
+src_prepare() {
+ default
+ sed -i -e "s/time.Now().UTC().Format(time.RFC3339)/\"${VERSION}\"/"\
+ -e "s/-s //"\
+ -e "/time/d"\
+ -e "s/+ commitID()/+ \"${EGIT_COMMIT}\"/"\
+ src/${EGO_PN}/buildscripts/gen-ldflags.go || die
+
+}
+
+src_compile() {
+ unset XDG_CACHE_HOME
+
+ pushd src/${EGO_PN} || die
+ MC_RELEASE="${MY_PV}"
+ GOPATH="${S}" go build --ldflags "$(go run buildscripts/gen-ldflags.go)" -o ${PN} || die
+ popd || die
+
+}
+
+src_install() {
+ pushd src/${EGO_PN} || die
+ dodoc -r README.md CONTRIBUTING.md docs
+ dobin mc
+ popd || die
+}