2018-10-08 04:52:23 +08:00
|
|
|
# Copyright 2013-2018 Lawrence Livermore National Security, LLC and other
|
|
|
|
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
2016-05-12 12:22:25 +08:00
|
|
|
#
|
2018-10-08 04:52:23 +08:00
|
|
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
|
|
|
|
2016-05-07 06:33:26 +08:00
|
|
|
from spack import *
|
|
|
|
|
2016-08-10 16:50:00 +08:00
|
|
|
|
2017-01-19 02:34:09 +08:00
|
|
|
class Libuv(AutotoolsPackage):
|
2016-05-07 06:33:26 +08:00
|
|
|
"""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.9.0', '14737f9c76123a19a290dabb7d1cd04c')
|
|
|
|
|
2016-03-09 23:46:56 +08:00
|
|
|
depends_on('automake', type='build')
|
|
|
|
depends_on('autoconf', type='build')
|
|
|
|
depends_on('libtool', type='build')
|
2016-05-07 06:33:26 +08:00
|
|
|
|
2017-01-19 02:34:09 +08:00
|
|
|
def autoreconf(self, spec, prefix):
|
2017-01-26 18:27:15 +08:00
|
|
|
# This is needed because autogen.sh generates on-the-fly
|
|
|
|
# an m4 macro needed during configuration
|
2016-05-07 06:33:26 +08:00
|
|
|
bash = which("bash")
|
|
|
|
bash('autogen.sh')
|