summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Berger <richard.berger@outlook.com>2024-10-22 01:18:33 -0600
committerGitHub <noreply@github.com>2024-10-22 01:18:33 -0600
commitb56e7922957ce2edbf4526307cc90b1ab29c6eff (patch)
tree54f959ca4aedf7009dcd9e751e21a7cd2ea24b74
parent5b279c07322567a6a89233b66fc8d0ba46ccd2c2 (diff)
downloadspack-b56e7922957ce2edbf4526307cc90b1ab29c6eff.tar.gz
spack-b56e7922957ce2edbf4526307cc90b1ab29c6eff.tar.bz2
spack-b56e7922957ce2edbf4526307cc90b1ab29c6eff.tar.xz
spack-b56e7922957ce2edbf4526307cc90b1ab29c6eff.zip
py-sphinxcontrib-spelling: new package (#46402)
* py-sphinxcontrib-spelling: new package * Dependency enchant: Add missing dep on pkgconfig --------- Co-authored-by: Bernhard Kaindl <bernhardkaindl7@gmail.com>
-rw-r--r--var/spack/repos/builtin/packages/enchant/package.py5
-rw-r--r--var/spack/repos/builtin/packages/py-sphinxcontrib-spelling/package.py23
2 files changed, 26 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/enchant/package.py b/var/spack/repos/builtin/packages/enchant/package.py
index 673a4d4152..3221b2332a 100644
--- a/var/spack/repos/builtin/packages/enchant/package.py
+++ b/var/spack/repos/builtin/packages/enchant/package.py
@@ -41,8 +41,9 @@ class Enchant(AutotoolsPackage):
version("2.1.1", sha256="5fad0a1e82ddfed91647e93da5955fc76249760fd51865648a36074dc97d526c")
version("2.1.0", sha256="2cdda2d9edb62ad895c34be35c598d56ac5b9b9298f3dfdaa2b40a1914d1db7e")
- depends_on("c", type="build") # generated
- depends_on("cxx", type="build") # generated
+ depends_on("c", type="build")
+ depends_on("cxx", type="build")
+ depends_on("pkgconfig", type="build", when="platform=linux")
variant("hunspell", default=True, description="Enables hunspell backend")
diff --git a/var/spack/repos/builtin/packages/py-sphinxcontrib-spelling/package.py b/var/spack/repos/builtin/packages/py-sphinxcontrib-spelling/package.py
new file mode 100644
index 0000000000..19e0de61b6
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-sphinxcontrib-spelling/package.py
@@ -0,0 +1,23 @@
+# Copyright 2013-2024 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 PySphinxcontribSpelling(PythonPackage):
+ """A spelling checker for Sphinx-based documentation"""
+
+ homepage = "https://sphinxcontrib-spelling.readthedocs.io"
+ pypi = "sphinxcontrib-spelling/sphinxcontrib-spelling-8.0.0.tar.gz"
+
+ maintainers("rbberger")
+
+ license("BSD-2-Clause")
+
+ version("8.0.0", sha256="199d0a16902ad80c387c2966dc9eb10f565b1fb15ccce17210402db7c2443e5c")
+
+ depends_on("python@3.7:")
+ depends_on("py-sphinx@3:")
+ depends_on("py-pyenchant@3.1.1:")