Gentoo Archives: gentoo-commits

From: Ole Reifschneider <tranquility@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-editors/neovim/
Date: Mon, 28 Nov 2016 19:04:35
Message-Id: 1480359861.621ea4cd05f71b8dfc87a91b503380b5b487e83f.tranquility@gentoo
1 commit: 621ea4cd05f71b8dfc87a91b503380b5b487e83f
2 Author: Ole Reifschneider <tranquility <AT> gentoo <DOT> org>
3 AuthorDate: Mon Nov 28 19:02:15 2016 +0000
4 Commit: Ole Reifschneider <tranquility <AT> gentoo <DOT> org>
5 CommitDate: Mon Nov 28 19:04:21 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=621ea4cd
7
8 Revert "app-editors/neovim: Remove old versions"
9
10 This reverts commit b1a2aa7a9d0c087a3a480df01c0e6e1437cad579.
11
12 This broke the tree because x86 support was removed in later versions.
13 For now this just brings back the old versions before fixing the problem
14 completely.
15
16 app-editors/neovim/Manifest | 5 ++
17 app-editors/neovim/neovim-0.1.0.ebuild | 78 +++++++++++++++++++++++++++++++
18 app-editors/neovim/neovim-0.1.1-r1.ebuild | 78 +++++++++++++++++++++++++++++++
19 app-editors/neovim/neovim-0.1.2.ebuild | 78 +++++++++++++++++++++++++++++++
20 app-editors/neovim/neovim-0.1.3.ebuild | 75 +++++++++++++++++++++++++++++
21 app-editors/neovim/neovim-0.1.4.ebuild | 75 +++++++++++++++++++++++++++++
22 app-editors/neovim/neovim-0.1.5.ebuild | 77 ++++++++++++++++++++++++++++++
23 7 files changed, 466 insertions(+)
24
25 diff --git a/app-editors/neovim/Manifest b/app-editors/neovim/Manifest
26 index 1c0f3af..e395363 100644
27 --- a/app-editors/neovim/Manifest
28 +++ b/app-editors/neovim/Manifest
29 @@ -1,3 +1,8 @@
30 +DIST neovim-0.1.0.tar.gz 7644722 SHA256 e8659558103b8f5a65aac84007a12e3581b32736321778028017fd07365cfff8 SHA512 b91e5ce5561155ecb3554f56fd4371219612ed3bc35dfeb60a225eb1dbe1473fce5f573eb996bdb01fd9569f764da86493108665c98dc7555fc44f410befb00a WHIRLPOOL 33d7b88588c214ddc670a7b3cffcfd855699e90b15c5e327ac0c17972fddb73bd519b1a8eb609f8454d6c463f18764f17bc1314b6b27448c5ac4607cdbce1551
31 +DIST neovim-0.1.1.tar.gz 7584560 SHA256 f39bcab23457c66ce0d67dcf8029743703f860413db0070f75d4f0ffad27c6c1 SHA512 7098bef9b81862f009789cff49a063d56d52d2f5c74e2fe68ad65c952c61c07eabeb6be150b369a5a179957f20187de3051caaa30b1e0cb4ec1e9e49b4e77333 WHIRLPOOL 9df0d6d59bdda2def2d8a393eec579f341256aff18c485cbb08c96637c597ee4df73a68a09105e776605194412274df2c82b78f7ca0e0bc1e20d4780fcdfa57f
32 +DIST neovim-0.1.2.tar.gz 7610804 SHA256 549881465eff82454660ae92d857d6ffa22383d45c94c46f3753fd1b0e699247 SHA512 dc03d92ff296f3ff55225d514479f1ac201a5a65eb8a6c02e71935ca44feb8ab15897b26a2ea46e53771f902c57b027d07e02f95673268ee060c6b77c4aa90e4 WHIRLPOOL ef1253249120c89c6efc15520263c889a9972df0c11e9353dedeee112c46ee9b92355fa3dabdf2d15cb7d0416681d1c8b55a9c02266048154f3afe104fdf4ff9
33 +DIST neovim-0.1.3.tar.gz 7636777 SHA256 7a86892d941b8829537ad46864b9a363d009ba56aeefdef2ee15ffa3eee5f92b SHA512 70c979fa06784cae4ded43c7fef7906c743729ed43a50003deec1d2ab7a800bfeab81c394893796a06d0f37811867062b2f766936c2a871f7d968b350729d4c8 WHIRLPOOL 1b3ccb589b3b2ee6d0e6bb1e2139c6ae508859637a0b075a6ccef5168386737713549abab37c7148d9d44d19be54a75587253144aaa1b4c5315408838cdaa4c5
34 +DIST neovim-0.1.4.tar.gz 7678847 SHA256 bb7e359eb83db20c5ec5984b470b249372b6dcd813ae2ccf72c01cce560f93e9 SHA512 e96e768703e4b842355a7543e5c9980b148b9b10cd032570fb420e3e1207102f9769fa6d36fba1d263ed9333d339eab387a196d4a8f724d89db2800097b89d37 WHIRLPOOL 6512b91931168c64fc34f626aeb409c8dc9612e00389a86c7fc07232fd8d26bd289d87dbbf8f01ac9297aa48c33682dc129ab936d0b24aee3c38627e863cc9e6
35 DIST neovim-0.1.5.tar.gz 7813974 SHA256 f286ff7994ef1835272285425d65804063f112c91925fee3ef8865282a6d2b7e SHA512 3332b151d23b4f2b133b8f30f4af41686f7092cebbc7ab402b742be7b302bb6acbe9a01c2f475caad8d14a78dd3570109a5c447ab31f0b65ebf442631a31c6f9 WHIRLPOOL be7cd42978385c62af21cf06a48650e361454ff1c79aa783ed7a221e82d73bf3437a9876c9635f27639e3953fdfbe3ecb6958780341d0fbc80fb465ce50cdf29
36 DIST neovim-0.1.6.tar.gz 7810818 SHA256 a9fe7aadd38ef015f82ec340f6b6c0629d02c9ca4d85352db0934ae511d2f02a SHA512 360d69bc11a3cb7b2c203adc7e76edad736b1a2fb7033d2d0c6444da168053ea0b621daf7978e9c158e14c5e04af8599005bf5eb800d9d1776007257b0e0e56f WHIRLPOOL 55bd68ab6746369a9c7fbbedb3ddf55c517bfa59a3320ebf04e643acc287d1ac74fc6548fa8341c4d909422a4c9dc2bb54f991a4ef8d516ecdecf3723aaddd16
37 DIST neovim-0.1.7.tar.gz 7601279 SHA256 d8f885d019b1ad608f36ae23b8f1b15b7e33585e16f7514666ab6c9809bb4b7e SHA512 f7dbac4b2090fbf9764585ebf147c529b655d6e30cca9404cd161e2bd78f3aaa2f714d86a8c3efd1935dc92363757c381833d0059043807db0bea3db2fc6d10c WHIRLPOOL b78cac30a3992f9a1cda50e000cf725d5a35767b18d330ec0f8a5d83b89d8979763ae025ce67b507f1bb29d028c51edc17b773193793f06558f7cb6877bcd698
38
39 diff --git a/app-editors/neovim/neovim-0.1.0.ebuild b/app-editors/neovim/neovim-0.1.0.ebuild
40 new file mode 100644
41 index 00000000..3c041c4
42 --- /dev/null
43 +++ b/app-editors/neovim/neovim-0.1.0.ebuild
44 @@ -0,0 +1,78 @@
45 +# Copyright 1999-2015 Gentoo Foundation
46 +# Distributed under the terms of the GNU General Public License v2
47 +# $Id$
48 +
49 +EAPI=5
50 +inherit cmake-utils flag-o-matic
51 +
52 +DESCRIPTION="Vim-fork focused on extensibility and agility."
53 +HOMEPAGE="https://neovim.io"
54 +if [[ ${PV} == 9999 ]]; then
55 + inherit git-r3
56 + EGIT_REPO_URI="git://github.com/neovim/neovim.git"
57 +else
58 + SRC_URI="https://github.com/neovim/neovim/archive/v${PV}.tar.gz -> ${P}.tar.gz"
59 + KEYWORDS="~amd64 ~x86"
60 +fi
61 +
62 +LICENSE="Apache-2.0 vim"
63 +SLOT="0"
64 +IUSE="+nvimpager perl python +jemalloc"
65 +
66 +CDEPEND="dev-lang/luajit:2
67 + >=dev-libs/libtermkey-0.17
68 + >=dev-libs/libuv-1.2.0
69 + >=dev-libs/msgpack-0.6.0_pre20150220
70 + >=dev-libs/unibilium-1.1.1
71 + dev-libs/libvterm
72 + dev-lua/lpeg
73 + dev-lua/messagepack
74 + jemalloc? ( dev-libs/jemalloc )
75 +"
76 +DEPEND="${CDEPEND}
77 + virtual/libiconv
78 + virtual/libintl"
79 +RDEPEND="${CDEPEND}
80 + perl? ( dev-lang/perl )
81 + python? ( dev-python/neovim-python-client )"
82 +
83 +CMAKE_BUILD_TYPE=RelWithDebInfo
84 +
85 +src_prepare() {
86 + # use our system vim dir
87 + sed -e '/^# define SYS_VIMRC_FILE/s|$VIM|'"${EPREFIX}"'/etc/vim|' \
88 + -i src/nvim/os/unix_defs.h || die
89 +
90 + # add eclass to bash filetypes
91 + sed -e 's|*.ebuild|*.ebuild,*.eclass|' -i runtime/filetype.vim || die
92 +
93 + # make less.sh macro actually work with neovim
94 + sed -e 's|vim |nvim |g' -i runtime/macros/less.sh || die
95 +
96 + cmake-utils_src_prepare
97 +}
98 +
99 +src_configure() {
100 + export USE_BUNDLED_DEPS=OFF
101 + append-cflags "-Wno-error"
102 + local mycmakeargs=(
103 + $(cmake-utils_use_enable jemalloc JEMALLOC)
104 + -DLIBUNIBILIUM_USE_STATIC=OFF
105 + -DLIBTERMKEY_USE_STATIC=OFF
106 + -DLIBVTERM_USE_STATIC=OFF
107 + )
108 + cmake-utils_src_configure
109 +}
110 +
111 +src_install() {
112 + cmake-utils_src_install
113 +
114 + # install a default configuration file
115 + insinto /etc/vim
116 + doins "${FILESDIR}"/sysinit.vim
117 +
118 + # conditionally install a symlink for nvimpager
119 + if use nvimpager; then
120 + dosym /usr/share/nvim/runtime/macros/less.sh /usr/bin/nvimpager
121 + fi
122 +}
123
124 diff --git a/app-editors/neovim/neovim-0.1.1-r1.ebuild b/app-editors/neovim/neovim-0.1.1-r1.ebuild
125 new file mode 100644
126 index 00000000..303098a
127 --- /dev/null
128 +++ b/app-editors/neovim/neovim-0.1.1-r1.ebuild
129 @@ -0,0 +1,78 @@
130 +# Copyright 1999-2015 Gentoo Foundation
131 +# Distributed under the terms of the GNU General Public License v2
132 +# $Id$
133 +
134 +EAPI=5
135 +inherit cmake-utils flag-o-matic
136 +
137 +DESCRIPTION="Vim-fork focused on extensibility and agility."
138 +HOMEPAGE="https://neovim.io"
139 +if [[ ${PV} == 9999 ]]; then
140 + inherit git-r3
141 + EGIT_REPO_URI="git://github.com/neovim/neovim.git"
142 +else
143 + SRC_URI="https://github.com/neovim/neovim/archive/v${PV}.tar.gz -> ${P}.tar.gz"
144 + KEYWORDS="~amd64 ~x86"
145 +fi
146 +
147 +LICENSE="Apache-2.0 vim"
148 +SLOT="0"
149 +IUSE="+nvimpager perl python +jemalloc"
150 +
151 +CDEPEND="dev-lang/luajit:2
152 + >=dev-libs/libtermkey-0.17
153 + >=dev-libs/libuv-1.2.0
154 + >=dev-libs/msgpack-0.6.0_pre20150220
155 + >=dev-libs/unibilium-1.1.1
156 + dev-libs/libvterm
157 + dev-lua/lpeg
158 + dev-lua/messagepack
159 + jemalloc? ( dev-libs/jemalloc )
160 +"
161 +DEPEND="${CDEPEND}
162 + virtual/libiconv
163 + virtual/libintl"
164 +RDEPEND="${CDEPEND}
165 + perl? ( dev-lang/perl )
166 + python? ( dev-python/neovim-python-client )"
167 +
168 +CMAKE_BUILD_TYPE=RelWithDebInfo
169 +
170 +src_prepare() {
171 + # use our system vim dir
172 + sed -e '/^# define SYS_VIMRC_FILE/s|$VIM|'"${EPREFIX}"'/etc/vim|' \
173 + -i src/nvim/globals.h || die
174 +
175 + # add eclass to bash filetypes
176 + sed -e 's|*.ebuild|*.ebuild,*.eclass|' -i runtime/filetype.vim || die
177 +
178 + # make less.sh macro actually work with neovim
179 + sed -e 's|vim |nvim |g' -i runtime/macros/less.sh || die
180 +
181 + cmake-utils_src_prepare
182 +}
183 +
184 +src_configure() {
185 + export USE_BUNDLED_DEPS=OFF
186 + append-cflags "-Wno-error"
187 + local mycmakeargs=(
188 + $(cmake-utils_use_enable jemalloc JEMALLOC)
189 + -DLIBUNIBILIUM_USE_STATIC=OFF
190 + -DLIBTERMKEY_USE_STATIC=OFF
191 + -DLIBVTERM_USE_STATIC=OFF
192 + )
193 + cmake-utils_src_configure
194 +}
195 +
196 +src_install() {
197 + cmake-utils_src_install
198 +
199 + # install a default configuration file
200 + insinto /etc/vim
201 + doins "${FILESDIR}"/sysinit.vim
202 +
203 + # conditionally install a symlink for nvimpager
204 + if use nvimpager; then
205 + dosym /usr/share/nvim/runtime/macros/less.sh /usr/bin/nvimpager
206 + fi
207 +}
208
209 diff --git a/app-editors/neovim/neovim-0.1.2.ebuild b/app-editors/neovim/neovim-0.1.2.ebuild
210 new file mode 100644
211 index 00000000..fdc0c7e
212 --- /dev/null
213 +++ b/app-editors/neovim/neovim-0.1.2.ebuild
214 @@ -0,0 +1,78 @@
215 +# Copyright 1999-2016 Gentoo Foundation
216 +# Distributed under the terms of the GNU General Public License v2
217 +# $Id$
218 +
219 +EAPI=5
220 +inherit cmake-utils flag-o-matic
221 +
222 +DESCRIPTION="Vim-fork focused on extensibility and agility."
223 +HOMEPAGE="https://neovim.io"
224 +if [[ ${PV} == 9999 ]]; then
225 + inherit git-r3
226 + EGIT_REPO_URI="git://github.com/neovim/neovim.git"
227 +else
228 + SRC_URI="https://github.com/neovim/neovim/archive/v${PV}.tar.gz -> ${P}.tar.gz"
229 + KEYWORDS="~amd64 ~x86"
230 +fi
231 +
232 +LICENSE="Apache-2.0 vim"
233 +SLOT="0"
234 +IUSE="+nvimpager perl python +jemalloc"
235 +
236 +CDEPEND="dev-lang/luajit:2
237 + >=dev-libs/libtermkey-0.17
238 + >=dev-libs/libuv-1.2.0
239 + >=dev-libs/msgpack-1.0.0
240 + >=dev-libs/unibilium-1.1.1
241 + dev-libs/libvterm
242 + dev-lua/lpeg
243 + dev-lua/messagepack
244 + jemalloc? ( dev-libs/jemalloc )
245 +"
246 +DEPEND="${CDEPEND}
247 + virtual/libiconv
248 + virtual/libintl"
249 +RDEPEND="${CDEPEND}
250 + perl? ( dev-lang/perl )
251 + python? ( dev-python/neovim-python-client )"
252 +
253 +CMAKE_BUILD_TYPE=RelWithDebInfo
254 +
255 +src_prepare() {
256 + # use our system vim dir
257 + sed -e '/^# define SYS_VIMRC_FILE/s|$VIM|'"${EPREFIX}"'/etc/vim|' \
258 + -i src/nvim/globals.h || die
259 +
260 + # add eclass to bash filetypes
261 + sed -e 's|*.ebuild|*.ebuild,*.eclass|' -i runtime/filetype.vim || die
262 +
263 + # make less.sh macro actually work with neovim
264 + sed -e 's|vim |nvim |g' -i runtime/macros/less.sh || die
265 +
266 + cmake-utils_src_prepare
267 +}
268 +
269 +src_configure() {
270 + export USE_BUNDLED_DEPS=OFF
271 + append-cflags "-Wno-error"
272 + local mycmakeargs=(
273 + $(cmake-utils_use_enable jemalloc JEMALLOC)
274 + -DLIBUNIBILIUM_USE_STATIC=OFF
275 + -DLIBTERMKEY_USE_STATIC=OFF
276 + -DLIBVTERM_USE_STATIC=OFF
277 + )
278 + cmake-utils_src_configure
279 +}
280 +
281 +src_install() {
282 + cmake-utils_src_install
283 +
284 + # install a default configuration file
285 + insinto /etc/vim
286 + doins "${FILESDIR}"/sysinit.vim
287 +
288 + # conditionally install a symlink for nvimpager
289 + if use nvimpager; then
290 + dosym /usr/share/nvim/runtime/macros/less.sh /usr/bin/nvimpager
291 + fi
292 +}
293
294 diff --git a/app-editors/neovim/neovim-0.1.3.ebuild b/app-editors/neovim/neovim-0.1.3.ebuild
295 new file mode 100644
296 index 00000000..53e1168
297 --- /dev/null
298 +++ b/app-editors/neovim/neovim-0.1.3.ebuild
299 @@ -0,0 +1,75 @@
300 +# Copyright 1999-2016 Gentoo Foundation
301 +# Distributed under the terms of the GNU General Public License v2
302 +# $Id$
303 +
304 +EAPI=5
305 +inherit cmake-utils flag-o-matic
306 +
307 +DESCRIPTION="Vim-fork focused on extensibility and agility."
308 +HOMEPAGE="https://neovim.io"
309 +if [[ ${PV} == 9999 ]]; then
310 + inherit git-r3
311 + EGIT_REPO_URI="git://github.com/neovim/neovim.git"
312 +else
313 + SRC_URI="https://github.com/neovim/neovim/archive/v${PV}.tar.gz -> ${P}.tar.gz"
314 + KEYWORDS="~amd64 ~x86"
315 +fi
316 +
317 +LICENSE="Apache-2.0 vim"
318 +SLOT="0"
319 +IUSE="+nvimpager perl python +jemalloc"
320 +
321 +CDEPEND="dev-lang/luajit:2
322 + >=dev-libs/libtermkey-0.17
323 + >=dev-libs/libuv-1.2.0
324 + >=dev-libs/msgpack-1.0.0
325 + >=dev-libs/unibilium-1.1.1
326 + dev-libs/libvterm
327 + dev-lua/lpeg
328 + dev-lua/messagepack
329 + jemalloc? ( dev-libs/jemalloc )
330 +"
331 +DEPEND="${CDEPEND}
332 + virtual/libiconv
333 + virtual/libintl"
334 +RDEPEND="${CDEPEND}
335 + perl? ( dev-lang/perl )
336 + python? ( dev-python/neovim-python-client )"
337 +
338 +CMAKE_BUILD_TYPE=RelWithDebInfo
339 +
340 +src_prepare() {
341 + # use our system vim dir
342 + sed -e '/^# define SYS_VIMRC_FILE/s|$VIM|'"${EPREFIX}"'/etc/vim|' \
343 + -i src/nvim/globals.h || die
344 +
345 + # add eclass to bash filetypes
346 + sed -e 's|*.ebuild|*.ebuild,*.eclass|' -i runtime/filetype.vim || die
347 +
348 + cmake-utils_src_prepare
349 +}
350 +
351 +src_configure() {
352 + export USE_BUNDLED_DEPS=OFF
353 + append-cflags "-Wno-error"
354 + local mycmakeargs=(
355 + $(cmake-utils_use_enable jemalloc JEMALLOC)
356 + -DLIBUNIBILIUM_USE_STATIC=OFF
357 + -DLIBTERMKEY_USE_STATIC=OFF
358 + -DLIBVTERM_USE_STATIC=OFF
359 + )
360 + cmake-utils_src_configure
361 +}
362 +
363 +src_install() {
364 + cmake-utils_src_install
365 +
366 + # install a default configuration file
367 + insinto /etc/vim
368 + doins "${FILESDIR}"/sysinit.vim
369 +
370 + # conditionally install a symlink for nvimpager
371 + if use nvimpager; then
372 + dosym /usr/share/nvim/runtime/macros/less.sh /usr/bin/nvimpager
373 + fi
374 +}
375
376 diff --git a/app-editors/neovim/neovim-0.1.4.ebuild b/app-editors/neovim/neovim-0.1.4.ebuild
377 new file mode 100644
378 index 00000000..a9c90de
379 --- /dev/null
380 +++ b/app-editors/neovim/neovim-0.1.4.ebuild
381 @@ -0,0 +1,75 @@
382 +# Copyright 1999-2016 Gentoo Foundation
383 +# Distributed under the terms of the GNU General Public License v2
384 +# $Id$
385 +
386 +EAPI=5
387 +inherit cmake-utils flag-o-matic
388 +
389 +DESCRIPTION="Vim-fork focused on extensibility and agility."
390 +HOMEPAGE="https://neovim.io"
391 +if [[ ${PV} == 9999 ]]; then
392 + inherit git-r3
393 + EGIT_REPO_URI="git://github.com/neovim/neovim.git"
394 +else
395 + SRC_URI="https://github.com/neovim/neovim/archive/v${PV}.tar.gz -> ${P}.tar.gz"
396 + KEYWORDS="~amd64"
397 +fi
398 +
399 +LICENSE="Apache-2.0 vim"
400 +SLOT="0"
401 +IUSE="+nvimpager perl python +jemalloc"
402 +
403 +CDEPEND="dev-lang/luajit:2
404 + >=dev-libs/libtermkey-0.17
405 + >=dev-libs/libuv-1.2.0
406 + >=dev-libs/msgpack-1.0.0
407 + >=dev-libs/unibilium-1.1.1
408 + dev-libs/libvterm
409 + dev-lua/lpeg[luajit]
410 + dev-lua/mpack[luajit]
411 + jemalloc? ( dev-libs/jemalloc )
412 +"
413 +DEPEND="${CDEPEND}
414 + virtual/libiconv
415 + virtual/libintl"
416 +RDEPEND="${CDEPEND}
417 + perl? ( dev-lang/perl )
418 + python? ( dev-python/neovim-python-client )"
419 +
420 +CMAKE_BUILD_TYPE=RelWithDebInfo
421 +
422 +src_prepare() {
423 + # use our system vim dir
424 + sed -e '/^# define SYS_VIMRC_FILE/s|$VIM|'"${EPREFIX}"'/etc/vim|' \
425 + -i src/nvim/globals.h || die
426 +
427 + # add eclass to bash filetypes
428 + sed -e 's|*.ebuild|*.ebuild,*.eclass|' -i runtime/filetype.vim || die
429 +
430 + cmake-utils_src_prepare
431 +}
432 +
433 +src_configure() {
434 + export USE_BUNDLED_DEPS=OFF
435 + append-cflags "-Wno-error"
436 + local mycmakeargs=(
437 + $(cmake-utils_use_enable jemalloc JEMALLOC)
438 + -DLIBUNIBILIUM_USE_STATIC=OFF
439 + -DLIBTERMKEY_USE_STATIC=OFF
440 + -DLIBVTERM_USE_STATIC=OFF
441 + )
442 + cmake-utils_src_configure
443 +}
444 +
445 +src_install() {
446 + cmake-utils_src_install
447 +
448 + # install a default configuration file
449 + insinto /etc/vim
450 + doins "${FILESDIR}"/sysinit.vim
451 +
452 + # conditionally install a symlink for nvimpager
453 + if use nvimpager; then
454 + dosym /usr/share/nvim/runtime/macros/less.sh /usr/bin/nvimpager
455 + fi
456 +}
457
458 diff --git a/app-editors/neovim/neovim-0.1.5.ebuild b/app-editors/neovim/neovim-0.1.5.ebuild
459 new file mode 100644
460 index 00000000..f23db6e
461 --- /dev/null
462 +++ b/app-editors/neovim/neovim-0.1.5.ebuild
463 @@ -0,0 +1,77 @@
464 +# Copyright 1999-2016 Gentoo Foundation
465 +# Distributed under the terms of the GNU General Public License v2
466 +# $Id$
467 +
468 +EAPI=5
469 +inherit cmake-utils flag-o-matic
470 +
471 +DESCRIPTION="Vim-fork focused on extensibility and agility."
472 +HOMEPAGE="https://neovim.io"
473 +if [[ ${PV} == 9999 ]]; then
474 + inherit git-r3
475 + EGIT_REPO_URI="git://github.com/neovim/neovim.git"
476 +else
477 + SRC_URI="https://github.com/neovim/neovim/archive/v${PV}.tar.gz -> ${P}.tar.gz"
478 + KEYWORDS="~amd64"
479 +fi
480 +
481 +LICENSE="Apache-2.0 vim"
482 +SLOT="0"
483 +IUSE="+nvimpager perl python ruby +jemalloc"
484 +
485 +CDEPEND="dev-lang/luajit:2
486 + >=dev-libs/libtermkey-0.17
487 + >=dev-libs/libuv-1.2.0
488 + >=dev-libs/msgpack-1.0.0
489 + >=dev-libs/unibilium-1.1.1
490 + dev-libs/libvterm
491 + dev-lua/lpeg[luajit]
492 + dev-lua/mpack[luajit]
493 + jemalloc? ( dev-libs/jemalloc )
494 +"
495 +DEPEND="${CDEPEND}
496 + virtual/libiconv
497 + virtual/libintl"
498 +RDEPEND="${CDEPEND}
499 + perl? ( dev-lang/perl )
500 + python? ( dev-python/neovim-python-client )
501 + ruby? ( dev-ruby/neovim-ruby-client )
502 +"
503 +
504 +CMAKE_BUILD_TYPE=RelWithDebInfo
505 +
506 +src_prepare() {
507 + # use our system vim dir
508 + sed -e '/^# define SYS_VIMRC_FILE/s|$VIM|'"${EPREFIX}"'/etc/vim|' \
509 + -i src/nvim/globals.h || die
510 +
511 + # add eclass to bash filetypes
512 + sed -e 's|*.ebuild|*.ebuild,*.eclass|' -i runtime/filetype.vim || die
513 +
514 + cmake-utils_src_prepare
515 +}
516 +
517 +src_configure() {
518 + export USE_BUNDLED_DEPS=OFF
519 + append-cflags "-Wno-error"
520 + local mycmakeargs=(
521 + $(cmake-utils_use_enable jemalloc JEMALLOC)
522 + -DLIBUNIBILIUM_USE_STATIC=OFF
523 + -DLIBTERMKEY_USE_STATIC=OFF
524 + -DLIBVTERM_USE_STATIC=OFF
525 + )
526 + cmake-utils_src_configure
527 +}
528 +
529 +src_install() {
530 + cmake-utils_src_install
531 +
532 + # install a default configuration file
533 + insinto /etc/vim
534 + doins "${FILESDIR}"/sysinit.vim
535 +
536 + # conditionally install a symlink for nvimpager
537 + if use nvimpager; then
538 + dosym /usr/share/nvim/runtime/macros/less.sh /usr/bin/nvimpager
539 + fi
540 +}