Gentoo Archives: gentoo-commits

From: Patrick McLean <chutzpah@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-editors/neovim/
Date: Thu, 28 Nov 2019 19:40:45
Message-Id: 1574970027.e0433ae4367b88793b4b63eb7aa938352849629a.chutzpah@gentoo
1 commit: e0433ae4367b88793b4b63eb7aa938352849629a
2 Author: Patrick McLean <chutzpah <AT> gentoo <DOT> org>
3 AuthorDate: Thu Nov 28 19:40:18 2019 +0000
4 Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org>
5 CommitDate: Thu Nov 28 19:40:27 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e0433ae4
7
8 app-editors/neovim-0.4.3: Version bump
9
10 Package-Manager: Portage-2.3.80, Repoman-2.3.19
11 Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org>
12
13 app-editors/neovim/Manifest | 1 +
14 app-editors/neovim/neovim-0.4.3.ebuild | 91 ++++++++++++++++++++++++++++++++++
15 2 files changed, 92 insertions(+)
16
17 diff --git a/app-editors/neovim/Manifest b/app-editors/neovim/Manifest
18 index 6f355fb6642..c6c0d92c7f0 100644
19 --- a/app-editors/neovim/Manifest
20 +++ b/app-editors/neovim/Manifest
21 @@ -1,2 +1,3 @@
22 DIST neovim-0.3.8.tar.gz 9233661 BLAKE2B 252a64d2ac5ca1f8e1695d3f0f694ac333d9d9179dc4c428a279534e455de4b8d2c0dc6e638f775bb28a940fc1254bad426f7cee1bffaa2dbf84deefe49d41dc SHA512 431d3df859b430570e3f927328b862945a15b1ac041108599670d32af6cccac9361a143fc6af27847529629a43a5e0a0afd98b1c826d4ee1e7570de3cf14f9c7
23 DIST neovim-0.4.2.tar.gz 9552134 BLAKE2B 4004a2e2788344ab96c97f145acc4f75680961ad004fcaa017731557899bbed24c6003b799c1496067a3ca75d8a4c2e63344b9646e8dab0ed00c9fa329d90ab2 SHA512 cc0de18ee7ca5105a0dd9f5f06b4d58335618b22c4dc3d584a024683785ff9d541c7f5131742b8a818ac9acb2218da92f9b8a881d56c4b963237918e589fac22
24 +DIST neovim-0.4.3.tar.gz 9556199 BLAKE2B 831f4d4950f4fa2cd9c7393824bbb5eb571ae5759d13af9f320e0fa351fa155413a5be580f010f2c7ab43ca7bc10c569ccf6e3ba29efc7f5a035576b030b216d SHA512 e13853fa296eda8618f389c71b6cbbd6f01d561615e80cc92959131dd10e395b1c6732a7d9ef6dbb9fe3ea9da4c11485b464547e2d46b22e59b8a20214e861f5
25
26 diff --git a/app-editors/neovim/neovim-0.4.3.ebuild b/app-editors/neovim/neovim-0.4.3.ebuild
27 new file mode 100644
28 index 00000000000..0261cc8dfed
29 --- /dev/null
30 +++ b/app-editors/neovim/neovim-0.4.3.ebuild
31 @@ -0,0 +1,91 @@
32 +# Copyright 1999-2019 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +inherit cmake-utils eutils xdg
38 +
39 +DESCRIPTION="Vim-fork focused on extensibility and agility."
40 +HOMEPAGE="https://neovim.io"
41 +
42 +if [[ ${PV} == 9999 ]]; then
43 + inherit git-r3
44 + EGIT_REPO_URI="https://github.com/neovim/neovim.git"
45 +else
46 + SRC_URI="https://github.com/neovim/neovim/archive/v${PV}.tar.gz -> ${P}.tar.gz"
47 + KEYWORDS="~amd64 ~x86"
48 +fi
49 +
50 +LICENSE="Apache-2.0 vim"
51 +SLOT="0"
52 +IUSE="+luajit +nvimpager +tui"
53 +
54 +BDEPEND="
55 + dev-util/gperf
56 + virtual/libiconv
57 + virtual/libintl
58 + virtual/pkgconfig
59 +"
60 +
61 +DEPEND="
62 + dev-libs/libuv:0=
63 + >=dev-libs/libvterm-0.1.2
64 + dev-libs/msgpack:0=
65 + dev-lua/lpeg[luajit=]
66 + dev-lua/luv[luajit=]
67 + dev-lua/mpack[luajit=]
68 + net-libs/libnsl
69 + luajit? ( dev-lang/luajit:2 )
70 + !luajit? (
71 + dev-lang/lua:=
72 + dev-lua/LuaBitOp
73 + )
74 + tui? (
75 + dev-libs/libtermkey
76 + >=dev-libs/unibilium-2.0.0:0=
77 + )
78 +"
79 +
80 +RDEPEND="
81 + ${DEPEND}
82 + app-eselect/eselect-vi
83 +"
84 +
85 +CMAKE_BUILD_TYPE=Release
86 +
87 +src_prepare() {
88 + # use our system vim dir
89 + sed -e "/^# define SYS_VIMRC_FILE/s|\$VIM|${EPREFIX}/etc/vim|" \
90 + -i src/nvim/globals.h || die
91 +
92 + cmake-utils_src_prepare
93 +}
94 +
95 +src_configure() {
96 + local mycmakeargs=(
97 + -DFEAT_TUI=$(usex tui)
98 + -DPREFER_LUA=$(usex luajit no yes)
99 + )
100 + cmake-utils_src_configure
101 +}
102 +
103 +src_install() {
104 + cmake-utils_src_install
105 +
106 + # install a default configuration file
107 + insinto /etc/vim
108 + doins "${FILESDIR}"/sysinit.vim
109 +
110 + # conditionally install a symlink for nvimpager
111 + if use nvimpager; then
112 + dosym ../share/nvim/runtime/macros/less.sh /usr/bin/nvimpager
113 + fi
114 +}
115 +
116 +pkg_postinst() {
117 + xdg_pkg_postinst
118 + optfeature "clipboard support" x11-misc/xsel x11-misc/xclip gui-apps/wl-clipboard
119 + optfeature "Python plugin support" dev-python/neovim-python-client
120 + optfeature "Ruby plugin support" dev-ruby/neovim-ruby-client
121 + optfeature "remote/nvr support" dev-python/neovim-remote
122 +}