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
This commit is contained in:
parent
6383ef808d
commit
c9bee59bc3
@ -13,7 +13,7 @@ class Pandoc(Package):
|
|||||||
|
|
||||||
homepage = "https://pandoc.org"
|
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
|
# 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 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
|
# 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"
|
url = "https://github.com/jgm/pandoc/releases/download/2.7.3/pandoc-2.7.3-macOS.zip"
|
||||||
version('2.7.3', sha256='fb93800c90f3fab05dbd418ee6180d086b619c9179b822ddfecb608874554ff0')
|
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):
|
def install(self, spec, prefix):
|
||||||
install_tree('.', prefix)
|
install_tree('.', prefix)
|
||||||
|
Loading…
Reference in New Issue
Block a user