summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/libssh/package.py
blob: f3f6569433007fe810004ac940ed9617dafaeceb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# 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 Libssh(CMakePackage):
    """libssh: the SSH library"""

    homepage = "https://www.libssh.org"
    url      = "https://www.libssh.org/files/0.8/libssh-0.8.5.tar.xz"

    version('0.8.5', '07d2c431240fc88f6b06bcb36ae267f9afeedce2e32f6c42f8844b205ab5a335')
    version('0.7.5', 'd3fc864208bf607ad87cdee836894feb')

    depends_on('openssl@:1.0', when='@:0.7')
    depends_on('openssl')
    depends_on('zlib')

    def url_for_version(self, version):
        url = "https://www.libssh.org/files/{0}/libssh-{1}.tar.xz"
        return url.format(version.up_to(2), version)