summaryrefslogtreecommitdiff
path: root/net-fs/mc
diff options
context:
space:
mode:
authorMikle Kolyada <zlogene@gentoo.org>2018-09-11 14:29:58 +0300
committerMikle Kolyada <zlogene@gentoo.org>2018-09-11 14:29:58 +0300
commitdae482ee4172b4eb9dfb18d0dc8eb3ab427920e8 (patch)
treef3b3852005ba7d120484f3e9b954e3bf611c1493 /net-fs/mc
parentdev-util/checkbashisms: Bump to version 2.18.4 (diff)
downloadgentoo-dae482ee4172b4eb9dfb18d0dc8eb3ab427920e8.tar.gz
gentoo-dae482ee4172b4eb9dfb18d0dc8eb3ab427920e8.tar.bz2
gentoo-dae482ee4172b4eb9dfb18d0dc8eb3ab427920e8.zip
net-fs/mc: Version bump
Closes: https://bugs.gentoo.org/665632 Package-Manager: Portage-2.3.40, Repoman-2.3.9
Diffstat (limited to 'net-fs/mc')
-rw-r--r--net-fs/mc/Manifest1
-rw-r--r--net-fs/mc/mc-2018.09.10.23.39.12.ebuild49
2 files changed, 50 insertions, 0 deletions
diff --git a/net-fs/mc/Manifest b/net-fs/mc/Manifest
index e53f45a21f48..32d7a0ce4715 100644
--- a/net-fs/mc/Manifest
+++ b/net-fs/mc/Manifest
@@ -1,3 +1,4 @@
DIST mc-0_pre20180209.tar.gz 2770164 BLAKE2B 5ca4b9571df86ab4ac9d3f9a12bf9c99ff081ed30ec05fd7fe28e82798ceca176dabb08d41cca251efafa47f0b1b9884072e4511d3419ee197f9080472156ec2 SHA512 141644aa4b8f99a8747d9dd672df6aa9d3cb21ab35f2b96070d2e914ba912022dff787632bb7bc7ee4c9f04efe35c835e375c35c21e403ef8d68c57d60c24380
DIST mc-0_pre20180325.tar.gz 1367439 BLAKE2B 4c4a78bca067647b16d4ae0f142d78adaaf0f2acc67ff58170d61247b0a6218d924b67e55e092729370592f304290318ebe7aece7fe8572c129c40bf78f8ef83 SHA512 b3e6eee944c662e732f5ddcee23a6be3480c0b862b08d8323683f4c56c891a826a9c49e5d5c1ff84447c9785be0f35c6cef56b504038411045d404838d022bd5
DIST mc-2018.09.06.23.26.56.tar.gz 1724855 BLAKE2B 6a100fd117830db096afd6b44b268e9dbe25185eb7ede56e300c6a4ac34e70a87f9184c77d54d52eda3eaece32bb6664bbeaac834624bab36d8c66e1bc31805d SHA512 2eafb9f9043d4931011c6b50cda5f8e9f794d56095de1f1cb4fb8110e109830ea6067f33b386ae2b1e8a7012f005fc0d0b0580ef70e3673c049ce81522635dc2
+DIST mc-2018.09.10.23.39.12.tar.gz 1725434 BLAKE2B bee959661fae0fccc9af655f84fab3ae4c900978b2fcfaf63287f717221065fc382f41618511c511dbe18f405b3fadfbbb2a66f1ed4a4b1c4db5d40f45b24f07 SHA512 c1183ed1499c4b3e24cf6494bd8f3b35e4d7aa9fb32d85b55d0464ef10eea25e4dd98730363d3b4d36d7cf288d652b7c2cf5738d2d3b82062f1d6f567a511af5
diff --git a/net-fs/mc/mc-2018.09.10.23.39.12.ebuild b/net-fs/mc/mc-2018.09.10.23.39.12.ebuild
new file mode 100644
index 000000000000..053a1e297056
--- /dev/null
+++ b/net-fs/mc/mc-2018.09.10.23.39.12.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2018 Gentoo Foundation
+# 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
+}