summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/xcursor-themes/package.py
blob: 7b0df1ec7d266a0b2cdbb5c68e4fc53ec21fc92f (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
34
# 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 XcursorThemes(Package):
    """This is a default set of cursor themes for use with libXcursor,
    originally created for the XFree86 Project, and now shipped as part
    of the X.Org software distribution."""

    homepage = "http://cgit.freedesktop.org/xorg/data/cursors"
    url      = "https://www.x.org/archive/individual/data/xcursor-themes-1.0.4.tar.gz"

    version('1.0.4', 'c82628f35e9950ba225050ad5803b92a')

    depends_on('libxcursor')

    depends_on('xcursorgen', type='build')
    depends_on('pkgconfig', type='build')
    depends_on('util-macros', type='build')

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

        make()
        make('install')

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