spack/var/spack/repos/builtin/packages/lynx/package.py
Harmen Stoppels 7b9f8abce5
Add depends_on([c,cxx,fortran]) (#45217)
Add language dependencies `c`, `cxx`, and `fortran`.

These `depends_on` statements are auto-generated based on file extensions found
in source tarballs/zipfiles.

The `# generated` comment can be removed by package maintainers after
validating correctness.
2024-07-17 16:07:43 +02:00

36 lines
1.1 KiB
Python

# Copyright 2013-2024 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.package 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"
license("GPL-2.0-only")
version("2.8.9.1", sha256="a46e4167b8f02c066d2fe2eafcc5603367be0e3fe2e59e9fc4eb016f306afc8e")
depends_on("c", type="build") # generated
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