2019-01-01 14:04:23 +08:00
|
|
|
# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other
|
2018-10-08 04:52:23 +08:00
|
|
|
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
2017-09-05 17:34:21 +08:00
|
|
|
#
|
2018-10-08 04:52:23 +08:00
|
|
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
|
|
|
|
2017-09-05 17:34:21 +08:00
|
|
|
|
|
|
|
from spack import *
|
|
|
|
|
|
|
|
|
|
|
|
class LuaLpeg(Package):
|
|
|
|
"""pattern-matching for lua"""
|
|
|
|
|
|
|
|
homepage = "http://www.inf.puc-rio.br/~roberto/lpeg/"
|
|
|
|
url = "https://luarocks.org/manifests/luarocks/lpeg-0.12-1.src.rock"
|
|
|
|
|
2019-10-11 13:44:41 +08:00
|
|
|
version('0.12.1', sha256='3962e8d695d0f9095c9453f2a42f9f1a89fb94db9b0c3bf22934c1e8a3b0ef5a',
|
2017-09-05 17:34:21 +08:00
|
|
|
url='https://luarocks.org/manifests/luarocks/lpeg-0.12-1.src.rock',
|
|
|
|
expand=False)
|
|
|
|
|
|
|
|
extends("lua")
|
|
|
|
|
|
|
|
def install(self, spec, prefix):
|
|
|
|
luarocks('--tree=' + prefix, 'install', 'lpeg-0.12-1.src.rock')
|