summaryrefslogtreecommitdiff
path: root/net-fs/mc
diff options
context:
space:
mode:
authorMikle Kolyada <zlogene@gentoo.org>2018-11-30 16:50:42 +0300
committerMikle Kolyada <zlogene@gentoo.org>2018-11-30 16:51:19 +0300
commit0edf0333290a02dd93e8828f5b35fff7ffb71bba (patch)
tree045ce0921cb311c06992a587a97be65d61f02cd2 /net-fs/mc
parentx11-drivers/nvidia-drivers: Fix SRC_URI in various places (diff)
downloadgentoo-0edf0333290a02dd93e8828f5b35fff7ffb71bba.tar.gz
gentoo-0edf0333290a02dd93e8828f5b35fff7ffb71bba.tar.bz2
gentoo-0edf0333290a02dd93e8828f5b35fff7ffb71bba.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.11.30.01.52.08.ebuild49
2 files changed, 50 insertions, 0 deletions
diff --git a/net-fs/mc/Manifest b/net-fs/mc/Manifest
index 53b9fe7fd422..db5314a5ce10 100644
--- a/net-fs/mc/Manifest
+++ b/net-fs/mc/Manifest
@@ -3,3 +3,4 @@ DIST mc-2018.09.10.23.39.12.tar.gz 1725434 BLAKE2B bee959661fae0fccc9af655f84fab
DIST mc-2018.09.26.00.42.43.tar.gz 1727396 BLAKE2B 6f446229619e9116d9e8f62fc21d82aa5325b1d10d3786232741cf072fab18e5bccf14b1d49118532db5f6b0b4c2a792f15c28979af058cc75355e92fde88132 SHA512 e6be63004c0600b6e85ebd09033ebf3b7237f9829114b8b4e86c418015a94f465c26287221ddcf6371d5d414d2c037dc21a6136e1f6c8f1c27e363e0c67a1854
DIST mc-2018.10.16.23.25.25.tar.gz 1749339 BLAKE2B b712b5111582b513c10ab1a39a9d7d5f0100fb1f6beb5e899f5e838ecd4428de4f3eda420e7c288e93b44a384c86fe65255ae086cb5adb99ffe19f8f364c09df SHA512 6d44a17fb469b2770ed9b278dcb72c9a8f3e738a4dfa4b9af888469b4228401639b74fb4891dc504fabb3def7319c367ffefb16897f6ea1d39af71c408c86af5
DIST mc-2018.11.06.01.12.20.tar.gz 1752016 BLAKE2B 0bd0291cc16915e2da15e79842e78fb1286c5c952ecf0dfb68ae8ff6fcf9309982685d1bfdd44b53475d94953d31ab91a3e81b0031b51aafe387a6cbd2ef5683 SHA512 52ff2747e810ac5a35c764af5548a469fa94ab4e3e7d1e92be0c5d505e212bd8a5fc849c0c651d323eacb6c14cf5bdaf4f070c70d09e9dd876d4a1997e89e1b1
+DIST mc-2018.11.30.01.52.08.tar.gz 1732768 BLAKE2B 22c7329dc808c7d4900e8d7b738cb8ef35c084735e5bba721b9e461da63ac3aab7d1ff7d357cb2298f29c7775aa3f6043712fd02589efe3d03001ee75bbe2b0a SHA512 03fe52563ac3bb60f75c3074f2d628948856cc59bcbadb629af9e7eb7361ed2419ebd3d6024f226676f8c12170ef04c5651e092270ccd35029c9920b6ed5e4a2
diff --git a/net-fs/mc/mc-2018.11.30.01.52.08.ebuild b/net-fs/mc/mc-2018.11.30.01.52.08.ebuild
new file mode 100644
index 000000000000..28574278fd8c
--- /dev/null
+++ b/net-fs/mc/mc-2018.11.30.01.52.08.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
+}