summaryrefslogtreecommitdiff
path: root/net-fs/mc
diff options
context:
space:
mode:
authorMikle Kolyada <zlogene@gentoo.org>2018-12-20 20:59:11 +0300
committerMikle Kolyada <zlogene@gentoo.org>2018-12-20 20:59:11 +0300
commit374905ccf182ffb1f2e66e37dec3cb18d71c89fc (patch)
treecdbaa910b7d6fef41ac88998f431dcd03d601e7c /net-fs/mc
parentnet-fs/minio: Version bump (diff)
downloadgentoo-374905ccf182ffb1f2e66e37dec3cb18d71c89fc.tar.gz
gentoo-374905ccf182ffb1f2e66e37dec3cb18d71c89fc.tar.bz2
gentoo-374905ccf182ffb1f2e66e37dec3cb18d71c89fc.zip
net-fs/mc: Version bump
Signed-off-by: Mikle Kolyada <zlogene@gentoo.org> Package-Manager: Portage-2.3.51, Repoman-2.3.11
Diffstat (limited to 'net-fs/mc')
-rw-r--r--net-fs/mc/Manifest1
-rw-r--r--net-fs/mc/mc-2018.12.19.22.58.03.ebuild49
2 files changed, 50 insertions, 0 deletions
diff --git a/net-fs/mc/Manifest b/net-fs/mc/Manifest
index 58bac451269e..82af907b1518 100644
--- a/net-fs/mc/Manifest
+++ b/net-fs/mc/Manifest
@@ -6,3 +6,4 @@ DIST mc-2018.11.06.01.12.20.tar.gz 1752016 BLAKE2B 0bd0291cc16915e2da15e79842e78
DIST mc-2018.11.30.01.52.08.tar.gz 1732768 BLAKE2B 22c7329dc808c7d4900e8d7b738cb8ef35c084735e5bba721b9e461da63ac3aab7d1ff7d357cb2298f29c7775aa3f6043712fd02589efe3d03001ee75bbe2b0a SHA512 03fe52563ac3bb60f75c3074f2d628948856cc59bcbadb629af9e7eb7361ed2419ebd3d6024f226676f8c12170ef04c5651e092270ccd35029c9920b6ed5e4a2
DIST mc-2018.12.05.22.59.07.tar.gz 1732742 BLAKE2B 33cf0023d3350d739567cf9d402f3011b83ec74801b3811c249944de2c1d0e67ee43afa1327ed41c6f4e259bb7c55f7839f8f9241dec05d4ffbe5d4406c2d9c7 SHA512 82f9784ce50810390bb991816455373c91d08b5e0630f85754a3abc66cfcfc74665cf8f5877cde10893583f1f9911e458e1caac9bcbddbf7b727e7c9f5f57a71
DIST mc-2018.12.12.19.02.22.tar.gz 1734072 BLAKE2B 23539e764308d91012ec7fde5531066f88cf654f5cb98d9424b7697610df5dd0b0257f3926fbe35370b28c96abcb82c00fe4061e6cfe8adf8a130800a2bb3bef SHA512 c0f65b1e438f72716ff04e755654d021de37852f5eb2d2a16954c6b6e6356b9f9a31ce018b791e71c7deced82acb0be32c2bf4e27b4d6bd3ce9df91ecaf155cf
+DIST mc-2018.12.19.22.58.03.tar.gz 1732775 BLAKE2B 300a514c3eca52ab9b136c1d6a01055593d40f2b207229fa9f32f2fa3b3dce30a28fd4e39dd97ca51ddf920a91d2b45ecf44e843d7de9f271896717391f7242c SHA512 9fe0afbd4bb39d609b6e6e67a159997dd6b9ee43cc741282d05e9a55d4c24aa56258ad2eee08991112aa89002ac8a4c0042505b979d5ac49cb3714fd810da354
diff --git a/net-fs/mc/mc-2018.12.19.22.58.03.ebuild b/net-fs/mc/mc-2018.12.19.22.58.03.ebuild
new file mode 100644
index 000000000000..28574278fd8c
--- /dev/null
+++ b/net-fs/mc/mc-2018.12.19.22.58.03.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2018 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eapi7-ver bash-completion-r1 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() {
+ 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
+ newbashcomp autocomplete/bash_autocomplete ${PN}
+ popd || die
+}