commit:     7d85d0b5f6274597bac0d2ec8d99c8c6bf953cd5
Author:     Kai Krakow <kai <AT> kaishome <DOT> de>
AuthorDate: Sun Sep 30 02:34:56 2018 +0000
Commit:     Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
CommitDate: Mon Oct  1 08:01:50 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7d85d0b5

sys-fs/bees: Specify package version to Makefile

This works around an upstream issue in non-git ebuilds. The change is
proposed to work from v0.7 onwards. It's still a hack but gets around
the git error messages that show up otherwise during the ebuild phase.

Closes: https://github.com/gentoo/gentoo/pull/10016
Github-Link: https://github.com/Zygo/bees/issues/75
Package-Manager: Portage-2.3.49, Repoman-2.3.10
Signed-off-by: Kai Krakow <kai <AT> kaishome.de>
Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org>

 sys-fs/bees/bees-9999.ebuild | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/sys-fs/bees/bees-9999.ebuild b/sys-fs/bees/bees-9999.ebuild
index 72fef108e72..22a1b0a4888 100644
--- a/sys-fs/bees/bees-9999.ebuild
+++ b/sys-fs/bees/bees-9999.ebuild
@@ -60,6 +60,11 @@ src_configure() {
                LIBDIR=$(get_libdir)
                DEFAULT_MAKE_TARGET=all
        EOF
+       if [[ ${PV} != "9999" ]] ; then
+               cat >>localconf <<-EOF || die
+                       BEES_VERSION=v${PV}
+               EOF
+       fi
        if use tools; then
                echo OPTIONAL_INSTALL_TARGETS=install_tools >>localconf || die
        fi

Reply via email to