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.
|
2016-05-12 12:22:25 +08:00
|
|
|
#
|
2018-10-08 04:52:23 +08:00
|
|
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
|
|
|
|
2016-05-07 06:33:26 +08:00
|
|
|
import os
|
|
|
|
from spack import *
|
|
|
|
|
2016-08-10 16:50:00 +08:00
|
|
|
|
2019-10-29 09:27:54 +08:00
|
|
|
class LuaLuajit(Package):
|
2016-05-07 06:33:26 +08:00
|
|
|
"""Flast flexible JITed lua"""
|
|
|
|
homepage = "http://www.luajit.org"
|
|
|
|
url = "http://luajit.org/download/LuaJIT-2.0.4.tar.gz"
|
|
|
|
|
2019-10-11 13:44:41 +08:00
|
|
|
version('2.0.4', sha256='620fa4eb12375021bef6e4f237cbd2dd5d49e56beb414bee052c746beef1807d')
|
2016-05-07 06:33:26 +08:00
|
|
|
|
|
|
|
def install(self, spec, prefix):
|
|
|
|
# Linking with the C++ compiler is a dirty hack to deal with the fact
|
|
|
|
# that unwinding symbols are not included by libc, this is necessary
|
|
|
|
# on some platforms for the final link stage to work
|
|
|
|
make("install", "PREFIX=" + prefix, "TARGET_LD=" + os.environ['CXX'])
|