summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/cares/package.py
blob: 0a3371b2e14740021f03df09b0fd78632a421d49 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# 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 Cares(CMakePackage):
    """c-ares: A C library for asynchronous DNS requests"""

    homepage = "https://c-ares.haxx.se"
    url      = "https://github.com/c-ares/c-ares/archive/cares-1_13_0.tar.gz"
    git      = "https://github.com/c-ares/c-ares.git"

    version('develop', branch='master')
    version('1.13.0', 'cdb21052a7eb85261da22f83c0654cfd')

    def url_for_version(self, version):
        url = "https://github.com/c-ares/c-ares/archive/cares-{0}.tar.gz"
        return url.format(version.underscored)