diff options
author | Adam J. Stewart <ajstewart426@gmail.com> | 2019-03-15 01:13:25 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-15 01:13:25 -0500 |
commit | cba5a8058e96bd6c5ee639df223c77f56d8296fa (patch) | |
tree | 0f74d1cbc1b54d21f84991da1b14e8534f5ad4b5 /var | |
parent | 4e6285a19bb1e318c9149fcdfd4b084c82933779 (diff) | |
download | spack-cba5a8058e96bd6c5ee639df223c77f56d8296fa.tar.gz spack-cba5a8058e96bd6c5ee639df223c77f56d8296fa.tar.bz2 spack-cba5a8058e96bd6c5ee639df223c77f56d8296fa.tar.xz spack-cba5a8058e96bd6c5ee639df223c77f56d8296fa.zip |
Add ladot package (#10905)
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/ladot/package.py | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/ladot/package.py b/var/spack/repos/builtin/packages/ladot/package.py new file mode 100644 index 0000000000..aa3f8f632e --- /dev/null +++ b/var/spack/repos/builtin/packages/ladot/package.py @@ -0,0 +1,28 @@ +# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other +# Spack Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: (Apache-2.0 OR MIT) + +from spack import * + + +class Ladot(Package): + """Ladot is a script that makes using LaTeX in graphs generated by dot + (graphviz) relatively easy.""" + + homepage = "https://brighten.bigw.org/projects/ladot/" + url = "https://brighten.bigw.org/projects/ladot/ladot-1.2.tar.gz" + + version('1.2', sha256='f829eeca829b82c0315cd87bffe410bccab96309b86b1c883b3ddaa93170f25e') + + depends_on('perl', type=('run', 'test')) + depends_on('graphviz', type=('run', 'test')) + depends_on('texlive', type='test') + + def install(self, spec, prefix): + if self.run_tests: + with working_dir('example'): + make() + + mkdir(prefix.bin) + install('ladot', prefix.bin) |