summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/texlive/package.py
diff options
context:
space:
mode:
authorMassimiliano Culpo <massimiliano.culpo@googlemail.com>2017-05-04 19:58:58 +0200
committerTodd Gamblin <tgamblin@llnl.gov>2017-05-04 10:58:58 -0700
commit6a9052bd4dfb7526cc0ed5859ae8907d77d6e12a (patch)
treeaa806cbfc23cc16b2f78c9c193cc82d32d6f2492 /var/spack/repos/builtin/packages/texlive/package.py
parent0cf406d7b6614b52640c8f1c54d370768fa8d8f1 (diff)
downloadspack-6a9052bd4dfb7526cc0ed5859ae8907d77d6e12a.tar.gz
spack-6a9052bd4dfb7526cc0ed5859ae8907d77d6e12a.tar.bz2
spack-6a9052bd4dfb7526cc0ed5859ae8907d77d6e12a.tar.xz
spack-6a9052bd4dfb7526cc0ed5859ae8907d77d6e12a.zip
variants: fixed packages reported by @adamjstewart in #4098 (#4105)
Diffstat (limited to 'var/spack/repos/builtin/packages/texlive/package.py')
-rw-r--r--var/spack/repos/builtin/packages/texlive/package.py14
1 files changed, 9 insertions, 5 deletions
diff --git a/var/spack/repos/builtin/packages/texlive/package.py b/var/spack/repos/builtin/packages/texlive/package.py
index 70d5a1d789..3cfab6304d 100644
--- a/var/spack/repos/builtin/packages/texlive/package.py
+++ b/var/spack/repos/builtin/packages/texlive/package.py
@@ -36,8 +36,8 @@ class Texlive(Package):
# update in synchrony.
#
# BEWARE: TexLive updates their installs frequently (probably why
- # they call it *Live*...). There is no good way to provide a
- # repeatable install of the package. We try to keep up with the
+ # they call it *Live*...). There is no good way to provide a
+ # repeatable install of the package. We try to keep up with the
# digest values, but don't be surprised if this package is
# briefly unbuildable.
#
@@ -53,8 +53,12 @@ class Texlive(Package):
# minimal scheme (plain only)
# See:
# https://www.tug.org/texlive/doc/texlive-en/texlive-en.html#x1-25025r6
- variant('scheme', default="small",
- description='Package subset to install (e.g. full, small, basic)')
+ variant(
+ 'scheme',
+ default='small',
+ values=('minimal', 'basic', 'small', 'medium', 'full'),
+ description='Package subset to install'
+ )
depends_on('perl', type='build')
@@ -62,7 +66,7 @@ class Texlive(Package):
# Using texlive's mirror system leads to mysterious problems,
# in lieu of being able to specify a repository as a variant, hardwire
# a particular (slow, but central) one for now.
- _repository='http://ctan.math.washington.edu/tex-archive/systems/texlive/tlnet/'
+ _repository = 'http://ctan.math.washington.edu/tex-archive/systems/texlive/tlnet/'
env = os.environ
env['TEXLIVE_INSTALL_PREFIX'] = prefix
perl = which('perl')