
Fixes #11526 The xfd configure script tests for libintl but incorrectly concludes that no additional library is needed because gettext is provided in libc. So we add '-lintl' to ldlibs to point to the Spack-installed gettext. Note that the xfd configure script does not have a --with-gettext option to do this for us. Also add version 1.1.3
47 lines
1.4 KiB
Python
47 lines
1.4 KiB
Python
# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other
|
|
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
#
|
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
|
|
|
from spack import *
|
|
|
|
|
|
class Xfd(AutotoolsPackage):
|
|
"""xfd - display all the characters in a font using either the
|
|
X11 core protocol or libXft2."""
|
|
|
|
homepage = "http://cgit.freedesktop.org/xorg/app/xfd"
|
|
url = "https://www.x.org/archive/individual/app/xfd-1.1.2.tar.gz"
|
|
|
|
version('1.1.3', '4a1bd18f324c239b1a807ed4ccaeb172ba771d65a7307fb492d8dd8d27f01527')
|
|
version('1.1.2', '12fe8f7c3e71352bf22124ad56d4ceaf')
|
|
|
|
depends_on('fontconfig')
|
|
depends_on('gettext')
|
|
depends_on('libxaw')
|
|
depends_on('libxft')
|
|
depends_on('libxrender')
|
|
depends_on('libxmu')
|
|
depends_on('libxt')
|
|
|
|
depends_on('xproto@7.0.17:', type='build')
|
|
depends_on('pkgconfig', type='build')
|
|
depends_on('util-macros', type='build')
|
|
|
|
# Xfd requires libintl (gettext), but does not test for it
|
|
# correctly, so add it here.
|
|
def flag_handler(self, name, flags):
|
|
if name == 'ldlibs':
|
|
flags.append('-lintl')
|
|
|
|
return (flags, None, None)
|
|
|
|
def configure_args(self):
|
|
args = []
|
|
|
|
# Xkb only rings a bell, so just disable it.
|
|
if self.spec.satisfies('@1.1.3:'):
|
|
args.append('--without-xkb')
|
|
|
|
return args
|