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 67B541396D0 for ; Sun, 10 Sep 2017 12:18:44 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8BAB41FC05D; Sun, 10 Sep 2017 12:18:43 +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 59F241FC05D for ; Sun, 10 Sep 2017 12:18:43 +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 44B6B3417DF for ; Sun, 10 Sep 2017 12:18:42 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C4F6B8F50 for ; Sun, 10 Sep 2017 12:18:39 +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: <1505045907.cc681f2469938f87f9cf1cc6e08b8275c9cde6cc.mrueg@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-fs/minio/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-fs/minio/Manifest net-fs/minio/minio-0_pre20170805.ebuild X-VCS-Directories: net-fs/minio/ X-VCS-Committer: mrueg X-VCS-Committer-Name: Manuel Rüger X-VCS-Revision: cc681f2469938f87f9cf1cc6e08b8275c9cde6cc X-VCS-Branch: master Date: Sun, 10 Sep 2017 12:18:39 +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: 1f8bc51c-3fcc-466f-836d-50c7bc7e894e X-Archives-Hash: f21b80b35cbfc09ebe69adb5b553ed26 commit: cc681f2469938f87f9cf1cc6e08b8275c9cde6cc Author: Manuel Rüger gentoo org> AuthorDate: Sun Sep 10 12:18:27 2017 +0000 Commit: Manuel Rüger gentoo org> CommitDate: Sun Sep 10 12:18:27 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cc681f24 net-fs/minio: Version bump to 0_pre20170805 Package-Manager: Portage-2.3.8, Repoman-2.3.3 net-fs/minio/Manifest | 1 + net-fs/minio/minio-0_pre20170805.ebuild | 44 +++++++++++++++++++++++++++++++++ 2 files changed, 45 insertions(+) diff --git a/net-fs/minio/Manifest b/net-fs/minio/Manifest index 8f29fbb2c9a..c2ec0f5a034 100644 --- a/net-fs/minio/Manifest +++ b/net-fs/minio/Manifest @@ -1 +1,2 @@ DIST minio-0_pre20170613.tar.gz 5037377 SHA256 a44ee8c0933e55c1c561d4ed154564af1d45571a2cd0b00b0788b59d9475c402 SHA512 3844ce71dc5b7736e9a1ecdc8771b863879b195f22546e74e5c29a8100c3102bced971f138f19fd7788d2cc6cf6c766f3b9727af8770ca59cc4d621e92dd22a7 WHIRLPOOL cf8809d03530468e5bff26e6afc3f031d78f979dd02f254d9f50faf515e94d87de2f45a39b9dace65f28928698a12f94891c9c0ef6d51b3e18bd0de41f06ef7f +DIST minio-0_pre20170805.tar.gz 6891365 SHA256 78d4cf72bca7e9c1e2b6c8afa2eec13139c3d246672737ad4b07be16f3f4d8a1 SHA512 318bbebf7cddc956e2ac5bb39e3316bb43b71c3a57bfe00fa868fe3ac94f7eabdcb8c62b1460105051b89014e6a2bb6eee7e6a5da7b17e512c9af8437aec75fa WHIRLPOOL 5f09f7f2e177dca8abf8cd61b556f3b5ca252ec365dfffc6f933d5967b423b2d5d023b8aece2f3c00f4388320b888676eab27def23e9f623f2ee959a9be06e27 diff --git a/net-fs/minio/minio-0_pre20170805.ebuild b/net-fs/minio/minio-0_pre20170805.ebuild new file mode 100644 index 00000000000..c3d427448b6 --- /dev/null +++ b/net-fs/minio/minio-0_pre20170805.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit golang-build golang-vcs-snapshot + +EGO_PN="github.com/minio/minio" +VERSION="2017-08-05T00-00-53Z" +EGIT_COMMIT="aeafe668d8b6d25caac671d59e2b0f0473ce35d0" +ARCHIVE_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz" +KEYWORDS="~amd64" + +DESCRIPTION="An Amazon S3 compatible object storage server" +HOMEPAGE="https://github.com/minio/minio" +SRC_URI="${ARCHIVE_URI}" +LICENSE="Apache-2.0" +SLOT="0" +IUSE="" + +RESTRICT="test" + +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 + MINIO_RELEASE="${VERSION}" + go run buildscripts/gen-ldflags.go + 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 MAINTAINERS.md docs + dobin minio + popd || die +}