commit:     2b25ea0be424e100eee0b197d33116af29b1d9a3
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Sep 20 16:27:40 2022 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Sep 20 16:55:31 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2b25ea0b

app-text/paperwork: Fix compat w/ new Levenshtein pkg

Closes: https://bugs.gentoo.org/872071
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 .../{paperwork-2.1.1.ebuild => paperwork-2.1.1-r1.ebuild}          | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/app-text/paperwork/paperwork-2.1.1.ebuild 
b/app-text/paperwork/paperwork-2.1.1-r1.ebuild
similarity index 88%
rename from app-text/paperwork/paperwork-2.1.1.ebuild
rename to app-text/paperwork/paperwork-2.1.1-r1.ebuild
index 5fb6e834f6a9..cd4fb6cfa7a0 100644
--- a/app-text/paperwork/paperwork-2.1.1.ebuild
+++ b/app-text/paperwork/paperwork-2.1.1-r1.ebuild
@@ -29,6 +29,13 @@ RDEPEND="~app-text/openpaperwork-core-${PV}[${PYTHON_USEDEP}]
        x11-libs/libnotify[introspection]"
 DEPEND="${RDEPEND}"
 
+src_prepare() {
+       # remove dep to allow both old python-Levenshtein and new
+       # Levenshtein packages
+       sed -i -e '/python-Levenshtein/d' setup.py || die
+       distutils-r1_src_prepare
+}
+
 python_install_all() {
        distutils-r1_python_install_all
 

Reply via email to