dev-python/pillow: fix build with USE="-truetype"

Build fails if USE="-truetype" due to implied flags conflicing with the
vendor_{raqm,fribidi} = False flags. Guard them behind a usex so that
they are only enabled if USE="truetype"

Closes: https://bugs.gentoo.org/935124
Signed-off-by: James Calligeros <jcalligeros99@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/37345
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
James Calligeros
2024-06-29 16:39:40 +10:00
committed by Sam James
parent dae847b594
commit a8eb973f55

View File

@@ -82,8 +82,8 @@ python_configure_all() {
[build_ext]
debug = True
disable_platform_guessing = True
vendor_raqm = False
vendor_fribidi = False
$(usex truetype "vendor_raqm = False" "") # BUG 935124
$(usex truetype "vendor_fribidi = False" "") # ditto
$(usepil truetype)_freetype = True
$(usepil jpeg)_jpeg = True
$(usepil jpeg2k)_jpeg2000 = True