1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 inherit cmake-utils flag-o-matic
8 DESCRIPTION="Ambitious vim fork focused on extensibility and agility"
9 HOMEPAGE="https://github.com/neovim/neovim"
10 if [[ ${PV} == 9999 ]]; then
12 EGIT_REPO_URI="git://github.com/neovim/neovim.git"
14 SRC_URI="https://dev.gentoo.org/~yngwin/distfiles/${P}.tar.xz"
15 KEYWORDS="~amd64 ~x86"
18 LICENSE="Apache-2.0 vim"
22 CDEPEND="dev-lang/luajit:2
23 >=dev-libs/libtermkey-0.17
24 dev-libs/libvterm-neovim
25 >=dev-libs/unibilium-1.1.1
26 >=dev-libs/libuv-1.2.0
27 >=dev-libs/msgpack-0.6.0_pre20150220
34 perl? ( dev-lang/perl )
35 python? ( dev-python/neovim-python-client )"
38 # use our system vim dir
39 sed -e '/^# define SYS_VIMRC_FILE/s|$VIM|'"${EPREFIX}"'/etc/vim|' \
40 -i src/nvim/os/unix_defs.h || die
41 cmake-utils_src_prepare
45 export USE_BUNDLED_DEPS=OFF
46 append-cflags "-Wno-error"
47 append-cppflags "-DNDEBUG -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1"
49 -DCMAKE_BUILD_TYPE=Release
50 -DLIBUNIBILIUM_USE_STATIC=OFF
51 -DLIBTERMKEY_USE_STATIC=OFF
52 -DLIBVTERM_USE_STATIC=OFF
54 cmake-utils_src_configure
58 cmake-utils_src_install
59 # install a default configuration file
61 doins "${FILESDIR}"/nvimrc