-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathneovim.py
More file actions
28 lines (23 loc) · 863 Bytes
/
neovim.py
File metadata and controls
28 lines (23 loc) · 863 Bytes
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
""" Formula for building neovim """
from pakit import Git, Recipe
class Neovim(Recipe):
"""
The mode based terminal editor for programmers.
By default built with lua & python 2.x interpreters.
"""
def __init__(self):
super(Neovim, self).__init__()
self.src = 'https://github.com/neovim/neovim'
self.homepage = 'https://neovim.io'
self.repos = {
'unstable': Git(self.src),
}
self.repos['stable'] = self.repos['unstable']
def build(self):
self.cmd('make -j CMAKE_EXTRA_FLAGS="-DCMAKE_BUILD_TYPE=RelWithDebInfo '
'-DCMAKE_INSTALL_PREFIX={prefix}"')
self.cmd('make install')
def verify(self):
lines = self.cmd('nvim --version').output()
assert lines[0].find('NVIM') != -1
assert lines[1].find('RelWithDebInfo') != -1