spack/var/spack/repos/builtin/packages/libraqm/package.py
Thomas Bouvier 4c2531d5fb
libraqm: add missing fribidi dependency (#36125)
* `libraqm`: add missing `fribidi` dependency
* `libraqm`: add `sheenbidi` variant
* [@spackbot] updating style on behalf of thomas-bouvier

---------

Co-authored-by: thomas-bouvier <thomas-bouvier@users.noreply.github.com>
2023-06-05 18:13:42 -04:00

31 lines
994 B
Python

# Copyright 2013-2023 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.package import *
class Libraqm(MesonPackage):
"""Raqm provides a convenient API for the logic of complex text layout."""
homepage = "https://github.com/HOST-Oman/libraqm"
url = "https://github.com/HOST-Oman/libraqm/releases/download/v0.9.0/raqm-0.9.0.tar.xz"
git = "https://github.com/HOST-Oman/libraqm.git"
version("0.9.0", sha256="9ed6fdf41da6391fc9bf7038662cbe412c330aa6eb22b19704af2258e448107c")
variant(
"bidi_algo",
default="fribidi",
description="Unicode Bidirectional Algorithm",
values=("fribidi", "sheenbidi"),
multi=False,
)
depends_on("freetype")
depends_on("harfbuzz")
depends_on("fribidi@1.0.6:", when="bidi_algo=fribidi")
depends_on("sheenbidi@2.6:", when="bidi_algo=sheenbidi")