Gentoo Archives: gentoo-commits

From: Patrice Clement <monsieurp@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-editors/neovim/
Date: Mon, 27 Aug 2018 19:40:22
Message-Id: 1535398804.4026363b27ff4474bd800848cc050c59c43134e4.monsieurp@gentoo
1 commit: 4026363b27ff4474bd800848cc050c59c43134e4
2 Author: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
3 AuthorDate: Mon Aug 27 19:39:19 2018 +0000
4 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
5 CommitDate: Mon Aug 27 19:40:04 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4026363b
7
8 app-editors/neovim: version bump.
9
10 Closes: https://bugs.gentoo.org/664544
11 Package-Manager: Portage-2.3.40, Repoman-2.3.9
12
13 app-editors/neovim/Manifest | 1 +
14 app-editors/neovim/neovim-0.3.1.ebuild | 94 ++++++++++++++++++++++++++++++++++
15 2 files changed, 95 insertions(+)
16
17 diff --git a/app-editors/neovim/Manifest b/app-editors/neovim/Manifest
18 index 26d9e88a82c..735553ccd99 100644
19 --- a/app-editors/neovim/Manifest
20 +++ b/app-editors/neovim/Manifest
21 @@ -1,3 +1,4 @@
22 DIST neovim-0.2.0.tar.gz 7846467 BLAKE2B ee929122b3855ccab6247a0e8ab975b09d77e1034229ea324ed82ad705cacbd39f55d2fa96eea3f3677c7efe64c69ebecedd5fde09e508a6fd23acb6a1f5b489 SHA512 fc4be03c5bee1c9928376938679f9a900f3ee2e58df817d1cb9b5af51350dccca63a7638114b0326ec4565a047faaa4b50fecfc932c1d59ee92efa54625e22cd
23 DIST neovim-0.2.2.tar.gz 8325879 BLAKE2B dbf43c5927b8c8719adae9a3f73c57429de47f1b7c7489a118b7467df2f0d32cd02df8e10889727b4dd77fe8b4fb4f95520c678d6775d5d908705770a47cec0c SHA512 5609defe86ac98356f1b9ae9adc6049bb4df920a9a2ae3104f761d52d4dd54cbc84d2596231595dd9b0aa97201fef2121e6c5c86a19267ab6b871dbf4b568209
24 DIST neovim-0.3.0.tar.gz 8903630 BLAKE2B 44936f0042be1771725a42168865d65f9afe048c116ed0d5f1542dffd8206a21dc4cbab1e08e97fdc27083251655c43df0451c5808ed6c6ad99eb2d582c55b9b SHA512 8944be5562a69d5da5bce3a6673cc0b1930eb5592eb15c40139a1991f89f63435141449e7b4371ee28ff426575fcad475396e3d982004e17a902bda1d8ae6a95
25 +DIST neovim-0.3.1.tar.gz 8937900 BLAKE2B 05de31d194a69b9cecd34210ecfe7460968f4255c850b9bb93b8ab8f5721463c434dd9249a43153c6e65584192bbe0a2720a474c5d8b3b73776148179d18943b SHA512 42c541608509dc0335203ee1c008045f0eaeebce8e18dffc554ab22a029da700bba9b8c721bd9d68337ddb4a56f8cf034fad2a3eb88d36baf8295e6648fce506
26
27 diff --git a/app-editors/neovim/neovim-0.3.1.ebuild b/app-editors/neovim/neovim-0.3.1.ebuild
28 new file mode 100644
29 index 00000000000..09b68d65492
30 --- /dev/null
31 +++ b/app-editors/neovim/neovim-0.3.1.ebuild
32 @@ -0,0 +1,94 @@
33 +# Copyright 1999-2018 Gentoo Foundation
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=6
37 +
38 +inherit cmake-utils xdg-utils
39 +
40 +DESCRIPTION="Vim-fork focused on extensibility and agility."
41 +HOMEPAGE="https://neovim.io"
42 +
43 +if [[ ${PV} == 9999 ]]; then
44 + inherit git-r3
45 + EGIT_REPO_URI="https://github.com/neovim/neovim.git"
46 +else
47 + SRC_URI="https://github.com/neovim/neovim/archive/v${PV}.tar.gz -> ${P}.tar.gz"
48 + KEYWORDS="~amd64 ~x86"
49 +fi
50 +
51 +LICENSE="Apache-2.0 vim"
52 +SLOT="0"
53 +IUSE="+clipboard +luajit +nvimpager python remote ruby +tui +jemalloc"
54 +
55 +CDEPEND="
56 + dev-libs/libuv
57 + dev-libs/msgpack
58 + luajit? ( dev-lang/luajit:2 )
59 + !luajit? (
60 + dev-lang/lua:=
61 + dev-lua/LuaBitOp
62 + )
63 + tui? (
64 + dev-libs/libtermkey
65 + dev-libs/unibilium
66 + )
67 + dev-libs/libvterm
68 + dev-lua/lpeg[luajit=]
69 + dev-lua/mpack[luajit=]
70 + jemalloc? ( dev-libs/jemalloc )"
71 +
72 +DEPEND="
73 + ${CDEPEND}
74 + dev-util/gperf
75 + virtual/libiconv
76 + virtual/libintl"
77 +
78 +RDEPEND="
79 + ${CDEPEND}
80 + python? ( dev-python/neovim-python-client )
81 + ruby? ( dev-ruby/neovim-ruby-client )
82 + remote? ( dev-python/neovim-remote )
83 + clipboard? ( || ( x11-misc/xsel x11-misc/xclip ) )"
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 + # add eclass to bash filetypes
93 + sed -e 's|*.ebuild|*.ebuild,*.eclass|' -i runtime/filetype.vim || die
94 +
95 + cmake-utils_src_prepare
96 +}
97 +
98 +src_configure() {
99 + local mycmakeargs=(
100 + -DFEAT_TUI=$(usex tui)
101 + -DENABLE_JEMALLOC=$(usex jemalloc)
102 + -DPREFER_LUA=$(usex luajit no yes)
103 + )
104 + cmake-utils_src_configure
105 +}
106 +
107 +src_install() {
108 + cmake-utils_src_install
109 +
110 + # install a default configuration file
111 + insinto /etc/vim
112 + doins "${FILESDIR}"/sysinit.vim
113 +
114 + # conditionally install a symlink for nvimpager
115 + if use nvimpager; then
116 + dosym ../share/nvim/runtime/macros/less.sh /usr/bin/nvimpager
117 + fi
118 +}
119 +
120 +pkg_postinst() {
121 + xdg_desktop_database_update
122 +}
123 +
124 +pkg_postrm() {
125 + xdg_desktop_database_update
126 +}