summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2023-02-26 16:20:03 +0100
committerMichał Górny <mgorny@gentoo.org>2023-02-26 16:25:11 +0100
commitbda2d1aa7515f101dcdde4f37a8807889e7142b8 (patch)
tree03fc6270fb6d95b83c5d3c1786bfc75ae8507ca9 /dev-python/pyocr
parentdev-python/pycparser: Backport lextab.py build failure fix (diff)
downloadgentoo-bda2d1aa7515f101dcdde4f37a8807889e7142b8.tar.gz
gentoo-bda2d1aa7515f101dcdde4f37a8807889e7142b8.tar.bz2
gentoo-bda2d1aa7515f101dcdde4f37a8807889e7142b8.zip
dev-python/pyocr: Fix version-related build failure
Closes: https://bugs.gentoo.org/897690 Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/pyocr')
-rw-r--r--dev-python/pyocr/pyocr-0.8.3.ebuild7
1 files changed, 6 insertions, 1 deletions
diff --git a/dev-python/pyocr/pyocr-0.8.3.ebuild b/dev-python/pyocr/pyocr-0.8.3.ebuild
index fddb70bcf83d..23dfc62ed252 100644
--- a/dev-python/pyocr/pyocr-0.8.3.ebuild
+++ b/dev-python/pyocr/pyocr-0.8.3.ebuild
@@ -34,4 +34,9 @@ RDEPEND+="
tesseract? ( app-text/tesseract )
"
-export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
+src_prepare() {
+ # workaround setuptools failing due to version being None
+ # https://gitlab.gnome.org/World/OpenPaperwork/pyocr/-/issues/127
+ sed -i -e '/version=version/d' setup.py || die
+ distutils-r1_src_prepare
+}