From 97f7378097714f42934d02cc71422c714af6e69d Mon Sep 17 00:00:00 2001 From: Toyohisa Kameyama Date: Tue, 1 Sep 2020 00:31:41 +0900 Subject: neovim: build on aarch64 (#18136) * libvterm: renumber version and add 1.0.3 neovim: build on aarrch64 * Remove unneeded comment. * libvterm: newer bazaar snapshot version is set to version 0.0. neovim: change for libvterm version change, and libtermkey version bug is fixed. * update libvterm versions. --- .../repos/builtin/packages/libvterm/package.py | 5 +- var/spack/repos/builtin/packages/neovim/package.py | 53 +++++++++------------- 2 files changed, 24 insertions(+), 34 deletions(-) (limited to 'var') diff --git a/var/spack/repos/builtin/packages/libvterm/package.py b/var/spack/repos/builtin/packages/libvterm/package.py index a3ca1ced15..7bed885b63 100644 --- a/var/spack/repos/builtin/packages/libvterm/package.py +++ b/var/spack/repos/builtin/packages/libvterm/package.py @@ -9,9 +9,10 @@ from spack import * class Libvterm(Package): """An abstract library implementation of a terminal emulator""" homepage = "http://www.leonerd.org.uk/code/libvterm/" - url = "http://www.leonerd.org.uk/code/libvterm/libvterm-0+bzr681.tar.gz" + url = "http://www.leonerd.org.uk/code/libvterm/libvterm-0.1.3.tar.gz" - version('681', sha256='abea46d1b0b831dec2af5d582319635cece63d260f8298d9ccce7c1c2e62a6e8') + version('0.1.3', sha256='e41724466a4658e0f095e8fc5aeae26026c0726dce98ee71d6920d06f7d78e2b') + version('0.0.0', sha256='6344eca01c02e2270348b79e033c1e0957028dbcd76bc784e8106bea9ec3029d', url='http://www.leonerd.org.uk/code/libvterm/libvterm-0+bzr728.tar.gz') depends_on('libtool', type='build') diff --git a/var/spack/repos/builtin/packages/neovim/package.py b/var/spack/repos/builtin/packages/neovim/package.py index a74d4816a8..d30d2181de 100644 --- a/var/spack/repos/builtin/packages/neovim/package.py +++ b/var/spack/repos/builtin/packages/neovim/package.py @@ -4,7 +4,6 @@ # SPDX-License-Identifier: (Apache-2.0 OR MIT) -import os from spack import * @@ -26,36 +25,26 @@ class Neovim(CMakePackage): version('0.2.0', sha256='72e263f9d23fe60403d53a52d4c95026b0be428c1b9c02b80ab55166ea3f62b5') depends_on('cmake@3.0:', type='build') - - depends_on('lua@5.1:5.2', when='@:0.4.0') - depends_on('lua-lpeg', when='@:0.4.0') - depends_on('lua-mpack', when='@:0.4.0') - depends_on('lua-bitlib', when='@:0.4.0') - depends_on('libuv', when='@:0.4.0') - depends_on('jemalloc', when='@:0.4.0') - depends_on('libtermkey', when='@:0.4.0') - depends_on('libvterm', when='@:0.4.0') - depends_on('unibilium', when='@:0.4.0') - depends_on('msgpack-c', when='@:0.4.0') - depends_on('gperf', when='@:0.4.0') - - @run_before('cmake') - def build_dependencies(self): - if self.version < Version('0.4.0'): - return - - deps_build_dir = '.deps' - options = [ - '-G', self.generator, - os.path.join(os.path.abspath(self.root_cmakelists_dir), - 'third-party'), - ] - with working_dir(deps_build_dir, create=True): - cmake(*options) - make() + depends_on('pkgconfig', type='build') + depends_on('gettext', type=('build', 'link')) + depends_on('lua@5.1:5.2', type=('build', 'link')) + depends_on('lua-lpeg', type='link') + depends_on('lua-mpack', type='link') + depends_on('lua-bitlib', type='link') + depends_on('libuv', type='link') + depends_on('libuv@1.28:', type='link', when='@0.4:') + depends_on('jemalloc', type='link') + depends_on('libtermkey', type='link') + depends_on('libtermkey@0.18:', type='link', when='@0.3.4:') + depends_on('libvterm@0.0', type='link', when='@:0.3') + depends_on('libvterm@0.1:', type='link', when='@0.4:') + depends_on('unibilium', type='link') + depends_on('unibilium@:1.2.0', type='link', when='@:0.2.0') + depends_on('unibilium@2.0:', type='link', when='@0.4:') + depends_on('msgpack-c', type='link') + depends_on('msgpack-c@1.0.0:', type='link', when='@0.4:') + depends_on('gperf', type='link') + depends_on('libluv@1.30.0:', type='link', when='@0.4:') def cmake_args(self): - args = [] - if Version('0.2.1') <= self.version < Version('0.4.0'): - args = ['-DPREFER_LUA=ON'] - return args + return ['-DPREFER_LUA=ON'] -- cgit v1.2.3-70-g09d2