net-fs/mc: Install bash-completion
authorManuel Rüger <mrueg@gentoo.org>
Mon, 27 Nov 2017 20:13:50 +0000 (21:13 +0100)
committerManuel Rüger <mrueg@gentoo.org>
Mon, 27 Nov 2017 20:13:50 +0000 (21:13 +0100)
Package-Manager: Portage-2.3.16, Repoman-2.3.6

net-fs/mc/mc-0_pre20171014.ebuild

index e3cbab56910c91df616733bf3d49e568a995735d..de6178cf067b666f47fbb7a65c82157827dac402 100644 (file)
@@ -2,7 +2,7 @@
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
-inherit golang-build golang-vcs-snapshot
+inherit golang-build golang-vcs-snapshot bash-completion-r1
 
 EGO_PN="github.com/minio/mc"
 VERSION="2017-10-14T00-51-16Z"
@@ -33,7 +33,6 @@ src_prepare() {
 src_compile() {
        pushd src/${EGO_PN} || die
        MC_RELEASE="${VERSION}"
-       go run buildscripts/gen-ldflags.go
        GOPATH="${S}" go build --ldflags "$(go run buildscripts/gen-ldflags.go)" -o ${PN} || die
        popd || die
 }
@@ -42,5 +41,6 @@ src_install() {
        pushd src/${EGO_PN} || die
        dodoc -r README.md CONTRIBUTING.md docs
        dobin mc
+       newbashcomp autocomplete/bash_autocomplete ${PN}
        popd  || die
 }