diff options
author | Quinn <micheal.quinn85@gmail.com> | 2018-11-13 10:07:54 -0600 |
---|---|---|
committer | Adam J. Stewart <ajstewart426@gmail.com> | 2018-11-13 10:07:54 -0600 |
commit | 2f454c5317fae94092f0b24f59b874620b66326e (patch) | |
tree | c87dda3b57a5be5d1c95acd1123974f7c7254f01 | |
parent | 6743aef554e4ddb4acedf738c715bfd21fbf8c38 (diff) | |
download | spack-2f454c5317fae94092f0b24f59b874620b66326e.tar.gz spack-2f454c5317fae94092f0b24f59b874620b66326e.tar.bz2 spack-2f454c5317fae94092f0b24f59b874620b66326e.tar.xz spack-2f454c5317fae94092f0b24f59b874620b66326e.zip |
New Package: Nyancat (#9819)
* nyancat: adding the most important piece of software ever written
* nyancat: some formatting updates
* nyancat: flake8 error fix
-rw-r--r-- | var/spack/repos/builtin/packages/nyancat/package.py | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/nyancat/package.py b/var/spack/repos/builtin/packages/nyancat/package.py new file mode 100644 index 0000000000..2ebbcbe222 --- /dev/null +++ b/var/spack/repos/builtin/packages/nyancat/package.py @@ -0,0 +1,36 @@ +# Copyright 2013-2018 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 Nyancat(MakefilePackage): + """Nyancat in your terminal, rendered through ANSI escape sequences.""" + + homepage = "http://nyancat.dakko.us/" + url = "https://github.com/klange/nyancat/archive/1.5.1.tar.gz" + + version('1.5.2', sha256='88cdcaa9c7134503dd0364a97fa860da3381a09cb555c3aae9918360827c2032') + version('1.5.1', sha256='c948c769d230b4e41385173540ae8ab1f36176de689b6e2d6ed3500e9179b50a') + version('1.5.0', sha256='9ae4f740060b77bba815d8d4e97712d822bd0812a118b88b7fd6b4136a971bce') + version('1.4.5', sha256='b26d752b95088be9d5caa73daea884572c0fc836ba55f0062e4d975301c4c661') + + def edit(self, spec, prefix): + makefile = FileFilter('Makefile') + makefile.filter( + r'install src/nyancat /usr/bin/\${package}', + 'install src/nyancat {0}/{1}'.format( + prefix.bin, + '${package}' + ) + ) + makefile.filter( + 'gzip -9 -c < nyancat.1 > /usr/share/man/man1/nyancat.1.gz', + 'gzip -9 -c < {1}.1 > {0}/{1}.1.gz'.format( + prefix.man.man1, + '${package}' + ) + ) + mkdirp(prefix.bin) + mkdirp(prefix.man.man1) |