From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id E3E581382C5 for ; Tue, 27 Feb 2018 12:56:36 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 216BAE082B; Tue, 27 Feb 2018 12:56:36 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E63ABE082B for ; Tue, 27 Feb 2018 12:56:35 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0A093335C0A for ; Tue, 27 Feb 2018 12:56:35 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 44A571D8 for ; Tue, 27 Feb 2018 12:56:33 +0000 (UTC) From: "Manuel Rüger" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Manuel Rüger" Message-ID: <1519736167.c5e06b8f6c2db2b8f3ced2cf854a5a7725c24de2.mrueg@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-fs/mc/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-fs/mc/Manifest net-fs/mc/mc-0_pre20180209.ebuild X-VCS-Directories: net-fs/mc/ X-VCS-Committer: mrueg X-VCS-Committer-Name: Manuel Rüger X-VCS-Revision: c5e06b8f6c2db2b8f3ced2cf854a5a7725c24de2 X-VCS-Branch: master Date: Tue, 27 Feb 2018 12:56:33 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: f32d81a9-18ac-4b83-8c85-209d44b04e60 X-Archives-Hash: 9bb72fdc2b615df1e02f93dafe80a55b commit: c5e06b8f6c2db2b8f3ced2cf854a5a7725c24de2 Author: Manuel Rüger gentoo org> AuthorDate: Tue Feb 27 12:56:07 2018 +0000 Commit: Manuel Rüger gentoo org> CommitDate: Tue Feb 27 12:56:07 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c5e06b8f net-fs/mc: Version bump to 20180209 Package-Manager: Portage-2.3.24, Repoman-2.3.6 net-fs/mc/Manifest | 1 + net-fs/mc/mc-0_pre20180209.ebuild | 46 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+) diff --git a/net-fs/mc/Manifest b/net-fs/mc/Manifest index e275937ad7a..bbcc6c96052 100644 --- a/net-fs/mc/Manifest +++ b/net-fs/mc/Manifest @@ -1 +1,2 @@ DIST mc-0_pre20171014.tar.gz 1103870 BLAKE2B 4d2131c629e9eb61db29c4809bb8f5efe385ee4527b2759d093d51926583faaf5aaa06d1614abbd0725a6e567f2ee0ec5f4d066725cb4dc13c1082c830effdae SHA512 7d33b70ca1be9a0f1e1c6706c22bf92fa0e13292f9be07b8fecf108f34cf13f272ebcd4bb04495d6e769f4cce5411c43d3dd1732f43a5dd2c8eae608f9a89310 +DIST mc-0_pre20180209.tar.gz 2770164 BLAKE2B 5ca4b9571df86ab4ac9d3f9a12bf9c99ff081ed30ec05fd7fe28e82798ceca176dabb08d41cca251efafa47f0b1b9884072e4511d3419ee197f9080472156ec2 SHA512 141644aa4b8f99a8747d9dd672df6aa9d3cb21ab35f2b96070d2e914ba912022dff787632bb7bc7ee4c9f04efe35c835e375c35c21e403ef8d68c57d60c24380 diff --git a/net-fs/mc/mc-0_pre20180209.ebuild b/net-fs/mc/mc-0_pre20180209.ebuild new file mode 100644 index 00000000000..ae5ff99a53c --- /dev/null +++ b/net-fs/mc/mc-0_pre20180209.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit golang-build golang-vcs-snapshot bash-completion-r1 + +EGO_PN="github.com/minio/mc" +VERSION="2018-02-09T23-07-36Z" +EGIT_COMMIT="3987f1405aa7a0faaff019cc3b55da4ded9ebbe5" +ARCHIVE_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz" +KEYWORDS="~amd64" + +DESCRIPTION="Minio client provides alternatives for ls, cat on cloud storage and filesystems" +HOMEPAGE="https://github.com/minio/mc" +SRC_URI="${ARCHIVE_URI}" +LICENSE="Apache-2.0" +SLOT="0" +IUSE="" + +RESTRICT="test" + +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="${VERSION}" + 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 +}