summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/libuv-julia/package.py
blob: d086d16945de48e3f7d9b62b46c6a905a2580f32 (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
25
26
27
# Copyright 2013-2023 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.package import *


class LibuvJulia(AutotoolsPackage):
    """Multi-platform library with a focus on asynchronous IO"""

    homepage = "https://libuv.org"
    url = "https://github.com/JuliaLang/libuv/archive/refs/heads/julia-uv2-1.44.2.tar.gz"
    git = "https://github.com/JuliaLang/libuv.git"

    # julia's libuv fork doesn't tag (all?) releases, so we fix commits.
    version("1.44.2", commit="e6f0e4900e195c8352f821abe2b3cffc3089547b")
    version("1.44.1", commit="1b2d16477fe1142adea952168d828a066e03ee4c")
    version("1.42.0", commit="3a63bf71de62c64097989254e4f03212e3bf5fc8")

    @property
    def libs(self):
        return find_libraries(["libuv"], root=self.prefix, recursive=True, shared=False)

    def configure_args(self):
        # Only build static libaries for now
        # https://github.com/JuliaLang/julia/issues/47620
        return ["--disable-shared", "--enable-static", "--with-pic"]