summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/lua-lpeg/package.py
blob: 0e00475866a17255b1f003b9beaea91b33c5e7d1 (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
28
29
# Copyright 2013-2024 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 LuaLpeg(LuaPackage):
    """pattern-matching for lua"""

    homepage = "http://www.inf.puc-rio.br/~roberto/lpeg/"
    url = "https://luarocks.org/manifests/gvvaughan/lpeg-1.0.2-1.src.rock"

    license("MIT")

    version(
        "1.0.2-1",
        sha256="e0d0d687897f06588558168eeb1902ac41a11edd1b58f1aa61b99d0ea0abbfbc",
        expand=False,
    )
    version(
        "0.12-1",
        sha256="3962e8d695d0f9095c9453f2a42f9f1a89fb94db9b0c3bf22934c1e8a3b0ef5a",
        expand=False,
    )

    depends_on("lua@:5.1.9", when="@:0.12.1^lua")