From d199738f31d39068d8797224ff00aad793317b7b Mon Sep 17 00:00:00 2001 From: Christoph Junghans Date: Wed, 19 Mar 2025 13:39:08 -0700 Subject: [PATCH] lfortran: add v0.49.0 (#49565) * lfortran: add v0.49.0 * add v0.19.0 url as version directive argument Co-authored-by: Tamara Dahlgren <35777542+tldahlgren@users.noreply.github.com> --------- Co-authored-by: Tamara Dahlgren <35777542+tldahlgren@users.noreply.github.com> --- var/spack/repos/builtin/packages/lfortran/package.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/var/spack/repos/builtin/packages/lfortran/package.py b/var/spack/repos/builtin/packages/lfortran/package.py index 4160833eb3b..be6ae7c4e69 100644 --- a/var/spack/repos/builtin/packages/lfortran/package.py +++ b/var/spack/repos/builtin/packages/lfortran/package.py @@ -9,7 +9,7 @@ class Lfortran(CMakePackage): """Modern interactive LLVM-based Fortran compiler""" homepage = "https://lfortran.org" - url = "https://lfortran.github.io/tarballs/release/lfortran-0.19.0.tar.gz" + url = "https://github.com/lfortran/lfortran/releases/download/v0.49.0/lfortran-0.49.0.tar.gz" git = "https://github.com/lfortran/lfortran.git" maintainers("certik") @@ -17,8 +17,13 @@ class Lfortran(CMakePackage): # The build process uses 'git describe --tags' to get the package version version("main", branch="main", get_full_repo=True) + version("0.49.0", sha256="a9225fd33d34ce786f72a964a1179579caff62dd176a6a1477d2594fecdc7cd6") version("0.30.0", sha256="aafdfbfe81d69ceb3650ae1cf9bcd8a1f1532d895bf88f3071fe9610859bcd6f") - version("0.19.0", sha256="d496f61d7133b624deb3562677c0cbf98e747262babd4ac010dbd3ab4303d805") + version( + "0.19.0", + sha256="d496f61d7133b624deb3562677c0cbf98e747262babd4ac010dbd3ab4303d805", + url="https://lfortran.github.io/tarballs/release/lfortran-0.19.0.tar.gz", + ) depends_on("c", type="build") # generated depends_on("cxx", type="build") # generated @@ -30,7 +35,8 @@ class Lfortran(CMakePackage): depends_on("python@3:", type="build", when="@main") depends_on("cmake", type="build") depends_on("llvm@11:15", type=("build", "run"), when="@0.19.0+llvm") - depends_on("llvm@11:16", type=("build", "run"), when="@0.30.0:+llvm") + depends_on("llvm@11:16", type=("build", "run"), when="@0.30.0+llvm") + depends_on("llvm@11:", type=("build", "run"), when="+llvm") depends_on("zlib-api") depends_on("re2c", type="build", when="@main") depends_on("bison@:3.4", type="build", when="@main")