dev-util/bazel: fix tools/examples install location for bug 624302, revbump to 0...
authorZac Medico <zmedico@gentoo.org>
Sun, 9 Jul 2017 19:54:40 +0000 (12:54 -0700)
committerZac Medico <zmedico@gentoo.org>
Sun, 9 Jul 2017 19:57:14 +0000 (12:57 -0700)
Package-Manager: Portage-2.3.6, Repoman-2.3.2

dev-util/bazel/bazel-0.4.5-r1.ebuild [moved from dev-util/bazel/bazel-0.4.5.ebuild with 92% similarity]

similarity index 92%
rename from dev-util/bazel/bazel-0.4.5.ebuild
rename to dev-util/bazel/bazel-0.4.5-r1.ebuild
index e25a3d27164e74b940b675e0a0c6639f345c5c13..d3b75d558a98dc4e1cf963ff09695f1e938b88f2 100644 (file)
@@ -35,6 +35,7 @@ src_compile() {
        echo "build --verbose_failures --spawn_strategy=standalone --genrule_strategy=standalone" \
                > "${T}/bazelrc" || die
        output/bazel --bazelrc="${T}/bazelrc" build scripts:bazel-complete.bash || die
+       mv bazel-bin/scripts/bazel-complete.bash output/ || die
 }
 
 src_test() {
@@ -49,21 +50,21 @@ src_test() {
 src_install() {
        output/bazel shutdown
        dobin output/bazel
-       newbashcomp bazel-bin/scripts/bazel-complete.bash ${PN}
+       newbashcomp output/bazel-complete.bash ${PN}
        if use zsh-completion ; then
                insinto /usr/share/zsh/site-functions
                doins scripts/zsh_completion/_bazel
        fi
        if use examples; then
                docinto examples
-               doins -r examples/*
+               dodoc -r examples/*
                docompress -x /usr/share/doc/${PF}/examples
        fi
        # could really build tools but I don't know which ones
        # are actually used
        if use tools; then
                docinto tools
-               doins -r tools/*
+               dodoc -r tools/*
                docompress -x /usr/share/doc/${PF}/tools
        fi
 }