summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/libraqm/package.py19
-rw-r--r--var/spack/repos/builtin/packages/py-pillow/package.py7
2 files changed, 25 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/libraqm/package.py b/var/spack/repos/builtin/packages/libraqm/package.py
new file mode 100644
index 0000000000..e15f98a0bc
--- /dev/null
+++ b/var/spack/repos/builtin/packages/libraqm/package.py
@@ -0,0 +1,19 @@
+# Copyright 2013-2022 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")
+
+ depends_on("freetype")
+ depends_on("harfbuzz")
diff --git a/var/spack/repos/builtin/packages/py-pillow/package.py b/var/spack/repos/builtin/packages/py-pillow/package.py
index f5e1f26f19..8f3488fce3 100644
--- a/var/spack/repos/builtin/packages/py-pillow/package.py
+++ b/var/spack/repos/builtin/packages/py-pillow/package.py
@@ -25,6 +25,7 @@ class PyPillowBase(PythonPackage):
variant("jpeg2000", default=False, description="JPEG 2000 functionality")
variant("imagequant", when="@3.3:", default=False, description="Improved color quantization")
variant("xcb", when="@7.1:", default=False, description="X11 screengrab support")
+ variant("raqm", when="@8.2:", default=False, description="RAQM support")
# Required dependencies
# https://pillow.readthedocs.io/en/latest/installation.html#notes
@@ -52,6 +53,10 @@ class PyPillowBase(PythonPackage):
depends_on("openjpeg", when="+jpeg2000")
depends_on("libimagequant", when="+imagequant")
depends_on("libxcb", when="+xcb")
+ depends_on("libraqm", when="+raqm")
+
+ # Conflicting options
+ conflicts("+raqm", when="~freetype")
def patch(self):
"""Patch setup.py to provide library and include directories
@@ -70,7 +75,7 @@ class PyPillowBase(PythonPackage):
def variant_to_cfg(variant):
able = "enable" if "+" + variant in self.spec else "disable"
- return "{0}-{1}=1\n".format(able, variant)
+ return "{0}_{1}=1\n".format(able, variant)
with open("setup.cfg", "a") as setup:
setup.write("[build_ext]\n")