summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDerek Ryan Strong <drstrong@protonmail.com>2020-10-10 18:53:51 -0700
committerGitHub <noreply@github.com>2020-10-10 20:53:51 -0500
commitc9bee59bc3c822988855b69f3e8a06df826c9d2c (patch)
tree834233b4bd93bc2e7773fa9cfdcf6b07fddd8e66
parent6383ef808d9568708a2cd987db75b6da68c4e823 (diff)
downloadspack-c9bee59bc3c822988855b69f3e8a06df826c9d2c.tar.gz
spack-c9bee59bc3c822988855b69f3e8a06df826c9d2c.tar.bz2
spack-c9bee59bc3c822988855b69f3e8a06df826c9d2c.tar.xz
spack-c9bee59bc3c822988855b69f3e8a06df826c9d2c.zip
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
-rw-r--r--var/spack/repos/builtin/packages/pandoc/package.py6
1 files changed, 4 insertions, 2 deletions
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)