summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/font-bh-type1/package.py
blob: d75bb953f31f7877ae5e3ac82d82d1c57b31ec8b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Copyright 2013-2018 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 FontBhType1(Package):
    """X.org bh-type1 font."""

    homepage = "http://cgit.freedesktop.org/xorg/font/bh-type1"
    url      = "https://www.x.org/archive/individual/font/font-bh-type1-1.0.3.tar.gz"

    version('1.0.3', '62d4e8f782a6a0658784072a5df5ac98')

    depends_on('font-util')

    depends_on('fontconfig', type='build')
    depends_on('mkfontdir', type='build')
    depends_on('mkfontscale', type='build')
    depends_on('pkgconfig', type='build')
    depends_on('util-macros', type='build')

    def install(self, spec, prefix):
        configure('--prefix={0}'.format(prefix))

        make('install')

        # `make install` copies the files to the font-util installation.
        # Create a fake directory to convince Spack that we actually
        # installed something.
        mkdir(prefix.lib)