mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-23 16:49:10 -07:00
net-fs/minio: Version bump to 0_pre20170805
Package-Manager: Portage-2.3.8, Repoman-2.3.3
This commit is contained in:
@@ -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
|
||||
|
||||
44
net-fs/minio/minio-0_pre20170805.ebuild
Normal file
44
net-fs/minio/minio-0_pre20170805.ebuild
Normal file
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user