From c9bee59bc3c822988855b69f3e8a06df826c9d2c Mon Sep 17 00:00:00 2001 From: Derek Ryan Strong Date: Sat, 10 Oct 2020 18:53:51 -0700 Subject: pandoc: add variant for texlive (#18967) * pandoc: add variant for texlive Modifies the pandoc package by adding a variant for texlive, which is only needed for PDF output. Enables this variant by default. * Fix whitespace --- var/spack/repos/builtin/packages/pandoc/package.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'var') diff --git a/var/spack/repos/builtin/packages/pandoc/package.py b/var/spack/repos/builtin/packages/pandoc/package.py index 9983a4e597..c099ac3e6d 100644 --- a/var/spack/repos/builtin/packages/pandoc/package.py +++ b/var/spack/repos/builtin/packages/pandoc/package.py @@ -13,7 +13,7 @@ class Pandoc(Package): homepage = "https://pandoc.org" - # The following installs the binaries for pandoc and pandoc-cireproc. The + # The following installs the binaries for pandoc and pandoc-citeproc. The # reason for installing binaries is that pandoc is a Haskell package and # the Haskell framework is not yet in Spack. See #1408 for a discussion of # the challenges with Haskell. Until the Haskell framework is in Spack this @@ -26,7 +26,9 @@ class Pandoc(Package): url = "https://github.com/jgm/pandoc/releases/download/2.7.3/pandoc-2.7.3-macOS.zip" version('2.7.3', sha256='fb93800c90f3fab05dbd418ee6180d086b619c9179b822ddfecb608874554ff0') - depends_on('texlive') + variant('texlive', default=True, description='Use TeX Live to enable PDF output') + + depends_on('texlive', when='+texlive') def install(self, spec, prefix): install_tree('.', prefix) -- cgit v1.2.3-70-g09d2