dev-util/buildbot-pkg: Fix version setting

Closes: https://bugs.gentoo.org/796980
Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Brian Dolbec <dolsen@gentoo.org>
This commit is contained in:
Brian Dolbec
2021-07-11 08:36:47 -04:00
parent 3decf504fa
commit b568c8d501

View File

@@ -26,7 +26,8 @@ KEYWORDS="~amd64 ~arm64 ~amd64-linux ~x86-linux"
S=${WORKDIR}/${MY_P}
src_install() {
export BUILDBOT_VERSION="${MY_PV}"
distutils-r1_src_install
python_prepare_all() {
sed -e "s:version=buildbot_pkg.getVersion(\".\"),:version=\"${MY_PV}\",:" \
-i setup.py || die
distutils-r1_python_prepare_all
}