Gentoo Archives: gentoo-commits

From: Marek Szuba <marecki@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: profiles/, app-editors/gvim/
Date: Mon, 21 Dec 2020 13:11:39
Message-Id: 1608556284.bc98ebe7c9439c79cd85885522a48330bca3bda5.marecki@gentoo
1 commit: bc98ebe7c9439c79cd85885522a48330bca3bda5
2 Author: Marek Szuba <marecki <AT> gentoo <DOT> org>
3 AuthorDate: Mon Dec 21 13:10:29 2020 +0000
4 Commit: Marek Szuba <marecki <AT> gentoo <DOT> org>
5 CommitDate: Mon Dec 21 13:11:24 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bc98ebe7
7
8 app-editors/gvim: migrate to lua-single.eclass
9
10 Same as with app-editors/vim.
11
12 Closes: https://bugs.gentoo.org/752528
13 Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>
14
15 ...{gvim-9999.ebuild => gvim-8.2.0814-r100.ebuild} | 25 ++++++++++++++++------
16 app-editors/gvim/gvim-9999.ebuild | 25 ++++++++++++++++------
17 profiles/package.mask | 1 +
18 3 files changed, 37 insertions(+), 14 deletions(-)
19
20 diff --git a/app-editors/gvim/gvim-9999.ebuild b/app-editors/gvim/gvim-8.2.0814-r100.ebuild
21 similarity index 94%
22 copy from app-editors/gvim/gvim-9999.ebuild
23 copy to app-editors/gvim/gvim-8.2.0814-r100.ebuild
24 index 3542682bc03..0c2806893c8 100644
25 --- a/app-editors/gvim/gvim-9999.ebuild
26 +++ b/app-editors/gvim/gvim-8.2.0814-r100.ebuild
27 @@ -3,11 +3,12 @@
28
29 EAPI=7
30 VIM_VERSION="8.2"
31 +LUA_COMPAT=( lua5-1 luajit )
32 PYTHON_COMPAT=( python3_{6,7,8} )
33 PYTHON_REQ_USE="threads(+)"
34 USE_RUBY="ruby24 ruby25 ruby26 ruby27"
35
36 -inherit vim-doc flag-o-matic xdg-utils bash-completion-r1 prefix python-single-r1 ruby-single
37 +inherit vim-doc flag-o-matic xdg-utils bash-completion-r1 prefix lua-single python-single-r1 ruby-single
38
39 if [[ ${PV} == 9999* ]]; then
40 inherit git-r3
41 @@ -24,8 +25,9 @@ HOMEPAGE="https://vim.sourceforge.io/ https://github.com/vim/vim"
42
43 SLOT="0"
44 LICENSE="vim"
45 -IUSE="acl aqua cscope debug gtk gtk2 lua luajit motif neXt netbeans nls perl python racket ruby selinux session sound tcl"
46 +IUSE="acl aqua cscope debug gtk gtk2 lua motif neXt netbeans nls perl python racket ruby selinux session sound tcl"
47 REQUIRED_USE="
48 + lua? ( ${LUA_REQUIRED_USE} )
49 python? ( ${PYTHON_REQUIRED_USE} )
50 "
51
52 @@ -59,8 +61,8 @@ RDEPEND="
53 )
54 cscope? ( dev-util/cscope )
55 lua? (
56 - luajit? ( dev-lang/luajit:2= )
57 - !luajit? ( dev-lang/lua:0[deprecated] )
58 + ${LUA_DEPS}
59 + $(lua_gen_impl_dep 'deprecated' lua5-1)
60 )
61 nls? ( virtual/libintl )
62 perl? ( dev-lang/perl:= )
63 @@ -77,6 +79,8 @@ DEPEND="${RDEPEND}
64 virtual/pkgconfig
65 nls? ( sys-devel/gettext )
66 "
67 +# configure runs the Lua interpreter
68 +BDEPEND="lua? ( ${LUA_DEPS} )"
69
70 # various failures (bugs #630042 and #682320)
71 RESTRICT="test"
72 @@ -92,6 +96,7 @@ pkg_setup() {
73 mkdir -p "${T}"/home || die
74 export HOME="${T}"/home
75
76 + use lua && lua-single_pkg_setup
77 use python && python-single-r1_pkg_setup
78 }
79
80 @@ -194,13 +199,11 @@ src_configure() {
81 $(use_enable sound canberra)
82 $(use_enable acl)
83 $(use_enable cscope)
84 - $(use_enable lua luainterp)
85 - $(use_with luajit)
86 $(use_enable netbeans)
87 $(use_enable nls)
88 $(use_enable perl perlinterp)
89 $(use_enable python python3interp)
90 - $(use_with python python3-command $(type -P $(eselect python show --python3)))
91 + $(use_with python python3-command "${PYTHON}")
92 $(use_enable racket mzschemeinterp)
93 $(use_enable ruby rubyinterp)
94 $(use_enable selinux)
95 @@ -215,6 +218,14 @@ src_configure() {
96 '/# define FEAT_CSCOPE/d' src/feature.h || die "couldn't disable cscope"
97 fi
98
99 + if use lua; then
100 + myconf+=(
101 + --enable-luainterp
102 + $(use_with lua_single_target_luajit luajit)
103 + --with-lua-prefix="${EPREFIX}/usr"
104 + )
105 + fi
106 +
107 # gvim's GUI preference order is as follows:
108 # aqua CARBON (not tested)
109 # -aqua gtk GTK3
110
111 diff --git a/app-editors/gvim/gvim-9999.ebuild b/app-editors/gvim/gvim-9999.ebuild
112 index 3542682bc03..0c2806893c8 100644
113 --- a/app-editors/gvim/gvim-9999.ebuild
114 +++ b/app-editors/gvim/gvim-9999.ebuild
115 @@ -3,11 +3,12 @@
116
117 EAPI=7
118 VIM_VERSION="8.2"
119 +LUA_COMPAT=( lua5-1 luajit )
120 PYTHON_COMPAT=( python3_{6,7,8} )
121 PYTHON_REQ_USE="threads(+)"
122 USE_RUBY="ruby24 ruby25 ruby26 ruby27"
123
124 -inherit vim-doc flag-o-matic xdg-utils bash-completion-r1 prefix python-single-r1 ruby-single
125 +inherit vim-doc flag-o-matic xdg-utils bash-completion-r1 prefix lua-single python-single-r1 ruby-single
126
127 if [[ ${PV} == 9999* ]]; then
128 inherit git-r3
129 @@ -24,8 +25,9 @@ HOMEPAGE="https://vim.sourceforge.io/ https://github.com/vim/vim"
130
131 SLOT="0"
132 LICENSE="vim"
133 -IUSE="acl aqua cscope debug gtk gtk2 lua luajit motif neXt netbeans nls perl python racket ruby selinux session sound tcl"
134 +IUSE="acl aqua cscope debug gtk gtk2 lua motif neXt netbeans nls perl python racket ruby selinux session sound tcl"
135 REQUIRED_USE="
136 + lua? ( ${LUA_REQUIRED_USE} )
137 python? ( ${PYTHON_REQUIRED_USE} )
138 "
139
140 @@ -59,8 +61,8 @@ RDEPEND="
141 )
142 cscope? ( dev-util/cscope )
143 lua? (
144 - luajit? ( dev-lang/luajit:2= )
145 - !luajit? ( dev-lang/lua:0[deprecated] )
146 + ${LUA_DEPS}
147 + $(lua_gen_impl_dep 'deprecated' lua5-1)
148 )
149 nls? ( virtual/libintl )
150 perl? ( dev-lang/perl:= )
151 @@ -77,6 +79,8 @@ DEPEND="${RDEPEND}
152 virtual/pkgconfig
153 nls? ( sys-devel/gettext )
154 "
155 +# configure runs the Lua interpreter
156 +BDEPEND="lua? ( ${LUA_DEPS} )"
157
158 # various failures (bugs #630042 and #682320)
159 RESTRICT="test"
160 @@ -92,6 +96,7 @@ pkg_setup() {
161 mkdir -p "${T}"/home || die
162 export HOME="${T}"/home
163
164 + use lua && lua-single_pkg_setup
165 use python && python-single-r1_pkg_setup
166 }
167
168 @@ -194,13 +199,11 @@ src_configure() {
169 $(use_enable sound canberra)
170 $(use_enable acl)
171 $(use_enable cscope)
172 - $(use_enable lua luainterp)
173 - $(use_with luajit)
174 $(use_enable netbeans)
175 $(use_enable nls)
176 $(use_enable perl perlinterp)
177 $(use_enable python python3interp)
178 - $(use_with python python3-command $(type -P $(eselect python show --python3)))
179 + $(use_with python python3-command "${PYTHON}")
180 $(use_enable racket mzschemeinterp)
181 $(use_enable ruby rubyinterp)
182 $(use_enable selinux)
183 @@ -215,6 +218,14 @@ src_configure() {
184 '/# define FEAT_CSCOPE/d' src/feature.h || die "couldn't disable cscope"
185 fi
186
187 + if use lua; then
188 + myconf+=(
189 + --enable-luainterp
190 + $(use_with lua_single_target_luajit luajit)
191 + --with-lua-prefix="${EPREFIX}/usr"
192 + )
193 + fi
194 +
195 # gvim's GUI preference order is as follows:
196 # aqua CARBON (not tested)
197 # -aqua gtk GTK3
198
199 diff --git a/profiles/package.mask b/profiles/package.mask
200 index 954d79f7fb8..37df93931b2 100644
201 --- a/profiles/package.mask
202 +++ b/profiles/package.mask
203 @@ -442,6 +442,7 @@ kde-apps/kdebase-meta:5
204 >=app-benchmarks/wrk-4.1.0-r100
205 >=app-crypt/cardpeek-0.8.4
206 >=app-crypt/ekeyd-1.1.5-r100
207 +>=app-editors/gvim-8.2.0814-r100
208 >=app-editors/neovim-0.4.4-r100
209 =app-editors/scite-4.4.4-r10
210 >=app-editors/vim-8.2.0814-r100