gettext: add missing iconv dependency (#16193)

`gettext` will pick up a random `iconv` dependency if not
specified, which crashes python and its own builds on macOS.
This commit is contained in:
Axel Huebl 2020-04-20 21:47:04 -07:00 committed by GitHub
parent ca86e56572
commit 6c8e15ee18
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -27,6 +27,7 @@ class Gettext(AutotoolsPackage, GNUMirrorPackage):
# Optional variants
variant('libunistring', default=False, description='Use libunistring')
depends_on('iconv')
# Recommended dependencies
depends_on('ncurses', when='+curses')
depends_on('libxml2', when='+libxml2')
@ -50,7 +51,8 @@ def configure_args(self):
config_args = [
'--disable-java',
'--disable-csharp',
'--disable-icsharp',
'--with-libiconv-prefix={0}'.format(spec['iconv'].prefix),
'--with-included-glib',
'--with-included-gettext',
'--with-included-libcroco',