spack/var/spack/repos/builtin/packages/font-alias/package.py

31 lines
905 B
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 FontAlias(Package):
"""X.org alias font."""
homepage = "http://cgit.freedesktop.org/xorg/font/alias"
url = "https://www.x.org/archive/individual/font/font-alias-1.0.3.tar.gz"
version('1.0.3', '535138efe0a95f5fe521be6a6b9c4888')
depends_on('font-util')
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)