diff options
author | Eric Berquist <eric.berquist@gmail.com> | 2022-11-26 17:45:00 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-26 23:45:00 +0100 |
commit | 613d0b7e8ed4bf5c2650b9796982651fc509dec1 (patch) | |
tree | 0f25de1e89322e47213c253a2c4b873ee4fb413a /var | |
parent | 21c29ee375df59e304c0c788abda7daa1f897ccc (diff) | |
download | spack-613d0b7e8ed4bf5c2650b9796982651fc509dec1.tar.gz spack-613d0b7e8ed4bf5c2650b9796982651fc509dec1.tar.bz2 spack-613d0b7e8ed4bf5c2650b9796982651fc509dec1.tar.xz spack-613d0b7e8ed4bf5c2650b9796982651fc509dec1.zip |
emacs: add variant treesitter for Emacs 29+ (#34134)
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/emacs/package.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/emacs/package.py b/var/spack/repos/builtin/packages/emacs/package.py index 46e2b404b7..7874100485 100644 --- a/var/spack/repos/builtin/packages/emacs/package.py +++ b/var/spack/repos/builtin/packages/emacs/package.py @@ -37,6 +37,7 @@ class Emacs(AutotoolsPackage, GNUMirrorPackage): ) variant("tls", default=False, description="Build Emacs with gnutls") variant("native", default=False, description="enable native compilation of elisp") + variant("treesitter", default=False, description="Build with tree-sitter support") depends_on("pkgconfig", type="build") @@ -53,6 +54,7 @@ class Emacs(AutotoolsPackage, GNUMirrorPackage): depends_on("gtkplus", when="+X toolkit=gtk") depends_on("gnutls", when="+tls") depends_on("jpeg") + depends_on("tree-sitter", when="+treesitter") depends_on("m4", type="build", when="@master:") depends_on("autoconf", type="build", when="@master:") depends_on("automake", type="build", when="@master:") @@ -62,6 +64,7 @@ class Emacs(AutotoolsPackage, GNUMirrorPackage): conflicts("@:26.3", when="platform=darwin os=catalina") conflicts("+native", when="@:27", msg="native compilation require @master") + conflicts("+treesitter", when="@:28", msg="tree-sitter support requires version 29") @when("platform=darwin") def setup_build_environment(self, env): @@ -92,6 +95,9 @@ class Emacs(AutotoolsPackage, GNUMirrorPackage): else: args.append("--without-gnutls") + if "+treesitter" in spec: + args.append("--with-tree-sitter") + return args def _test_check_versions(self): |