commit:     43a5a5b9b75f270d7a1c34d09a222e8a7e508c37
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Jun 24 18:18:38 2022 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Jun 24 18:35:11 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=43a5a5b9

dev-python/uri_template: Fix version number in metadata

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 .../{uri_template-1.2.0.ebuild => uri_template-1.2.0-r1.ebuild}     | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/dev-python/uri_template/uri_template-1.2.0.ebuild 
b/dev-python/uri_template/uri_template-1.2.0-r1.ebuild
similarity index 84%
rename from dev-python/uri_template/uri_template-1.2.0.ebuild
rename to dev-python/uri_template/uri_template-1.2.0-r1.ebuild
index 90ea54cc924f..6338f0309acd 100644
--- a/dev-python/uri_template/uri_template-1.2.0.ebuild
+++ b/dev-python/uri_template/uri_template-1.2.0-r1.ebuild
@@ -23,6 +23,12 @@ LICENSE="MIT"
 SLOT="0"
 KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 
~riscv ~s390 sparc x86"
 
+src_prepare() {
+       distutils-r1_src_prepare
+       # fix the version number
+       sed -i -e "/version/s:0\.0\.0:${PV}:" setup.py || die
+}
+
 python_test() {
        "${EPYTHON}" "test.py" || die "Tests fail with ${EPYTHON}."
 }

Reply via email to