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: Sun, 06 Dec 2015 21:57:16
Message-Id: 1449439038.945f73f7acb85f9d35ae68baccb51c909dc9ec1b.tranquility@gentoo
1 commit: 945f73f7acb85f9d35ae68baccb51c909dc9ec1b
2 Author: Ole Reifschneider <tranquility <AT> gentoo <DOT> org>
3 AuthorDate: Sun Dec 6 21:55:08 2015 +0000
4 Commit: Ole Reifschneider <tranquility <AT> gentoo <DOT> org>
5 CommitDate: Sun Dec 6 21:57:18 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=945f73f7
7
8 app-editors/neovim: Add version 0.1.1
9
10 Package-Manager: portage-2.2.25
11
12 app-editors/neovim/Manifest | 1 +
13 app-editors/neovim/neovim-0.1.1.ebuild | 78 ++++++++++++++++++++++++++++++++++
14 2 files changed, 79 insertions(+)
15
16 diff --git a/app-editors/neovim/Manifest b/app-editors/neovim/Manifest
17 index cf57844..fedeb44 100644
18 --- a/app-editors/neovim/Manifest
19 +++ b/app-editors/neovim/Manifest
20 @@ -1,2 +1,3 @@
21 DIST neovim-0.0.0_pre20151025.tar.xz 4947384 SHA256 62b3bd93e0395c3f2d1f829a1e4e444ac081de1acc99114f6ceba7d61a7055a3 SHA512 a0390097cc0cfae401779ddd229a6237fa63522caaa6515dfff025b506b83e2597a10711bae0a1a60770d2a244963aa56af58f734885ce73091a19865a420bf0 WHIRLPOOL becfec39f4aa1a22f48991f17dbca003f38dfa6b085ed6043e34ed7e852217dddd3e4fce4d33873b0385e1b46754ae11db21ce47cbecd12822e5073d38a5fda1
22 DIST neovim-0.1.0.tar.gz 7644722 SHA256 e8659558103b8f5a65aac84007a12e3581b32736321778028017fd07365cfff8 SHA512 b91e5ce5561155ecb3554f56fd4371219612ed3bc35dfeb60a225eb1dbe1473fce5f573eb996bdb01fd9569f764da86493108665c98dc7555fc44f410befb00a WHIRLPOOL 33d7b88588c214ddc670a7b3cffcfd855699e90b15c5e327ac0c17972fddb73bd519b1a8eb609f8454d6c463f18764f17bc1314b6b27448c5ac4607cdbce1551
23 +DIST neovim-0.1.1.tar.gz 7584560 SHA256 f39bcab23457c66ce0d67dcf8029743703f860413db0070f75d4f0ffad27c6c1 SHA512 7098bef9b81862f009789cff49a063d56d52d2f5c74e2fe68ad65c952c61c07eabeb6be150b369a5a179957f20187de3051caaa30b1e0cb4ec1e9e49b4e77333 WHIRLPOOL 9df0d6d59bdda2def2d8a393eec579f341256aff18c485cbb08c96637c597ee4df73a68a09105e776605194412274df2c82b78f7ca0e0bc1e20d4780fcdfa57f
24
25 diff --git a/app-editors/neovim/neovim-0.1.1.ebuild b/app-editors/neovim/neovim-0.1.1.ebuild
26 new file mode 100644
27 index 0000000..3c041c4
28 --- /dev/null
29 +++ b/app-editors/neovim/neovim-0.1.1.ebuild
30 @@ -0,0 +1,78 @@
31 +# Copyright 1999-2015 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +# $Id$
34 +
35 +EAPI=5
36 +inherit cmake-utils flag-o-matic
37 +
38 +DESCRIPTION="Vim-fork focused on extensibility and agility."
39 +HOMEPAGE="https://neovim.io"
40 +if [[ ${PV} == 9999 ]]; then
41 + inherit git-r3
42 + EGIT_REPO_URI="git://github.com/neovim/neovim.git"
43 +else
44 + SRC_URI="https://github.com/neovim/neovim/archive/v${PV}.tar.gz -> ${P}.tar.gz"
45 + KEYWORDS="~amd64 ~x86"
46 +fi
47 +
48 +LICENSE="Apache-2.0 vim"
49 +SLOT="0"
50 +IUSE="+nvimpager perl python +jemalloc"
51 +
52 +CDEPEND="dev-lang/luajit:2
53 + >=dev-libs/libtermkey-0.17
54 + >=dev-libs/libuv-1.2.0
55 + >=dev-libs/msgpack-0.6.0_pre20150220
56 + >=dev-libs/unibilium-1.1.1
57 + dev-libs/libvterm
58 + dev-lua/lpeg
59 + dev-lua/messagepack
60 + jemalloc? ( dev-libs/jemalloc )
61 +"
62 +DEPEND="${CDEPEND}
63 + virtual/libiconv
64 + virtual/libintl"
65 +RDEPEND="${CDEPEND}
66 + perl? ( dev-lang/perl )
67 + python? ( dev-python/neovim-python-client )"
68 +
69 +CMAKE_BUILD_TYPE=RelWithDebInfo
70 +
71 +src_prepare() {
72 + # use our system vim dir
73 + sed -e '/^# define SYS_VIMRC_FILE/s|$VIM|'"${EPREFIX}"'/etc/vim|' \
74 + -i src/nvim/os/unix_defs.h || die
75 +
76 + # add eclass to bash filetypes
77 + sed -e 's|*.ebuild|*.ebuild,*.eclass|' -i runtime/filetype.vim || die
78 +
79 + # make less.sh macro actually work with neovim
80 + sed -e 's|vim |nvim |g' -i runtime/macros/less.sh || die
81 +
82 + cmake-utils_src_prepare
83 +}
84 +
85 +src_configure() {
86 + export USE_BUNDLED_DEPS=OFF
87 + append-cflags "-Wno-error"
88 + local mycmakeargs=(
89 + $(cmake-utils_use_enable jemalloc JEMALLOC)
90 + -DLIBUNIBILIUM_USE_STATIC=OFF
91 + -DLIBTERMKEY_USE_STATIC=OFF
92 + -DLIBVTERM_USE_STATIC=OFF
93 + )
94 + cmake-utils_src_configure
95 +}
96 +
97 +src_install() {
98 + cmake-utils_src_install
99 +
100 + # install a default configuration file
101 + insinto /etc/vim
102 + doins "${FILESDIR}"/sysinit.vim
103 +
104 + # conditionally install a symlink for nvimpager
105 + if use nvimpager; then
106 + dosym /usr/share/nvim/runtime/macros/less.sh /usr/bin/nvimpager
107 + fi
108 +}