spack/var/spack/repos/builtin/packages/xfd/package.py
Todd Gamblin 62927654dd checksums: use sha256 checksums everywhere
We'd like to use a consistent checksum scheme everywhere so that we can:

    a) incorporate archive checksums into our specs and have a
       consistent hashing algorithm across all specs.

    b) index mirrors with a consistent type of checksum, and not one that
       is dependent on how spack packages are written.

- [x] convert existing md5, sha224, sha512, sha1 checksums to sha256
2019-10-12 07:19:43 -07:00

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', sha256='4a1bd18f324c239b1a807ed4ccaeb172ba771d65a7307fb492d8dd8d27f01527')
version('1.1.2', sha256='4eff3e15b2526ceb48d0236d7ca126face399289eabc0ef67e6ed3b3fdcb60ad')
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