commit:     03ff5023ff8aaa6007f8d916fb048be420c5c320
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Jan 24 11:43:55 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Jan 24 11:44:54 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=03ff5023

dev-python/polib: Require old gettext for testing

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

 dev-python/polib/polib-1.2.0.ebuild | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/dev-python/polib/polib-1.2.0.ebuild 
b/dev-python/polib/polib-1.2.0.ebuild
index 627a252a2d0a..5764d76c5cae 100644
--- a/dev-python/polib/polib-1.2.0.ebuild
+++ b/dev-python/polib/polib-1.2.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -18,6 +18,8 @@ HOMEPAGE="
 LICENSE="MIT"
 SLOT="0"
 KEYWORDS="~alpha amd64 arm arm64 ~ia64 ~loong ~mips ppc ppc64 ~riscv sparc x86"
+IUSE="test"
+RESTRICT="!test? ( test )"
 
 distutils_enable_sphinx docs
 
@@ -25,6 +27,12 @@ PATCHES=(
        "${FILESDIR}"/${PN}-1.0.7-BE-test.patch
 )
 
+BDEPEND="
+       test? (
+               <sys-devel/gettext-0.22
+       )
+"
+
 python_test() {
        "${EPYTHON}" tests/tests.py -v || die "Tests failed under ${EPYTHON}"
 }

Reply via email to