1 |
commit: d7b62acd7caa4fe0129e6172347bb0768830c4e6 |
2 |
Author: Marek Szuba <marecki <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Dec 21 13:06:11 2020 +0000 |
4 |
Commit: Marek Szuba <marecki <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Dec 21 13:11:21 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d7b62acd |
7 |
|
8 |
app-editors/vim: migrate to lua-single.eclass |
9 |
|
10 |
Both the latest release we have got in the tree and the live ebuild. |
11 |
Compatibility - same as in unmigrated ebuilds, with the USE=deprecated |
12 |
requirement on PUC Lua I didn't even bother testing newer versions. |
13 |
|
14 |
Closes: https://bugs.gentoo.org/752537 |
15 |
Signed-off-by: Marek Szuba <marecki <AT> gentoo.org> |
16 |
|
17 |
.../{vim-9999.ebuild => vim-8.2.0814-r100.ebuild} | 27 ++++++++++++++-------- |
18 |
app-editors/vim/vim-9999.ebuild | 27 ++++++++++++++-------- |
19 |
profiles/package.mask | 1 + |
20 |
3 files changed, 37 insertions(+), 18 deletions(-) |
21 |
|
22 |
diff --git a/app-editors/vim/vim-9999.ebuild b/app-editors/vim/vim-8.2.0814-r100.ebuild |
23 |
similarity index 93% |
24 |
copy from app-editors/vim/vim-9999.ebuild |
25 |
copy to app-editors/vim/vim-8.2.0814-r100.ebuild |
26 |
index 37285363833..c9e9b3a5b2e 100644 |
27 |
--- a/app-editors/vim/vim-9999.ebuild |
28 |
+++ b/app-editors/vim/vim-8.2.0814-r100.ebuild |
29 |
@@ -3,11 +3,12 @@ |
30 |
|
31 |
EAPI=7 |
32 |
VIM_VERSION="8.2" |
33 |
+LUA_COMPAT=( lua5-1 luajit ) |
34 |
PYTHON_COMPAT=( python3_{6,7,8} ) |
35 |
PYTHON_REQ_USE="threads(+)" |
36 |
USE_RUBY="ruby24 ruby25 ruby26 ruby27" |
37 |
|
38 |
-inherit vim-doc flag-o-matic bash-completion-r1 python-single-r1 ruby-single desktop xdg-utils |
39 |
+inherit vim-doc flag-o-matic bash-completion-r1 lua-single python-single-r1 ruby-single desktop xdg-utils |
40 |
|
41 |
if [[ ${PV} == 9999* ]] ; then |
42 |
inherit git-r3 |
43 |
@@ -23,8 +24,9 @@ HOMEPAGE="https://vim.sourceforge.io/ https://github.com/vim/vim" |
44 |
|
45 |
SLOT="0" |
46 |
LICENSE="vim" |
47 |
-IUSE="X acl cscope debug gpm lua luajit minimal nls perl python racket ruby selinux sound tcl terminal vim-pager" |
48 |
+IUSE="X acl cscope debug gpm lua minimal nls perl python racket ruby selinux sound tcl terminal vim-pager" |
49 |
REQUIRED_USE=" |
50 |
+ lua? ( ${LUA_REQUIRED_USE} ) |
51 |
python? ( ${PYTHON_REQUIRED_USE} ) |
52 |
vim-pager? ( !minimal ) |
53 |
" |
54 |
@@ -36,9 +38,8 @@ RDEPEND=" |
55 |
acl? ( kernel_linux? ( sys-apps/acl ) ) |
56 |
cscope? ( dev-util/cscope ) |
57 |
gpm? ( >=sys-libs/gpm-1.19.3 ) |
58 |
- lua? ( |
59 |
- luajit? ( dev-lang/luajit:2= ) |
60 |
- !luajit? ( dev-lang/lua:0[deprecated] ) |
61 |
+ lua? ( ${LUA_DEPS} |
62 |
+ $(lua_gen_impl_dep 'deprecated' lua5-1) |
63 |
) |
64 |
!minimal? ( ~app-editors/vim-core-${PV} ) |
65 |
vim-pager? ( app-editors/vim-core[-minimal] ) |
66 |
@@ -57,6 +58,8 @@ DEPEND=" |
67 |
sys-devel/autoconf |
68 |
nls? ( sys-devel/gettext ) |
69 |
" |
70 |
+# configure runs the Lua interpreter |
71 |
+BDEPEND="lua? ( ${LUA_DEPS} )" |
72 |
|
73 |
pkg_setup() { |
74 |
# people with broken alphabets run into trouble. bug 82186. |
75 |
@@ -67,6 +70,7 @@ pkg_setup() { |
76 |
mkdir -p "${T}"/home || die "mkdir failed" |
77 |
export HOME="${T}"/home |
78 |
|
79 |
+ use lua && lua-single_pkg_setup |
80 |
use python && python-single-r1_pkg_setup |
81 |
} |
82 |
|
83 |
@@ -198,13 +202,10 @@ src_configure() { |
84 |
$(use_enable acl) |
85 |
$(use_enable cscope) |
86 |
$(use_enable gpm) |
87 |
- $(use_enable lua luainterp) |
88 |
- $(usex lua "--with-lua-prefix=${EPREFIX}/usr" "") |
89 |
- $(use_with luajit) |
90 |
$(use_enable nls) |
91 |
$(use_enable perl perlinterp) |
92 |
$(use_enable python python3interp) |
93 |
- $(use_with python python3-command $(type -P $(eselect python show --python3))) |
94 |
+ $(use_with python python3-command "${PYTHON}") |
95 |
$(use_enable racket mzschemeinterp) |
96 |
$(use_enable ruby rubyinterp) |
97 |
$(use_enable selinux) |
98 |
@@ -219,6 +220,14 @@ src_configure() { |
99 |
'/# define FEAT_CSCOPE/d' src/feature.h || die "sed failed" |
100 |
fi |
101 |
|
102 |
+ if use lua; then |
103 |
+ myconf+=( |
104 |
+ --enable-luainterp |
105 |
+ $(use_with lua_single_target_luajit luajit) |
106 |
+ --with-lua-prefix="${EPREFIX}/usr" |
107 |
+ ) |
108 |
+ fi |
109 |
+ |
110 |
# don't test USE=X here ... see bug #19115 |
111 |
# but need to provide a way to link against X ... see bug #20093 |
112 |
myconf+=( |
113 |
|
114 |
diff --git a/app-editors/vim/vim-9999.ebuild b/app-editors/vim/vim-9999.ebuild |
115 |
index 37285363833..c9e9b3a5b2e 100644 |
116 |
--- a/app-editors/vim/vim-9999.ebuild |
117 |
+++ b/app-editors/vim/vim-9999.ebuild |
118 |
@@ -3,11 +3,12 @@ |
119 |
|
120 |
EAPI=7 |
121 |
VIM_VERSION="8.2" |
122 |
+LUA_COMPAT=( lua5-1 luajit ) |
123 |
PYTHON_COMPAT=( python3_{6,7,8} ) |
124 |
PYTHON_REQ_USE="threads(+)" |
125 |
USE_RUBY="ruby24 ruby25 ruby26 ruby27" |
126 |
|
127 |
-inherit vim-doc flag-o-matic bash-completion-r1 python-single-r1 ruby-single desktop xdg-utils |
128 |
+inherit vim-doc flag-o-matic bash-completion-r1 lua-single python-single-r1 ruby-single desktop xdg-utils |
129 |
|
130 |
if [[ ${PV} == 9999* ]] ; then |
131 |
inherit git-r3 |
132 |
@@ -23,8 +24,9 @@ HOMEPAGE="https://vim.sourceforge.io/ https://github.com/vim/vim" |
133 |
|
134 |
SLOT="0" |
135 |
LICENSE="vim" |
136 |
-IUSE="X acl cscope debug gpm lua luajit minimal nls perl python racket ruby selinux sound tcl terminal vim-pager" |
137 |
+IUSE="X acl cscope debug gpm lua minimal nls perl python racket ruby selinux sound tcl terminal vim-pager" |
138 |
REQUIRED_USE=" |
139 |
+ lua? ( ${LUA_REQUIRED_USE} ) |
140 |
python? ( ${PYTHON_REQUIRED_USE} ) |
141 |
vim-pager? ( !minimal ) |
142 |
" |
143 |
@@ -36,9 +38,8 @@ RDEPEND=" |
144 |
acl? ( kernel_linux? ( sys-apps/acl ) ) |
145 |
cscope? ( dev-util/cscope ) |
146 |
gpm? ( >=sys-libs/gpm-1.19.3 ) |
147 |
- lua? ( |
148 |
- luajit? ( dev-lang/luajit:2= ) |
149 |
- !luajit? ( dev-lang/lua:0[deprecated] ) |
150 |
+ lua? ( ${LUA_DEPS} |
151 |
+ $(lua_gen_impl_dep 'deprecated' lua5-1) |
152 |
) |
153 |
!minimal? ( ~app-editors/vim-core-${PV} ) |
154 |
vim-pager? ( app-editors/vim-core[-minimal] ) |
155 |
@@ -57,6 +58,8 @@ DEPEND=" |
156 |
sys-devel/autoconf |
157 |
nls? ( sys-devel/gettext ) |
158 |
" |
159 |
+# configure runs the Lua interpreter |
160 |
+BDEPEND="lua? ( ${LUA_DEPS} )" |
161 |
|
162 |
pkg_setup() { |
163 |
# people with broken alphabets run into trouble. bug 82186. |
164 |
@@ -67,6 +70,7 @@ pkg_setup() { |
165 |
mkdir -p "${T}"/home || die "mkdir failed" |
166 |
export HOME="${T}"/home |
167 |
|
168 |
+ use lua && lua-single_pkg_setup |
169 |
use python && python-single-r1_pkg_setup |
170 |
} |
171 |
|
172 |
@@ -198,13 +202,10 @@ src_configure() { |
173 |
$(use_enable acl) |
174 |
$(use_enable cscope) |
175 |
$(use_enable gpm) |
176 |
- $(use_enable lua luainterp) |
177 |
- $(usex lua "--with-lua-prefix=${EPREFIX}/usr" "") |
178 |
- $(use_with luajit) |
179 |
$(use_enable nls) |
180 |
$(use_enable perl perlinterp) |
181 |
$(use_enable python python3interp) |
182 |
- $(use_with python python3-command $(type -P $(eselect python show --python3))) |
183 |
+ $(use_with python python3-command "${PYTHON}") |
184 |
$(use_enable racket mzschemeinterp) |
185 |
$(use_enable ruby rubyinterp) |
186 |
$(use_enable selinux) |
187 |
@@ -219,6 +220,14 @@ src_configure() { |
188 |
'/# define FEAT_CSCOPE/d' src/feature.h || die "sed failed" |
189 |
fi |
190 |
|
191 |
+ if use lua; then |
192 |
+ myconf+=( |
193 |
+ --enable-luainterp |
194 |
+ $(use_with lua_single_target_luajit luajit) |
195 |
+ --with-lua-prefix="${EPREFIX}/usr" |
196 |
+ ) |
197 |
+ fi |
198 |
+ |
199 |
# don't test USE=X here ... see bug #19115 |
200 |
# but need to provide a way to link against X ... see bug #20093 |
201 |
myconf+=( |
202 |
|
203 |
diff --git a/profiles/package.mask b/profiles/package.mask |
204 |
index 559d3760edb..954d79f7fb8 100644 |
205 |
--- a/profiles/package.mask |
206 |
+++ b/profiles/package.mask |
207 |
@@ -444,6 +444,7 @@ kde-apps/kdebase-meta:5 |
208 |
>=app-crypt/ekeyd-1.1.5-r100 |
209 |
>=app-editors/neovim-0.4.4-r100 |
210 |
=app-editors/scite-4.4.4-r10 |
211 |
+>=app-editors/vim-8.2.0814-r100 |
212 |
>=app-emulation/libguestfs-1.38.6-r100 |
213 |
>=app-misc/worker-3.8.3-r100 |
214 |
>=dev-games/cegui-0.8.7-r100 |