summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorToyohisa Kameyama <kameyama@riken.jp>2020-08-31 09:16:53 +0900
committerGitHub <noreply@github.com>2020-08-30 19:16:53 -0500
commit7f9018e893f570d5cd550fee7e2d8cfd59c489c6 (patch)
treed98b4836f31362ba8a88ce976d46762cad0c0fc4 /var
parent665e5ce0fd75ed638b7f645bd2563aef33525e33 (diff)
downloadspack-7f9018e893f570d5cd550fee7e2d8cfd59c489c6.tar.gz
spack-7f9018e893f570d5cd550fee7e2d8cfd59c489c6.tar.bz2
spack-7f9018e893f570d5cd550fee7e2d8cfd59c489c6.tar.xz
spack-7f9018e893f570d5cd550fee7e2d8cfd59c489c6.zip
lua-luajit: remove duplicated lua-jit and merge to lua-luajit. (#18348)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/lua-jit/package.py40
-rw-r--r--var/spack/repos/builtin/packages/lua-luajit/package.py29
2 files changed, 25 insertions, 44 deletions
diff --git a/var/spack/repos/builtin/packages/lua-jit/package.py b/var/spack/repos/builtin/packages/lua-jit/package.py
deleted file mode 100644
index e015737d9d..0000000000
--- a/var/spack/repos/builtin/packages/lua-jit/package.py
+++ /dev/null
@@ -1,40 +0,0 @@
-# Copyright 2013-2020 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 import *
-import os
-
-
-class LuaJit(MakefilePackage):
- """LuaJIT is a Just-In-Time Compiler (JIT) for the Lua programming
- language. Lua is a powerful, dynamic and light-weight programming
- language. It may be embedded or used as a general-purpose,
- stand-alone language. """
-
- homepage = "http://luajit.org/luajit.html"
- url = "http://luajit.org/download/LuaJIT-2.1.0-beta3.tar.gz"
-
- version('2.1.0-beta3', sha256='1ad2e34b111c802f9d0cdf019e986909123237a28c746b21295b63c9e785d9c3')
- version('2.0.5', sha256='874b1f8297c697821f561f9b73b57ffd419ed8f4278c82e05b48806d30c1e979', preferred=True)
-
- conflicts('@:2.0.5', when='target=aarch64:')
- depends_on('lua', type='link')
-
- @property
- def headers(self):
- hdrs = find_headers('luajit', self.prefix.include, recursive=True)
- hdrs.directories = os.path.dirname(hdrs[0])
- return hdrs or None
-
- def edit(self, spec, prefix):
- makefile = FileFilter('Makefile')
- makefile.filter('PREFIX= .*', 'PREFIX = {0}'.format(prefix))
- src_makefile = FileFilter(join_path('src', 'Makefile'))
- src_makefile.filter(
- '^DEFAULT_CC = .*',
- 'DEFAULT_CC = {0}'.format(spack_cc))
- src_makefile.filter(
- '^DYNAMIC_CC = .*',
- 'DYNAMIC_CC = $(CC) {0}'.format(self.compiler.cc_pic_flag))
diff --git a/var/spack/repos/builtin/packages/lua-luajit/package.py b/var/spack/repos/builtin/packages/lua-luajit/package.py
index 46ebb01349..61d77c5662 100644
--- a/var/spack/repos/builtin/packages/lua-luajit/package.py
+++ b/var/spack/repos/builtin/packages/lua-luajit/package.py
@@ -7,15 +7,36 @@ import os
from spack import *
-class LuaLuajit(Package):
+class LuaLuajit(MakefilePackage):
"""Flast flexible JITed lua"""
homepage = "http://www.luajit.org"
- url = "http://luajit.org/download/LuaJIT-2.0.4.tar.gz"
+ url = "http://luajit.org/download/LuaJIT-2.0.5.tar.gz"
+ version('2.1.0-beta3', sha256='1ad2e34b111c802f9d0cdf019e986909123237a28c746b21295b63c9e785d9c3')
+ version('2.0.5', sha256='874b1f8297c697821f561f9b73b57ffd419ed8f4278c82e05b48806d30c1e979', preferred=True)
version('2.0.4', sha256='620fa4eb12375021bef6e4f237cbd2dd5d49e56beb414bee052c746beef1807d')
- def install(self, spec, prefix):
+ conflicts('@:2.0.5', when='target=aarch64:')
+
+ @property
+ def headers(self):
+ hdrs = find_headers('luajit', self.prefix.include, recursive=True)
+ hdrs.directories = os.path.dirname(hdrs[0])
+ return hdrs or None
+
+ def edit(self, spec, prefix):
+ makefile = FileFilter('Makefile')
+ makefile.filter('PREFIX= .*', 'PREFIX = {0}'.format(prefix))
+ src_makefile = FileFilter(join_path('src', 'Makefile'))
+ src_makefile.filter(
+ '^DEFAULT_CC = .*',
+ 'DEFAULT_CC = {0}'.format(spack_cc))
+ src_makefile.filter(
+ '^DYNAMIC_CC = .*',
+ 'DYNAMIC_CC = $(CC) {0}'.format(self.compiler.cc_pic_flag))
# 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'])
+ src_makefile.filter(
+ '^TARGET_LD = .*',
+ 'TARGET_LD = {0}'.format(spack_cxx))