
This adds a package for `irep`, a tool for reading `lua` input decks from Fortran, C, and C++. `irep` can be built with either `lua` or `luajit`. To address this, we also add a virtual package for lua called `lua-lang`. `luajit` isn't, by default, a drop-in replacement for `lua`, but we add a `+lualinks` variant to it that adds symlinks that make it behave like `lua@5.1`. With this variant enabled, it provides the `lua-lang` virtual. `lua` always provides `lua-lang`. - [x] add `irep` package - [x] add `+lualinks` variant to `lua-luajit` - [x] create `lua-lang` virtual, provided by `lua` and `luajit+lualinks` Co-authored-by: Kayla Richarda Butler <butler59@quartz1148.llnl.gov> Co-authored-by: Todd Gamblin <tgamblin@llnl.gov>
19 lines
738 B
Python
19 lines
738 B
Python
# Copyright 2013-2021 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)
|
|
|
|
class Irep(CMakePackage):
|
|
"""IREP is a tool that enables mixed-language simulation codes to use a
|
|
common, Lua-based format for their input decks. Essentially, the input
|
|
format is a set of tables -- Lua's one (and only?) data structure."""
|
|
|
|
homepage = "https://irep.readthedocs.io/"
|
|
url = "https://github.com/LLNL/irep/archive/refs/tags/v1.0.0.tar.gz"
|
|
|
|
maintainers = ['tomstitt', 'kennyweiss']
|
|
|
|
version('1.0.0', 'b84203ac92de824dbdc672de45cfdb9609373791c4ee84a5201fa6e4ccecc1a4')
|
|
|
|
depends_on('lua-lang')
|