diff options
author | darmac <xiaojun2@hisilicon.com> | 2020-06-17 14:04:00 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-16 23:04:00 -0700 |
commit | dc0dfe9220ecd16b207dea9695a64fb845666f6c (patch) | |
tree | d6d357127dcc1b696a8709bdfa190e08a20e6f93 /var | |
parent | d2b745b3d6daf3ccd8e0517161d169cb5c3ce712 (diff) | |
download | spack-dc0dfe9220ecd16b207dea9695a64fb845666f6c.tar.gz spack-dc0dfe9220ecd16b207dea9695a64fb845666f6c.tar.bz2 spack-dc0dfe9220ecd16b207dea9695a64fb845666f6c.tar.xz spack-dc0dfe9220ecd16b207dea9695a64fb845666f6c.zip |
New package: lynx (#17099)
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/lynx/package.py | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/lynx/package.py b/var/spack/repos/builtin/packages/lynx/package.py new file mode 100644 index 0000000000..66c6f5408e --- /dev/null +++ b/var/spack/repos/builtin/packages/lynx/package.py @@ -0,0 +1,29 @@ +# Copyright 2013-2020 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 Lynx(AutotoolsPackage): + """Lynx is the text web browser.""" + + homepage = "https://lynx.invisible-island.net/" + url = "https://invisible-mirror.net/archives/lynx/tarballs/lynx2.8.9rel.1.tar.gz" + + version('2.8.9.1', sha256='a46e4167b8f02c066d2fe2eafcc5603367be0e3fe2e59e9fc4eb016f306afc8e') + + depends_on('ncurses') + + def url_for_version(self, version): + version_str = version.string + index = version_str.rfind('.') + tmp = list(version_str) + if index >= 0: + tmp.insert(index, 'rel') + version_str = ''.join(tmp) + else: + version_str = version + url = "https://invisible-mirror.net/archives/lynx/tarballs/lynx{0}.tar.gz".format(version_str) + return url |