sys-fs/bees: Specify package version to Makefile
authorKai Krakow <kai@kaishome.de>
Sun, 30 Sep 2018 02:34:56 +0000 (04:34 +0200)
committerGeorgy Yakovlev <gyakovlev@gentoo.org>
Mon, 1 Oct 2018 08:01:50 +0000 (01:01 -0700)
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
Link: https://github.com/Zygo/bees/issues/75
Package-Manager: Portage-2.3.49, Repoman-2.3.10
Signed-off-by: Kai Krakow <kai@kaishome.de>
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
sys-fs/bees/bees-9999.ebuild

index 72fef108e72d5185d2d3ea99954fc35aeb421bbd..22a1b0a488808543f6fbbb3ba181c9b99f61423c 100644 (file)
@@ -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