mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-05 12:38:09 -07:00
net-fs/mc: Remove old
Package-Manager: Portage-2.3.27, Repoman-2.3.9
This commit is contained in:
@@ -1,3 +1,2 @@
|
||||
DIST mc-0_pre20171014.tar.gz 1103870 BLAKE2B 4d2131c629e9eb61db29c4809bb8f5efe385ee4527b2759d093d51926583faaf5aaa06d1614abbd0725a6e567f2ee0ec5f4d066725cb4dc13c1082c830effdae SHA512 7d33b70ca1be9a0f1e1c6706c22bf92fa0e13292f9be07b8fecf108f34cf13f272ebcd4bb04495d6e769f4cce5411c43d3dd1732f43a5dd2c8eae608f9a89310
|
||||
DIST mc-0_pre20180209.tar.gz 2770164 BLAKE2B 5ca4b9571df86ab4ac9d3f9a12bf9c99ff081ed30ec05fd7fe28e82798ceca176dabb08d41cca251efafa47f0b1b9884072e4511d3419ee197f9080472156ec2 SHA512 141644aa4b8f99a8747d9dd672df6aa9d3cb21ab35f2b96070d2e914ba912022dff787632bb7bc7ee4c9f04efe35c835e375c35c21e403ef8d68c57d60c24380
|
||||
DIST mc-0_pre20180325.tar.gz 1367439 BLAKE2B 4c4a78bca067647b16d4ae0f142d78adaaf0f2acc67ff58170d61247b0a6218d924b67e55e092729370592f304290318ebe7aece7fe8572c129c40bf78f8ef83 SHA512 b3e6eee944c662e732f5ddcee23a6be3480c0b862b08d8323683f4c56c891a826a9c49e5d5c1ff84447c9785be0f35c6cef56b504038411045d404838d022bd5
|
||||
|
||||
@@ -1,46 +0,0 @@
|
||||
# Copyright 1999-2017 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="2017-10-14T00-51-16Z"
|
||||
EGIT_COMMIT="785e14a725357b39e22b74483cd202e7effa6195"
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user