39 lines
1.4 KiB
Python
39 lines
1.4 KiB
Python
# Copyright Spack Project Developers. See COPYRIGHT file for details.
|
|
#
|
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
|
|
|
from spack.package import *
|
|
|
|
|
|
class XcursorThemes(Package, XorgPackage):
|
|
"""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 = "https://gitlab.freedesktop.org/xorg/data/cursors"
|
|
xorg_mirror_path = "data/xcursor-themes-1.0.4.tar.gz"
|
|
|
|
version("1.0.7", sha256="dcb68b6265235db3064a4427e2bc5ae0d30f21f7468dd7534553715d1c39d009")
|
|
version("1.0.6", sha256="22638f7bd6257adf889d25af9c8a7b2cfdcf5a5e18339d25fbb092dbf6c663c1")
|
|
version("1.0.5", sha256="85636a3774debe830a15b9cd3c438171356fb451d7e3667212777a55d88f7897")
|
|
version("1.0.4", sha256="8ed23bab13a4010fe4e95b37eefb634e31ac7cb8240b8b3b7d919c3a2db09503")
|
|
|
|
depends_on("libxcursor")
|
|
|
|
depends_on("xcursorgen", type="build")
|
|
depends_on("pkgconfig", type="build")
|
|
depends_on("util-macros", type="build")
|
|
depends_on("util-macros@1.20:", type="build", when="@1.0.7:")
|
|
depends_on("gmake", 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)
|