spack/var/spack/repos/builtin/packages/libuv/package.py
健美猞猁 42633e34ab CMake package: update libuv dependency constraints (#10824)
* Add libuv version 1.10.0
* CMake versions before 3.12.0 do not build with libuv version
  1.25.0, so a constraint is added to build earlier versions of
  CMake with libuv version 1.10.x
2019-03-07 12:42:24 -06:00

27 lines
930 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 Libuv(AutotoolsPackage):
"""Multi-platform library with a focus on asynchronous IO"""
homepage = "http://libuv.org"
url = "https://github.com/libuv/libuv/archive/v1.9.0.tar.gz"
version('1.25.0', '31a1873ebceacae42573bac8ec5da687')
version('1.10.0', 'f7a12f3a8ee021c20cfbc9af4cc5b793')
version('1.9.0', '14737f9c76123a19a290dabb7d1cd04c')
depends_on('automake', type='build')
depends_on('autoconf', type='build')
depends_on('libtool', type='build')
def autoreconf(self, spec, prefix):
# This is needed because autogen.sh generates on-the-fly
# an m4 macro needed during configuration
bash = which("bash")
bash('autogen.sh')