summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Rüger <mrueg@gentoo.org>2017-09-10 14:18:27 +0200
committerManuel Rüger <mrueg@gentoo.org>2017-09-10 14:18:27 +0200
commitcc681f2469938f87f9cf1cc6e08b8275c9cde6cc (patch)
tree48cfa7cccd8f8c26d229feeb3b607bf325f398cc /net-fs/minio
parentsys-cluster/kube-scheduler: Remove old (diff)
downloadgentoo-cc681f2469938f87f9cf1cc6e08b8275c9cde6cc.tar.gz
gentoo-cc681f2469938f87f9cf1cc6e08b8275c9cde6cc.tar.bz2
gentoo-cc681f2469938f87f9cf1cc6e08b8275c9cde6cc.zip
net-fs/minio: Version bump to 0_pre20170805
Package-Manager: Portage-2.3.8, Repoman-2.3.3
Diffstat (limited to 'net-fs/minio')
-rw-r--r--net-fs/minio/Manifest1
-rw-r--r--net-fs/minio/minio-0_pre20170805.ebuild44
2 files changed, 45 insertions, 0 deletions
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
+}