Gentoo Archives: gentoo-commits

From: "Manuel Rüger" <mrueg@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-fs/minio/
Date: Fri, 23 Jun 2017 17:58:30
Message-Id: 1498240674.97ed822298b5e621f0e53ef5d9abe76d89e95cae.mrueg@gentoo
1 commit: 97ed822298b5e621f0e53ef5d9abe76d89e95cae
2 Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jun 23 17:57:26 2017 +0000
4 Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
5 CommitDate: Fri Jun 23 17:57:54 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=97ed8222
7
8 net-fs/minio: Initial version
9
10 Package-Manager: Portage-2.3.6, Repoman-2.3.2
11
12 net-fs/minio/Manifest | 1 +
13 net-fs/minio/metadata.xml | 8 ++++++
14 net-fs/minio/minio-0_pre20170613.ebuild | 44 +++++++++++++++++++++++++++++++++
15 3 files changed, 53 insertions(+)
16
17 diff --git a/net-fs/minio/Manifest b/net-fs/minio/Manifest
18 new file mode 100644
19 index 00000000000..8f29fbb2c9a
20 --- /dev/null
21 +++ b/net-fs/minio/Manifest
22 @@ -0,0 +1 @@
23 +DIST minio-0_pre20170613.tar.gz 5037377 SHA256 a44ee8c0933e55c1c561d4ed154564af1d45571a2cd0b00b0788b59d9475c402 SHA512 3844ce71dc5b7736e9a1ecdc8771b863879b195f22546e74e5c29a8100c3102bced971f138f19fd7788d2cc6cf6c766f3b9727af8770ca59cc4d621e92dd22a7 WHIRLPOOL cf8809d03530468e5bff26e6afc3f031d78f979dd02f254d9f50faf515e94d87de2f45a39b9dace65f28928698a12f94891c9c0ef6d51b3e18bd0de41f06ef7f
24
25 diff --git a/net-fs/minio/metadata.xml b/net-fs/minio/metadata.xml
26 new file mode 100644
27 index 00000000000..97df2a00971
28 --- /dev/null
29 +++ b/net-fs/minio/metadata.xml
30 @@ -0,0 +1,8 @@
31 +<?xml version="1.0" encoding="UTF-8"?>
32 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
33 +<pkgmetadata>
34 + <maintainer type="person">
35 + <email>mrueg@g.o</email>
36 + <name>Manuel Rüger</name>
37 + </maintainer>
38 +</pkgmetadata>
39
40 diff --git a/net-fs/minio/minio-0_pre20170613.ebuild b/net-fs/minio/minio-0_pre20170613.ebuild
41 new file mode 100644
42 index 00000000000..18e6eb2062e
43 --- /dev/null
44 +++ b/net-fs/minio/minio-0_pre20170613.ebuild
45 @@ -0,0 +1,44 @@
46 +# Copyright 1999-2017 Gentoo Foundation
47 +# Distributed under the terms of the GNU General Public License v2
48 +
49 +EAPI=6
50 +inherit golang-build golang-vcs-snapshot
51 +
52 +EGO_PN="github.com/minio/minio"
53 +VERSION="2017-06-13T19-01-01Z"
54 +EGIT_COMMIT="b9f622824ac17d3e0577d8a9b81a707666cc8cf1"
55 +ARCHIVE_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
56 +KEYWORDS="~amd64"
57 +
58 +DESCRIPTION="An Amazon S3 compatible object storage server"
59 +HOMEPAGE="https://github.com/minio/minio"
60 +SRC_URI="${ARCHIVE_URI}"
61 +LICENSE="Apache-2.0"
62 +SLOT="0"
63 +IUSE=""
64 +
65 +RESTRICT="test"
66 +
67 +src_prepare() {
68 + default
69 + sed -i -e "s/time.Now().UTC().Format(time.RFC3339)/\"${VERSION}\"/"\
70 + -e "s/-s //"\
71 + -e "/time/d"\
72 + -e "s/+ commitID()/+ \"${EGIT_COMMIT}\"/"\
73 + src/${EGO_PN}/buildscripts/gen-ldflags.go || die
74 +}
75 +
76 +src_compile() {
77 + pushd src/${EGO_PN} || die
78 + MINIO_RELEASE="${VERSION}"
79 + go run buildscripts/gen-ldflags.go
80 + GOPATH="${S}" go build --ldflags "$(go run buildscripts/gen-ldflags.go)" -o ${PN} || die
81 + popd || die
82 +}
83 +
84 +src_install() {
85 + pushd src/${EGO_PN} || die
86 + dodoc -r README.md CONTRIBUTING.md MAINTAINERS.md docs
87 + dobin minio
88 + popd || die
89 +}