spack/var/spack/repos/builtin/packages/c-ares/package.py
Adam J. Stewart 2264e30d99
Update URL parsing regexes and tests (#13411)
* Update URL parsing regexes and tests

* Get rid of no longer used README

* Merge py-udunits and py-cf-units

* netcdf -> netcdf-c

* setup_environment -> setup_*_environment

* Fix doc tests

* Few last minute fixes

* Simplify prefix removal copypasta
2019-10-28 20:27:54 -05:00

22 lines
780 B
Python

# 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', sha256='7c48c57706a38691041920e705d2a04426ad9c68d40edd600685323f214b2d57')
def url_for_version(self, version):
url = "https://github.com/c-ares/c-ares/archive/cares-{0}.tar.gz"
return url.format(version.underscored)