1 |
commit: c0db0baa808719e1726de68229fd27d0d1418848 |
2 |
Author: Tim Harder <radhermit <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jul 29 08:07:24 2019 +0000 |
4 |
Commit: Tim Harder <radhermit <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jul 29 08:13:16 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c0db0baa |
7 |
|
8 |
app-editors/gvim: remove old |
9 |
|
10 |
Signed-off-by: Tim Harder <radhermit <AT> gentoo.org> |
11 |
|
12 |
app-editors/gvim/Manifest | 7 - |
13 |
app-editors/gvim/files/gvim.svg | 94 -------- |
14 |
app-editors/gvim/gvim-8.0.1298.ebuild | 371 ------------------------------ |
15 |
app-editors/gvim/gvim-8.0.1699-r1.ebuild | 372 ------------------------------ |
16 |
app-editors/gvim/gvim-8.1.0034.ebuild | 372 ------------------------------ |
17 |
app-editors/gvim/gvim-8.1.0412.ebuild | 372 ------------------------------ |
18 |
app-editors/gvim/gvim-8.1.0648-r1.ebuild | 373 ------------------------------- |
19 |
app-editors/gvim/gvim-8.1.0648.ebuild | 371 ------------------------------ |
20 |
app-editors/gvim/gvim-8.1.1155.ebuild | 370 ------------------------------ |
21 |
app-editors/gvim/gvim-8.1.1312.ebuild | 368 ------------------------------ |
22 |
app-editors/gvim/metadata.xml | 1 - |
23 |
11 files changed, 3071 deletions(-) |
24 |
|
25 |
diff --git a/app-editors/gvim/Manifest b/app-editors/gvim/Manifest |
26 |
index a7579ec0549..6ba358e2d5b 100644 |
27 |
--- a/app-editors/gvim/Manifest |
28 |
+++ b/app-editors/gvim/Manifest |
29 |
@@ -1,9 +1,2 @@ |
30 |
DIST vim-8.0.0938-gentoo-patches.tar.bz2 2316 BLAKE2B 05a87f32fc5cc65e7f5e4e5a87c654b2040ad39f1555ddde7e0e6f473dc8b520916a795406bb6bbeaf5e7ae8748aacebe7a9679461e48802e69417e945eea827 SHA512 a6062be5e6a5c5b437081312df5742353242b5171bf26da04aa6ca216d2b142b2411a88bc1edd460d28e00a59a210c8e1729e801fac6f1efd86bb2e437a56a2b |
31 |
-DIST vim-8.0.1298.tar.gz 13395459 BLAKE2B 4b6e3c4443cd675dc3727e8609b89c422f66c7d32908b5136ee312d48427568a8236214c85135242269b6575e0e1336b0973395a6372664435f8bae4d7bee843 SHA512 7704c493359c1a922f876e4d6f3b4ad265d8ce974a59d51a39e5a4424251105250ffc803bcf6c6750daeb5e6376cbbfd24557b075eacf2b0274d7c432db2f681 |
32 |
-DIST vim-8.0.1699.tar.gz 13546105 BLAKE2B cabf29d5a89c55e2fe3bc5e39eb499412f5907ddf856f8644b466f1e0fbffefff3cd801b6bc5e49e62ffdf8805b0556058b9a913015a9f9fbe1a4f580132fd49 SHA512 b0fe8e1dc05fdc3758896caf4746da40988ca7604d77dbe78c47525cbf8f0d7e6c05f690687268eda581009050d4e02e93fb4d30734cbbab4cfd6a8a1488c1e7 |
33 |
-DIST vim-8.1.0034.tar.gz 13652586 BLAKE2B 98dac6b37c04ea8c15f0b0e2e4145d6529138e0532e92751fd07be04a2180519135d386dfc19e7f12c8eb37b3e15ee81ba357680d453afab56d96299b69cb511 SHA512 b2b85035c6c60a09e903d8f6deb500e42ab8bfc2f9a5b959d0055a8e02dab3a91d5460fd5028e6634c5ef6ab034186b7155e341fa25e84b9851290708e892d19 |
34 |
-DIST vim-8.1.0412.tar.gz 13857501 BLAKE2B 6925184359b8b36cb546c9fcba4bb01755455aa87171ea7328ece411a5a5ced45096b8bef8561059bbff9a3ade565e0648fd18dd091d6faad0eb8a67321337a5 SHA512 3f458c039a636d7d3e398f8aa9cba4b4ae650c00038618c4776959b6feb0a1e3ac56be2912c3d85cba8e8f301661a62d71acd34a4dd75dc4dc000a94bf1b237e |
35 |
-DIST vim-8.1.0648.tar.gz 14061964 BLAKE2B 79bf52d8574167471c93942904dc2b4ad5648ec365561494bbad45c779154b75b0fff1d90229516e938371f1eaa5808659cb2181b150c4c13bf8501bd9987b38 SHA512 d41676a6bb6bc442f4946ca021b2835d7ea0e54fbefe1bfc728241e1bf203cc696b707fcca6f25c877660283a790cefa4259fbd14de88fd4db7390701189c454 |
36 |
-DIST vim-8.1.1155.tar.gz 14141750 BLAKE2B f15470768fbdc4e02552b8711626c3ad9647ec5b74ebaa3f82a4f32c050405ef0cf3f29d1e5bdbb4de008bf16262b8cdc81ff153e2694a184523cd913624e8e0 SHA512 0cdc42090958f4c91c13aeeefac0abc4feaa629d8b90c04bd01d5e23efefe21e6316e1b2c3b6015ecf9577573faea9a1b6660de8a2959642e65582dbe9c7f5c6 |
37 |
-DIST vim-8.1.1312.tar.gz 14167114 BLAKE2B a69688023ccb2b22028ae6b5387ae45ee8755bb22d82c91525a22e81c1d9bef253b43d2c56c3e70fb330a348612067df9d4c5edf043cb8555c319141e52b716d SHA512 8f38a73c8971199da3477cf291a13e180c99616f0e75b48e9cf68fbf301c91384690666a662f1800afc65241237378ca174cfd0efaa71cbb11932a0ff425b91e |
38 |
DIST vim-8.1.1486.tar.gz 14318109 BLAKE2B 6054df175a32e9ed36873802a4a669cc46e034bac879cb829e45ece53f9440e97cccad47e370ebdef8dc1bb963e8e8c84bd517a3a6561705786dcab7e2368d21 SHA512 0a521d74c60f2a32e8a11e16f256e2e99fb9c00f478cd8d7a9328315abbd445796153f03884ab2b240905260317809a33afb64627b9a71ac8d6db1cbd4026d20 |
39 |
|
40 |
diff --git a/app-editors/gvim/files/gvim.svg b/app-editors/gvim/files/gvim.svg |
41 |
deleted file mode 100644 |
42 |
index b82742a7901..00000000000 |
43 |
--- a/app-editors/gvim/files/gvim.svg |
44 |
+++ /dev/null |
45 |
@@ -1,94 +0,0 @@ |
46 |
-<?xml version="1.0" encoding="UTF-8" standalone="no"?> |
47 |
-<!-- Created with Inkscape (http://www.inkscape.org/) --> |
48 |
- |
49 |
-<svg |
50 |
- xmlns:dc="http://purl.org/dc/elements/1.1/" |
51 |
- xmlns:cc="http://creativecommons.org/ns#" |
52 |
- xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" |
53 |
- xmlns:svg="http://www.w3.org/2000/svg" |
54 |
- xmlns="http://www.w3.org/2000/svg" |
55 |
- xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" |
56 |
- xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" |
57 |
- width="256" |
58 |
- height="256" |
59 |
- id="svg2" |
60 |
- version="1.1" |
61 |
- inkscape:version="0.47 r22583" |
62 |
- sodipodi:docname="vim.svg"> |
63 |
- <defs |
64 |
- id="defs4"> |
65 |
- <inkscape:perspective |
66 |
- sodipodi:type="inkscape:persp3d" |
67 |
- inkscape:vp_x="0 : 526.18109 : 1" |
68 |
- inkscape:vp_y="0 : 1000 : 0" |
69 |
- inkscape:vp_z="744.09448 : 526.18109 : 1" |
70 |
- inkscape:persp3d-origin="372.04724 : 350.78739 : 1" |
71 |
- id="perspective10" /> |
72 |
- <inkscape:perspective |
73 |
- id="perspective2884" |
74 |
- inkscape:persp3d-origin="0.5 : 0.33333333 : 1" |
75 |
- inkscape:vp_z="1 : 0.5 : 1" |
76 |
- inkscape:vp_y="0 : 1000 : 0" |
77 |
- inkscape:vp_x="0 : 0.5 : 1" |
78 |
- sodipodi:type="inkscape:persp3d" /> |
79 |
- </defs> |
80 |
- <sodipodi:namedview |
81 |
- id="base" |
82 |
- pagecolor="#ffffff" |
83 |
- bordercolor="#666666" |
84 |
- borderopacity="1.0" |
85 |
- inkscape:pageopacity="0.0" |
86 |
- inkscape:pageshadow="2" |
87 |
- inkscape:zoom="0.7" |
88 |
- inkscape:cx="107.83967" |
89 |
- inkscape:cy="146.01885" |
90 |
- inkscape:document-units="px" |
91 |
- inkscape:current-layer="layer1" |
92 |
- showgrid="false" |
93 |
- inkscape:window-width="743" |
94 |
- inkscape:window-height="605" |
95 |
- inkscape:window-x="88" |
96 |
- inkscape:window-y="321" |
97 |
- inkscape:window-maximized="0" /> |
98 |
- <metadata |
99 |
- id="metadata7"> |
100 |
- <rdf:RDF> |
101 |
- <cc:Work |
102 |
- rdf:about=""> |
103 |
- <dc:format>image/svg+xml</dc:format> |
104 |
- <dc:type |
105 |
- rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> |
106 |
- <dc:title></dc:title> |
107 |
- </cc:Work> |
108 |
- </rdf:RDF> |
109 |
- </metadata> |
110 |
- <g |
111 |
- inkscape:label="Layer 1" |
112 |
- inkscape:groupmode="layer" |
113 |
- id="layer1" |
114 |
- transform="translate(0,-796.36218)"> |
115 |
- <path |
116 |
- style="fill:#19953f;fill-opacity:1;stroke:#000000;stroke-width:5;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" |
117 |
- d="M 128.02596,805.31213 8.0259779,926.7407 127.31168,1046.0264 l 120,-120.71427 -119.28572,-120 z" |
118 |
- id="path2890" /> |
119 |
- <path |
120 |
- style="fill:#d0d0cf;fill-opacity:1;stroke:#000000;stroke-width:5;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" |
121 |
- d="m 26.24294,816.92274 -5,5 0,19.28572 5.446429,5.26785 7.232142,0.17858 0.178571,168.12501 7.142857,7.1429 22.142858,0 177.142853,-180.00006 0,-18.57143 -5,-5 -80,-0.71428 -5,7.14285 0,15.71429 5,6.42857 6.42857,0 -62.142855,60.00001 0.625005,-59.73215 7.14285,-10e-6 5.80357,-5.98214 0,-15.71429 -6.42857,-7.14286 -80.71428,-1.42857 0,10e-6 z" |
122 |
- id="path3664" |
123 |
- sodipodi:nodetypes="cccccccccccccccccccccccc" /> |
124 |
- <path |
125 |
- style="fill:#d0d0cf;fill-opacity:1;stroke:#000000;stroke-width:5;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" |
126 |
- d="m 136.90826,933.24978 4.28572,-3.57143 12.14285,0.35715 3.92857,3.92857 -4.28571,12.14286 -3.57143,3.21428 -12.64794,-0.14794 -3.42349,-4.13777 3.57143,-11.78572 z" |
127 |
- id="path3666" |
128 |
- sodipodi:nodetypes="ccccccccc" /> |
129 |
- <path |
130 |
- style="fill:#d0d0cf;fill-opacity:1;stroke:#000000;stroke-width:5;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" |
131 |
- d="m 121.90826,956.10693 28.57143,0.35714 -15,45.00003 5.35714,0 -3.21428,8.9285 -26.78572,-0.3571 14.64286,-43.21429 -7.14286,0.35714 3.57143,-11.07142 z" |
132 |
- id="path3668" /> |
133 |
- <path |
134 |
- style="fill:#d0d0cf;fill-opacity:1;stroke:#000000;stroke-width:5;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" |
135 |
- d="m 157.2654,956.46407 -3.71936,9.68618 6.82905,0 -15.25254,44.24235 23.57143,0 3.40554,-8.7193 -6.11475,-0.4005 8.42349,-26.2373 15,-0.35715 -11.07143,34.99995 23.15301,0.3572 2.91579,-8.2576 -5.56371,-0.1633 9.13777,-26.5791 12.85714,0 -11.07143,35 24.32904,0.2525 3.00508,-8.2729 -5.81626,-0.1939 11.69643,-37.14285 -4.64286,-7.5 -14.64285,0 -5.71429,5.71429 -5.71429,0 -6.07142,-6.07143 -12.5,0 -5.35715,5.35714 -6.07143,0 -6.07142,-5.71428 -18.92858,0 z" |
136 |
- id="path3670" |
137 |
- sodipodi:nodetypes="cccccccccccccccccccccccccccccc" /> |
138 |
- </g> |
139 |
-</svg> |
140 |
|
141 |
diff --git a/app-editors/gvim/gvim-8.0.1298.ebuild b/app-editors/gvim/gvim-8.0.1298.ebuild |
142 |
deleted file mode 100644 |
143 |
index 8514246a3ac..00000000000 |
144 |
--- a/app-editors/gvim/gvim-8.0.1298.ebuild |
145 |
+++ /dev/null |
146 |
@@ -1,371 +0,0 @@ |
147 |
-# Copyright 1999-2019 Gentoo Authors |
148 |
-# Distributed under the terms of the GNU General Public License v2 |
149 |
- |
150 |
-EAPI=6 |
151 |
-VIM_VERSION="8.0" |
152 |
-PYTHON_COMPAT=( python{2_7,3_5,3_6} ) |
153 |
-PYTHON_REQ_USE=threads |
154 |
-inherit vim-doc flag-o-matic xdg-utils gnome2-utils versionator bash-completion-r1 prefix python-single-r1 |
155 |
- |
156 |
-if [[ ${PV} == 9999* ]]; then |
157 |
- inherit git-r3 |
158 |
- EGIT_REPO_URI="https://github.com/vim/vim.git" |
159 |
- EGIT_CHECKOUT_DIR=${WORKDIR}/vim-${PV} |
160 |
-else |
161 |
- SRC_URI="https://github.com/vim/vim/archive/v${PV}.tar.gz -> vim-${PV}.tar.gz |
162 |
- https://dev.gentoo.org/~radhermit/vim/vim-8.0.0938-gentoo-patches.tar.bz2" |
163 |
- KEYWORDS="alpha amd64 arm ~hppa ia64 ppc ppc64 sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris" |
164 |
-fi |
165 |
- |
166 |
-DESCRIPTION="GUI version of the Vim text editor" |
167 |
-HOMEPAGE="https://vim.sourceforge.io/ https://github.com/vim/vim" |
168 |
- |
169 |
-SLOT="0" |
170 |
-LICENSE="vim" |
171 |
-IUSE="acl aqua cscope debug gnome gtk gtk3 lua luajit motif neXt netbeans nls perl python racket ruby selinux session tcl" |
172 |
-REQUIRED_USE=" |
173 |
- luajit? ( lua ) |
174 |
- python? ( ${PYTHON_REQUIRED_USE} ) |
175 |
-" |
176 |
- |
177 |
-RDEPEND=" |
178 |
- ~app-editors/vim-core-${PV} |
179 |
- >=app-eselect/eselect-vi-1.1 |
180 |
- >=sys-libs/ncurses-5.2-r2:0= |
181 |
- x11-libs/libICE |
182 |
- x11-libs/libSM |
183 |
- x11-libs/libXext |
184 |
- x11-libs/libXt |
185 |
- acl? ( kernel_linux? ( sys-apps/acl ) ) |
186 |
- !aqua? ( |
187 |
- gtk3? ( |
188 |
- x11-libs/gtk+:3 |
189 |
- x11-libs/libXft |
190 |
- ) |
191 |
- !gtk3? ( |
192 |
- gtk? ( |
193 |
- >=x11-libs/gtk+-2.6:2 |
194 |
- x11-libs/libXft |
195 |
- gnome? ( >=gnome-base/libgnomeui-2.6 ) |
196 |
- ) |
197 |
- !gtk? ( |
198 |
- motif? ( >=x11-libs/motif-2.3:0 ) |
199 |
- !motif? ( |
200 |
- neXt? ( x11-libs/neXtaw ) |
201 |
- !neXt? ( x11-libs/libXaw ) |
202 |
- ) |
203 |
- ) |
204 |
- ) |
205 |
- ) |
206 |
- cscope? ( dev-util/cscope ) |
207 |
- lua? ( |
208 |
- luajit? ( dev-lang/luajit:2= ) |
209 |
- !luajit? ( dev-lang/lua:0[deprecated] ) |
210 |
- ) |
211 |
- nls? ( virtual/libintl ) |
212 |
- perl? ( dev-lang/perl:= ) |
213 |
- python? ( ${PYTHON_DEPS} ) |
214 |
- racket? ( dev-scheme/racket ) |
215 |
- ruby? ( || ( dev-lang/ruby:2.4 dev-lang/ruby:2.3 ) ) |
216 |
- selinux? ( sys-libs/libselinux ) |
217 |
- session? ( x11-libs/libSM ) |
218 |
- tcl? ( dev-lang/tcl:0= ) |
219 |
-" |
220 |
-DEPEND="${RDEPEND} |
221 |
- dev-util/ctags |
222 |
- sys-devel/autoconf |
223 |
- virtual/pkgconfig |
224 |
- nls? ( sys-devel/gettext ) |
225 |
-" |
226 |
- |
227 |
-S=${WORKDIR}/vim-${PV} |
228 |
- |
229 |
-pkg_setup() { |
230 |
- # people with broken alphabets run into trouble. bug 82186. |
231 |
- unset LANG LC_ALL |
232 |
- export LC_COLLATE="C" |
233 |
- |
234 |
- # Gnome sandbox silliness. bug #114475. |
235 |
- mkdir -p "${T}"/home || die |
236 |
- export HOME="${T}"/home |
237 |
- |
238 |
- use python && python-single-r1_pkg_setup |
239 |
-} |
240 |
- |
241 |
-src_prepare() { |
242 |
- if [[ ${PV} != 9999* ]]; then |
243 |
- # Gentoo patches to fix runtime issues, cross-compile errors, etc |
244 |
- eapply "${WORKDIR}"/patches/ |
245 |
- fi |
246 |
- |
247 |
- # Fixup a script to use awk instead of nawk |
248 |
- sed -i -e \ |
249 |
- '1s|.*|#!'"${EPREFIX}"'/usr/bin/awk -f|' \ |
250 |
- "${S}"/runtime/tools/mve.awk || die "mve.awk sed failed" |
251 |
- |
252 |
- # Read vimrc and gvimrc from /etc/vim |
253 |
- echo '#define SYS_VIMRC_FILE "'${EPREFIX}'/etc/vim/vimrc"' \ |
254 |
- >> "${S}"/src/feature.h || die "echo failed" |
255 |
- echo '#define SYS_GVIMRC_FILE "'${EPREFIX}'/etc/vim/gvimrc"' \ |
256 |
- >> "${S}"/src/feature.h || die "echo failed" |
257 |
- |
258 |
- # Use exuberant ctags which installs as /usr/bin/exuberant-ctags. |
259 |
- # Hopefully this pattern won't break for a while at least. |
260 |
- # This fixes bug 29398 (27 Sep 2003 agriffis) |
261 |
- sed -i -e \ |
262 |
- 's/\<ctags\("\| [-*.]\)/exuberant-&/g' \ |
263 |
- "${S}"/runtime/doc/syntax.txt \ |
264 |
- "${S}"/runtime/doc/tagsrch.txt \ |
265 |
- "${S}"/runtime/doc/usr_29.txt \ |
266 |
- "${S}"/runtime/menu.vim \ |
267 |
- "${S}"/src/configure.ac || die 'sed failed' |
268 |
- |
269 |
- # Don't be fooled by /usr/include/libc.h. When found, vim thinks |
270 |
- # this is NeXT, but it's actually just a file in dev-libs/9libs |
271 |
- # This fixes bug 43885 (20 Mar 2004 agriffis) |
272 |
- sed -i -e \ |
273 |
- 's/ libc\.h / /' "${S}"/src/configure.ac || die 'sed failed' |
274 |
- |
275 |
- # gcc on sparc32 has this, uhm, interesting problem with detecting EOF |
276 |
- # correctly. To avoid some really entertaining error messages about stuff |
277 |
- # which isn't even in the source file being invalid, we'll do some trickery |
278 |
- # to make the error never occur. bug 66162 (02 October 2004 ciaranm) |
279 |
- find "${S}" -name '*.c' | while read c; do |
280 |
- echo >> "$c" || die "echo failed" |
281 |
- done |
282 |
- |
283 |
- # Try to avoid sandbox problems. Bug #114475. |
284 |
- if [[ -d "${S}"/src/po ]]; then |
285 |
- sed -i -e \ |
286 |
- '/-S check.vim/s,..VIM.,ln -s $(VIM) testvim \; ./testvim -X,' \ |
287 |
- "${S}"/src/po/Makefile || die |
288 |
- fi |
289 |
- |
290 |
- cp -v "${S}"/src/config.mk.dist "${S}"/src/auto/config.mk || die "cp failed" |
291 |
- |
292 |
- # Bug #378107 - Build properly with >=perl-core/ExtUtils-ParseXS-3.20.0 |
293 |
- sed -i -e \ |
294 |
- "s:\\\$(PERLLIB)/ExtUtils/xsubpp:${EPREFIX}/usr/bin/xsubpp:" \ |
295 |
- "${S}"/src/Makefile || die 'sed for ExtUtils-ParseXS failed' |
296 |
- |
297 |
- eapply_user |
298 |
-} |
299 |
- |
300 |
-src_configure() { |
301 |
- local myconf=() |
302 |
- |
303 |
- # Fix bug 37354: Disallow -funroll-all-loops on amd64 |
304 |
- # Bug 57859 suggests that we want to do this for all archs |
305 |
- filter-flags -funroll-all-loops |
306 |
- |
307 |
- # Fix bug 76331: -O3 causes problems, use -O2 instead. We'll do this for |
308 |
- # everyone since previous flag filtering bugs have turned out to affect |
309 |
- # multiple archs... |
310 |
- replace-flags -O3 -O2 |
311 |
- |
312 |
- # Fix bug 18245: Prevent "make" from the following chain: |
313 |
- # (1) Notice configure.ac is newer than auto/configure |
314 |
- # (2) Rebuild auto/configure |
315 |
- # (3) Notice auto/configure is newer than auto/config.mk |
316 |
- # (4) Run ./configure (with wrong args) to remake auto/config.mk |
317 |
- sed -i -e \ |
318 |
- 's# auto/config\.mk:#:#' src/Makefile || die "Makefile sed failed" |
319 |
- rm -v src/auto/configure || die "rm failed" |
320 |
- emake -j1 -C src autoconf |
321 |
- |
322 |
- # This should fix a sandbox violation (see bug 24447). The hvc |
323 |
- # things are for ppc64, see bug 86433. |
324 |
- local file |
325 |
- for file in /dev/pty/s* /dev/console /dev/hvc/* /dev/hvc*; do |
326 |
- if [[ -e ${file} ]]; then |
327 |
- addwrite $file |
328 |
- fi |
329 |
- done |
330 |
- |
331 |
- use debug && append-flags "-DDEBUG" |
332 |
- |
333 |
- myconf=( |
334 |
- --with-features=huge |
335 |
- --disable-gpm |
336 |
- --enable-multibyte |
337 |
- $(use_enable acl) |
338 |
- $(use_enable cscope) |
339 |
- $(use_enable lua luainterp) |
340 |
- $(use_with luajit) |
341 |
- $(use_enable netbeans) |
342 |
- $(use_enable nls) |
343 |
- $(use_enable perl perlinterp) |
344 |
- $(use_enable python pythoninterp) |
345 |
- $(use_enable python python3interp) |
346 |
- $(use_enable racket mzschemeinterp) |
347 |
- $(use_enable ruby rubyinterp) |
348 |
- $(use_enable selinux) |
349 |
- $(use_enable session xsmp) |
350 |
- $(use_enable tcl tclinterp) |
351 |
- ) |
352 |
- |
353 |
- # --with-features=huge forces on cscope even if we --disable it. We need |
354 |
- # to sed this out to avoid screwiness. (1 Sep 2004 ciaranm) |
355 |
- if ! use cscope; then |
356 |
- sed -i -e \ |
357 |
- '/# define FEAT_CSCOPE/d' src/feature.h || die "couldn't disable cscope" |
358 |
- fi |
359 |
- |
360 |
- # gvim's GUI preference order is as follows: |
361 |
- # aqua CARBON (not tested) |
362 |
- # -aqua gtk3 GTK3 |
363 |
- # -aqua -gtk3 gnome GNOME2 |
364 |
- # -aqua -gtk3 -gnome gtk GTK2 |
365 |
- # -aqua -gtk -gtk3 motif MOTIF |
366 |
- # -aqua -gtk -gtk3 -motif neXt NEXTAW |
367 |
- # -aqua -gtk -gtk3 -motif -neXt ATHENA |
368 |
- echo ; echo |
369 |
- if use aqua; then |
370 |
- einfo "Building gvim with the Carbon GUI" |
371 |
- myconf+=( |
372 |
- --enable-darwin |
373 |
- --enable-gui=carbon |
374 |
- ) |
375 |
- elif use gtk3; then |
376 |
- myconf+=( --enable-gtk3-check ) |
377 |
- einfo "Building gvim with the gtk+-3 GUI" |
378 |
- myconf+=( --enable-gui=gtk3 ) |
379 |
- elif use gtk; then |
380 |
- myconf+=( --enable-gtk2-check ) |
381 |
- if use gnome; then |
382 |
- einfo "Building gvim with the Gnome 2 GUI" |
383 |
- myconf+=( --enable-gui=gnome2 ) |
384 |
- else |
385 |
- einfo "Building gvim with the gtk+-2 GUI" |
386 |
- myconf+=( --enable-gui=gtk2 ) |
387 |
- fi |
388 |
- elif use motif; then |
389 |
- einfo "Building gvim with the MOTIF GUI" |
390 |
- myconf+=( --enable-gui=motif ) |
391 |
- elif use neXt; then |
392 |
- einfo "Building gvim with the neXtaw GUI" |
393 |
- myconf+=( --enable-gui=nextaw ) |
394 |
- else |
395 |
- einfo "Building gvim with the Athena GUI" |
396 |
- myconf+=( --enable-gui=athena ) |
397 |
- fi |
398 |
- echo ; echo |
399 |
- |
400 |
- # let package manager strip binaries |
401 |
- export ac_cv_prog_STRIP="$(type -P true ) faking strip" |
402 |
- |
403 |
- # keep prefix env contained within the EPREFIX |
404 |
- use prefix && myconf+=( --without-local-dir ) |
405 |
- |
406 |
- if [[ ${CHOST} == *-interix* ]]; then |
407 |
- # avoid finding of this function, to avoid having to patch either |
408 |
- # configure or the source, which would be much more hackish. |
409 |
- # after all vim does it right, only interix is badly broken (again) |
410 |
- export ac_cv_func_sigaction=no |
411 |
- fi |
412 |
- |
413 |
- econf \ |
414 |
- --with-modified-by=Gentoo-${PVR} \ |
415 |
- --with-vim-name=gvim \ |
416 |
- --with-x \ |
417 |
- "${myconf[@]}" |
418 |
-} |
419 |
- |
420 |
-src_compile() { |
421 |
- # The following allows emake to be used |
422 |
- emake -j1 -C src auto/osdef.h objects |
423 |
- |
424 |
- emake |
425 |
-} |
426 |
- |
427 |
-src_test() { |
428 |
- echo |
429 |
- einfo "Starting vim tests. Several error messages will be shown" |
430 |
- einfo "while the tests run. This is normal behaviour and does not" |
431 |
- einfo "indicate a fault." |
432 |
- echo |
433 |
- ewarn "If the tests fail, your terminal may be left in a strange" |
434 |
- ewarn "state. Usually, running 'reset' will fix this." |
435 |
- echo |
436 |
- |
437 |
- # Don't let vim talk to X |
438 |
- unset DISPLAY |
439 |
- |
440 |
- # Make gvim not try to connect to X. See :help gui-x11-start in vim for how |
441 |
- # this evil trickery works. |
442 |
- ln -s "${S}"/src/gvim "${S}"/src/testvim || die |
443 |
- |
444 |
- # Make sure our VIMPROG is used. |
445 |
- sed -i -e 's:\.\./vim:../testvim:' src/testdir/test49.vim || die |
446 |
- |
447 |
- # Don't do additional GUI tests. |
448 |
- emake -j1 VIMPROG=../testvim -C src/testdir nongui |
449 |
-} |
450 |
- |
451 |
-# Call eselect vi update with --if-unset |
452 |
-# to respect user's choice (bug 187449) |
453 |
-eselect_vi_update() { |
454 |
- einfo "Calling eselect vi update..." |
455 |
- eselect vi update --if-unset |
456 |
- eend $? |
457 |
-} |
458 |
- |
459 |
-src_install() { |
460 |
- local vimfiles=/usr/share/vim/vim${VIM_VERSION/.} |
461 |
- |
462 |
- dobin src/gvim |
463 |
- dosym gvim /usr/bin/gvimdiff |
464 |
- dosym gvim /usr/bin/evim |
465 |
- dosym gvim /usr/bin/eview |
466 |
- dosym gvim /usr/bin/gview |
467 |
- dosym gvim /usr/bin/rgvim |
468 |
- dosym gvim /usr/bin/rgview |
469 |
- |
470 |
- emake -C src DESTDIR="${D}" DATADIR="${EPREFIX}"/usr/share install-icons |
471 |
- |
472 |
- dodir /usr/share/man/man1 |
473 |
- echo ".so vim.1" > "${ED}"/usr/share/man/man1/gvim.1 || die "echo failed" |
474 |
- echo ".so vim.1" > "${ED}"/usr/share/man/man1/gview.1 || die "echo failed" |
475 |
- echo ".so vimdiff.1" > "${ED}"/usr/share/man/man1/gvimdiff.1 || \ |
476 |
- die "echo failed" |
477 |
- |
478 |
- insinto /etc/vim |
479 |
- newins "${FILESDIR}"/gvimrc-r1 gvimrc |
480 |
- eprefixify "${ED}"/etc/vim/gvimrc |
481 |
- |
482 |
- doicon -s scalable "${FILESDIR}"/gvim.svg |
483 |
- |
484 |
- # bash completion script, bug #79018. |
485 |
- newbashcomp "${FILESDIR}"/${PN}-completion ${PN} |
486 |
- |
487 |
- # don't install vim desktop file |
488 |
- rm -v "${ED}"/usr/share/applications/vim.desktop || die "failed to remove vim.desktop" |
489 |
-} |
490 |
- |
491 |
-pkg_postinst() { |
492 |
- # Update documentation tags (from vim-doc.eclass) |
493 |
- update_vim_helptags |
494 |
- |
495 |
- # Update fdo mime stuff, bug #78394 |
496 |
- xdg_desktop_database_update |
497 |
- |
498 |
- # Update icon cache |
499 |
- gnome2_icon_cache_update |
500 |
- |
501 |
- # Call eselect vi update |
502 |
- eselect_vi_update |
503 |
-} |
504 |
- |
505 |
-pkg_postrm() { |
506 |
- # Update documentation tags (from vim-doc.eclass) |
507 |
- update_vim_helptags |
508 |
- |
509 |
- # Update fdo mime stuff, bug #78394 |
510 |
- xdg_desktop_database_update |
511 |
- |
512 |
- # Update icon cache |
513 |
- gnome2_icon_cache_update |
514 |
- |
515 |
- # Call eselect vi update |
516 |
- eselect_vi_update |
517 |
-} |
518 |
|
519 |
diff --git a/app-editors/gvim/gvim-8.0.1699-r1.ebuild b/app-editors/gvim/gvim-8.0.1699-r1.ebuild |
520 |
deleted file mode 100644 |
521 |
index ad19563f625..00000000000 |
522 |
--- a/app-editors/gvim/gvim-8.0.1699-r1.ebuild |
523 |
+++ /dev/null |
524 |
@@ -1,372 +0,0 @@ |
525 |
-# Copyright 1999-2019 Gentoo Authors |
526 |
-# Distributed under the terms of the GNU General Public License v2 |
527 |
- |
528 |
-EAPI=6 |
529 |
-VIM_VERSION="8.0" |
530 |
-PYTHON_COMPAT=( python{2_7,3_5,3_6} ) |
531 |
-PYTHON_REQ_USE="threads" |
532 |
-USE_RUBY="ruby23 ruby24 ruby25" |
533 |
- |
534 |
-inherit vim-doc flag-o-matic xdg-utils gnome2-utils versionator bash-completion-r1 prefix python-single-r1 ruby-single |
535 |
- |
536 |
-if [[ ${PV} == 9999* ]]; then |
537 |
- inherit git-r3 |
538 |
- EGIT_REPO_URI="https://github.com/vim/vim.git" |
539 |
- EGIT_CHECKOUT_DIR=${WORKDIR}/vim-${PV} |
540 |
-else |
541 |
- SRC_URI="https://github.com/vim/vim/archive/v${PV}.tar.gz -> vim-${PV}.tar.gz |
542 |
- https://dev.gentoo.org/~radhermit/vim/vim-8.0.0938-gentoo-patches.tar.bz2" |
543 |
- KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris" |
544 |
-fi |
545 |
- |
546 |
-DESCRIPTION="GUI version of the Vim text editor" |
547 |
-HOMEPAGE="https://vim.sourceforge.io/ https://github.com/vim/vim" |
548 |
- |
549 |
-SLOT="0" |
550 |
-LICENSE="vim" |
551 |
-IUSE="acl aqua cscope debug gnome gtk gtk3 lua luajit motif neXt netbeans nls perl python racket ruby selinux session tcl" |
552 |
- |
553 |
-REQUIRED_USE=" |
554 |
- luajit? ( lua ) |
555 |
- python? ( ${PYTHON_REQUIRED_USE} )" |
556 |
- |
557 |
-RDEPEND=" |
558 |
- ~app-editors/vim-core-${PV} |
559 |
- >=app-eselect/eselect-vi-1.1 |
560 |
- >=sys-libs/ncurses-5.2-r2:0= |
561 |
- x11-libs/libICE |
562 |
- x11-libs/libSM |
563 |
- x11-libs/libXext |
564 |
- x11-libs/libXt |
565 |
- acl? ( kernel_linux? ( sys-apps/acl ) ) |
566 |
- !aqua? ( |
567 |
- gtk3? ( |
568 |
- x11-libs/gtk+:3 |
569 |
- x11-libs/libXft |
570 |
- ) |
571 |
- !gtk3? ( |
572 |
- gtk? ( |
573 |
- >=x11-libs/gtk+-2.6:2 |
574 |
- x11-libs/libXft |
575 |
- ) |
576 |
- !gtk? ( |
577 |
- motif? ( >=x11-libs/motif-2.3:0 ) |
578 |
- !motif? ( |
579 |
- neXt? ( x11-libs/neXtaw ) |
580 |
- !neXt? ( x11-libs/libXaw ) |
581 |
- ) |
582 |
- ) |
583 |
- ) |
584 |
- ) |
585 |
- cscope? ( dev-util/cscope ) |
586 |
- lua? ( |
587 |
- luajit? ( dev-lang/luajit:2= ) |
588 |
- !luajit? ( dev-lang/lua:0[deprecated] ) |
589 |
- ) |
590 |
- nls? ( virtual/libintl ) |
591 |
- perl? ( dev-lang/perl:= ) |
592 |
- python? ( ${PYTHON_DEPS} ) |
593 |
- racket? ( dev-scheme/racket ) |
594 |
- ruby? ( ${RUBY_DEPS} ) |
595 |
- selinux? ( sys-libs/libselinux ) |
596 |
- session? ( x11-libs/libSM ) |
597 |
- tcl? ( dev-lang/tcl:0= )" |
598 |
- |
599 |
-DEPEND=" |
600 |
- ${RDEPEND} |
601 |
- dev-util/ctags |
602 |
- sys-devel/autoconf |
603 |
- virtual/pkgconfig |
604 |
- nls? ( sys-devel/gettext )" |
605 |
- |
606 |
-S=${WORKDIR}/vim-${PV} |
607 |
- |
608 |
-pkg_setup() { |
609 |
- # people with broken alphabets run into trouble. bug 82186. |
610 |
- unset LANG LC_ALL |
611 |
- export LC_COLLATE="C" |
612 |
- |
613 |
- # Gnome sandbox silliness. bug #114475. |
614 |
- mkdir -p "${T}"/home || die |
615 |
- export HOME="${T}"/home |
616 |
- |
617 |
- use python && python-single-r1_pkg_setup |
618 |
-} |
619 |
- |
620 |
-src_prepare() { |
621 |
- if [[ ${PV} != 9999* ]]; then |
622 |
- # Gentoo patches to fix runtime issues, cross-compile errors, etc |
623 |
- eapply "${WORKDIR}"/patches/ |
624 |
- fi |
625 |
- |
626 |
- # Fixup a script to use awk instead of nawk |
627 |
- sed -i -e \ |
628 |
- '1s|.*|#!'"${EPREFIX}"'/usr/bin/awk -f|' \ |
629 |
- "${S}"/runtime/tools/mve.awk || die "mve.awk sed failed" |
630 |
- |
631 |
- # Read vimrc and gvimrc from /etc/vim |
632 |
- echo '#define SYS_VIMRC_FILE "'${EPREFIX}'/etc/vim/vimrc"' \ |
633 |
- >> "${S}"/src/feature.h || die "echo failed" |
634 |
- echo '#define SYS_GVIMRC_FILE "'${EPREFIX}'/etc/vim/gvimrc"' \ |
635 |
- >> "${S}"/src/feature.h || die "echo failed" |
636 |
- |
637 |
- # Use exuberant ctags which installs as /usr/bin/exuberant-ctags. |
638 |
- # Hopefully this pattern won't break for a while at least. |
639 |
- # This fixes bug 29398 (27 Sep 2003 agriffis) |
640 |
- sed -i -e \ |
641 |
- 's/\<ctags\("\| [-*.]\)/exuberant-&/g' \ |
642 |
- "${S}"/runtime/doc/syntax.txt \ |
643 |
- "${S}"/runtime/doc/tagsrch.txt \ |
644 |
- "${S}"/runtime/doc/usr_29.txt \ |
645 |
- "${S}"/runtime/menu.vim \ |
646 |
- "${S}"/src/configure.ac || die 'sed failed' |
647 |
- |
648 |
- # Don't be fooled by /usr/include/libc.h. When found, vim thinks |
649 |
- # this is NeXT, but it's actually just a file in dev-libs/9libs |
650 |
- # This fixes bug 43885 (20 Mar 2004 agriffis) |
651 |
- sed -i -e \ |
652 |
- 's/ libc\.h / /' "${S}"/src/configure.ac || die 'sed failed' |
653 |
- |
654 |
- # gcc on sparc32 has this, uhm, interesting problem with detecting EOF |
655 |
- # correctly. To avoid some really entertaining error messages about stuff |
656 |
- # which isn't even in the source file being invalid, we'll do some trickery |
657 |
- # to make the error never occur. bug 66162 (02 October 2004 ciaranm) |
658 |
- find "${S}" -name '*.c' | while read c; do |
659 |
- echo >> "$c" || die "echo failed" |
660 |
- done |
661 |
- |
662 |
- # Try to avoid sandbox problems. Bug #114475. |
663 |
- if [[ -d "${S}"/src/po ]]; then |
664 |
- sed -i -e \ |
665 |
- '/-S check.vim/s,..VIM.,ln -s $(VIM) testvim \; ./testvim -X,' \ |
666 |
- "${S}"/src/po/Makefile || die |
667 |
- fi |
668 |
- |
669 |
- cp -v "${S}"/src/config.mk.dist "${S}"/src/auto/config.mk || die "cp failed" |
670 |
- |
671 |
- # Bug #378107 - Build properly with >=perl-core/ExtUtils-ParseXS-3.20.0 |
672 |
- sed -i -e \ |
673 |
- "s:\\\$(PERLLIB)/ExtUtils/xsubpp:${EPREFIX}/usr/bin/xsubpp:" \ |
674 |
- "${S}"/src/Makefile || die 'sed for ExtUtils-ParseXS failed' |
675 |
- |
676 |
- eapply_user |
677 |
-} |
678 |
- |
679 |
-src_configure() { |
680 |
- local myconf=() |
681 |
- |
682 |
- # Fix bug 37354: Disallow -funroll-all-loops on amd64 |
683 |
- # Bug 57859 suggests that we want to do this for all archs |
684 |
- filter-flags -funroll-all-loops |
685 |
- |
686 |
- # Fix bug 76331: -O3 causes problems, use -O2 instead. We'll do this for |
687 |
- # everyone since previous flag filtering bugs have turned out to affect |
688 |
- # multiple archs... |
689 |
- replace-flags -O3 -O2 |
690 |
- |
691 |
- # Fix bug 18245: Prevent "make" from the following chain: |
692 |
- # (1) Notice configure.ac is newer than auto/configure |
693 |
- # (2) Rebuild auto/configure |
694 |
- # (3) Notice auto/configure is newer than auto/config.mk |
695 |
- # (4) Run ./configure (with wrong args) to remake auto/config.mk |
696 |
- sed -i -e \ |
697 |
- 's# auto/config\.mk:#:#' src/Makefile || die "Makefile sed failed" |
698 |
- rm -v src/auto/configure || die "rm failed" |
699 |
- emake -j1 -C src autoconf |
700 |
- |
701 |
- # This should fix a sandbox violation (see bug 24447). The hvc |
702 |
- # things are for ppc64, see bug 86433. |
703 |
- local file |
704 |
- for file in /dev/pty/s* /dev/console /dev/hvc/* /dev/hvc*; do |
705 |
- if [[ -e ${file} ]]; then |
706 |
- addwrite $file |
707 |
- fi |
708 |
- done |
709 |
- |
710 |
- use debug && append-flags "-DDEBUG" |
711 |
- |
712 |
- myconf=( |
713 |
- --with-features=huge |
714 |
- --disable-gpm |
715 |
- --enable-multibyte |
716 |
- $(use_enable acl) |
717 |
- $(use_enable cscope) |
718 |
- $(use_enable lua luainterp) |
719 |
- $(use_with luajit) |
720 |
- $(use_enable netbeans) |
721 |
- $(use_enable nls) |
722 |
- $(use_enable perl perlinterp) |
723 |
- $(use_enable python pythoninterp) |
724 |
- $(use_enable python python3interp) |
725 |
- $(use_enable racket mzschemeinterp) |
726 |
- $(use_enable ruby rubyinterp) |
727 |
- $(use_enable selinux) |
728 |
- $(use_enable session xsmp) |
729 |
- $(use_enable tcl tclinterp) |
730 |
- ) |
731 |
- |
732 |
- # --with-features=huge forces on cscope even if we --disable it. We need |
733 |
- # to sed this out to avoid screwiness. (1 Sep 2004 ciaranm) |
734 |
- if ! use cscope; then |
735 |
- sed -i -e \ |
736 |
- '/# define FEAT_CSCOPE/d' src/feature.h || die "couldn't disable cscope" |
737 |
- fi |
738 |
- |
739 |
- # gvim's GUI preference order is as follows: |
740 |
- # aqua CARBON (not tested) |
741 |
- # -aqua gtk3 GTK3 |
742 |
- # -aqua -gtk3 gnome GNOME2 |
743 |
- # -aqua -gtk3 -gnome gtk GTK2 |
744 |
- # -aqua -gtk -gtk3 motif MOTIF |
745 |
- # -aqua -gtk -gtk3 -motif neXt NEXTAW |
746 |
- # -aqua -gtk -gtk3 -motif -neXt ATHENA |
747 |
- echo ; echo |
748 |
- if use aqua; then |
749 |
- einfo "Building gvim with the Carbon GUI" |
750 |
- myconf+=( |
751 |
- --enable-darwin |
752 |
- --enable-gui=carbon |
753 |
- ) |
754 |
- elif use gtk3; then |
755 |
- myconf+=( --enable-gtk3-check ) |
756 |
- einfo "Building gvim with the gtk+-3 GUI" |
757 |
- myconf+=( --enable-gui=gtk3 ) |
758 |
- elif use gtk; then |
759 |
- myconf+=( --enable-gtk2-check ) |
760 |
- if use gnome; then |
761 |
- einfo "Building gvim with the Gnome 2 GUI" |
762 |
- myconf+=( --enable-gui=gnome2 ) |
763 |
- else |
764 |
- einfo "Building gvim with the gtk+-2 GUI" |
765 |
- myconf+=( --enable-gui=gtk2 ) |
766 |
- fi |
767 |
- elif use motif; then |
768 |
- einfo "Building gvim with the MOTIF GUI" |
769 |
- myconf+=( --enable-gui=motif ) |
770 |
- elif use neXt; then |
771 |
- einfo "Building gvim with the neXtaw GUI" |
772 |
- myconf+=( --enable-gui=nextaw ) |
773 |
- else |
774 |
- einfo "Building gvim with the Athena GUI" |
775 |
- myconf+=( --enable-gui=athena ) |
776 |
- fi |
777 |
- echo ; echo |
778 |
- |
779 |
- # let package manager strip binaries |
780 |
- export ac_cv_prog_STRIP="$(type -P true ) faking strip" |
781 |
- |
782 |
- # keep prefix env contained within the EPREFIX |
783 |
- use prefix && myconf+=( --without-local-dir ) |
784 |
- |
785 |
- if [[ ${CHOST} == *-interix* ]]; then |
786 |
- # avoid finding of this function, to avoid having to patch either |
787 |
- # configure or the source, which would be much more hackish. |
788 |
- # after all vim does it right, only interix is badly broken (again) |
789 |
- export ac_cv_func_sigaction=no |
790 |
- fi |
791 |
- |
792 |
- econf \ |
793 |
- --with-modified-by=Gentoo-${PVR} \ |
794 |
- --with-vim-name=gvim \ |
795 |
- --with-x \ |
796 |
- "${myconf[@]}" |
797 |
-} |
798 |
- |
799 |
-src_compile() { |
800 |
- # The following allows emake to be used |
801 |
- emake -j1 -C src auto/osdef.h objects |
802 |
- |
803 |
- emake |
804 |
-} |
805 |
- |
806 |
-src_test() { |
807 |
- echo |
808 |
- einfo "Starting vim tests. Several error messages will be shown" |
809 |
- einfo "while the tests run. This is normal behaviour and does not" |
810 |
- einfo "indicate a fault." |
811 |
- echo |
812 |
- ewarn "If the tests fail, your terminal may be left in a strange" |
813 |
- ewarn "state. Usually, running 'reset' will fix this." |
814 |
- echo |
815 |
- |
816 |
- # Don't let vim talk to X |
817 |
- unset DISPLAY |
818 |
- |
819 |
- # Make gvim not try to connect to X. See :help gui-x11-start in vim for how |
820 |
- # this evil trickery works. |
821 |
- ln -s "${S}"/src/gvim "${S}"/src/testvim || die |
822 |
- |
823 |
- # Make sure our VIMPROG is used. |
824 |
- sed -i -e 's:\.\./vim:../testvim:' src/testdir/test49.vim || die |
825 |
- |
826 |
- # Don't do additional GUI tests. |
827 |
- emake -j1 VIMPROG=../testvim -C src/testdir nongui |
828 |
-} |
829 |
- |
830 |
-# Call eselect vi update with --if-unset |
831 |
-# to respect user's choice (bug 187449) |
832 |
-eselect_vi_update() { |
833 |
- einfo "Calling eselect vi update..." |
834 |
- eselect vi update --if-unset |
835 |
- eend $? |
836 |
-} |
837 |
- |
838 |
-src_install() { |
839 |
- local vimfiles=/usr/share/vim/vim${VIM_VERSION/.} |
840 |
- |
841 |
- dobin src/gvim |
842 |
- dosym gvim /usr/bin/gvimdiff |
843 |
- dosym gvim /usr/bin/evim |
844 |
- dosym gvim /usr/bin/eview |
845 |
- dosym gvim /usr/bin/gview |
846 |
- dosym gvim /usr/bin/rgvim |
847 |
- dosym gvim /usr/bin/rgview |
848 |
- |
849 |
- emake -C src DESTDIR="${D}" DATADIR="${EPREFIX}"/usr/share install-icons |
850 |
- |
851 |
- dodir /usr/share/man/man1 |
852 |
- echo ".so vim.1" > "${ED}"/usr/share/man/man1/gvim.1 || die "echo failed" |
853 |
- echo ".so vim.1" > "${ED}"/usr/share/man/man1/gview.1 || die "echo failed" |
854 |
- echo ".so vimdiff.1" > "${ED}"/usr/share/man/man1/gvimdiff.1 || \ |
855 |
- die "echo failed" |
856 |
- |
857 |
- insinto /etc/vim |
858 |
- newins "${FILESDIR}"/gvimrc-r1 gvimrc |
859 |
- eprefixify "${ED}"/etc/vim/gvimrc |
860 |
- |
861 |
- doicon -s scalable "${FILESDIR}"/gvim.svg |
862 |
- |
863 |
- # bash completion script, bug #79018. |
864 |
- newbashcomp "${FILESDIR}"/${PN}-completion ${PN} |
865 |
- |
866 |
- # don't install vim desktop file |
867 |
- rm -v "${ED}"/usr/share/applications/vim.desktop || die "failed to remove vim.desktop" |
868 |
-} |
869 |
- |
870 |
-pkg_postinst() { |
871 |
- # Update documentation tags (from vim-doc.eclass) |
872 |
- update_vim_helptags |
873 |
- |
874 |
- # Update fdo mime stuff, bug #78394 |
875 |
- xdg_desktop_database_update |
876 |
- |
877 |
- # Update icon cache |
878 |
- gnome2_icon_cache_update |
879 |
- |
880 |
- # Call eselect vi update |
881 |
- eselect_vi_update |
882 |
-} |
883 |
- |
884 |
-pkg_postrm() { |
885 |
- # Update documentation tags (from vim-doc.eclass) |
886 |
- update_vim_helptags |
887 |
- |
888 |
- # Update fdo mime stuff, bug #78394 |
889 |
- xdg_desktop_database_update |
890 |
- |
891 |
- # Update icon cache |
892 |
- gnome2_icon_cache_update |
893 |
- |
894 |
- # Call eselect vi update |
895 |
- eselect_vi_update |
896 |
-} |
897 |
|
898 |
diff --git a/app-editors/gvim/gvim-8.1.0034.ebuild b/app-editors/gvim/gvim-8.1.0034.ebuild |
899 |
deleted file mode 100644 |
900 |
index 770309a137b..00000000000 |
901 |
--- a/app-editors/gvim/gvim-8.1.0034.ebuild |
902 |
+++ /dev/null |
903 |
@@ -1,372 +0,0 @@ |
904 |
-# Copyright 1999-2019 Gentoo Authors |
905 |
-# Distributed under the terms of the GNU General Public License v2 |
906 |
- |
907 |
-EAPI=6 |
908 |
-VIM_VERSION="8.0" |
909 |
-PYTHON_COMPAT=( python{2_7,3_5,3_6} ) |
910 |
-PYTHON_REQ_USE="threads" |
911 |
-USE_RUBY="ruby23 ruby24 ruby25" |
912 |
- |
913 |
-inherit vim-doc flag-o-matic xdg-utils gnome2-utils versionator bash-completion-r1 prefix python-single-r1 ruby-single |
914 |
- |
915 |
-if [[ ${PV} == 9999* ]]; then |
916 |
- inherit git-r3 |
917 |
- EGIT_REPO_URI="https://github.com/vim/vim.git" |
918 |
- EGIT_CHECKOUT_DIR=${WORKDIR}/vim-${PV} |
919 |
-else |
920 |
- SRC_URI="https://github.com/vim/vim/archive/v${PV}.tar.gz -> vim-${PV}.tar.gz |
921 |
- https://dev.gentoo.org/~radhermit/vim/vim-8.0.0938-gentoo-patches.tar.bz2" |
922 |
- KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris" |
923 |
-fi |
924 |
- |
925 |
-DESCRIPTION="GUI version of the Vim text editor" |
926 |
-HOMEPAGE="https://vim.sourceforge.io/ https://github.com/vim/vim" |
927 |
- |
928 |
-SLOT="0" |
929 |
-LICENSE="vim" |
930 |
-IUSE="acl aqua cscope debug gnome gtk gtk3 lua luajit motif neXt netbeans nls perl python racket ruby selinux session tcl" |
931 |
-REQUIRED_USE=" |
932 |
- luajit? ( lua ) |
933 |
- python? ( ${PYTHON_REQUIRED_USE} ) |
934 |
-" |
935 |
- |
936 |
-RDEPEND=" |
937 |
- ~app-editors/vim-core-${PV} |
938 |
- >=app-eselect/eselect-vi-1.1 |
939 |
- >=sys-libs/ncurses-5.2-r2:0= |
940 |
- x11-libs/libICE |
941 |
- x11-libs/libSM |
942 |
- x11-libs/libXext |
943 |
- x11-libs/libXt |
944 |
- acl? ( kernel_linux? ( sys-apps/acl ) ) |
945 |
- !aqua? ( |
946 |
- gtk3? ( |
947 |
- x11-libs/gtk+:3 |
948 |
- x11-libs/libXft |
949 |
- ) |
950 |
- !gtk3? ( |
951 |
- gtk? ( |
952 |
- >=x11-libs/gtk+-2.6:2 |
953 |
- x11-libs/libXft |
954 |
- ) |
955 |
- !gtk? ( |
956 |
- motif? ( >=x11-libs/motif-2.3:0 ) |
957 |
- !motif? ( |
958 |
- neXt? ( x11-libs/neXtaw ) |
959 |
- !neXt? ( x11-libs/libXaw ) |
960 |
- ) |
961 |
- ) |
962 |
- ) |
963 |
- ) |
964 |
- cscope? ( dev-util/cscope ) |
965 |
- lua? ( |
966 |
- luajit? ( dev-lang/luajit:2= ) |
967 |
- !luajit? ( dev-lang/lua:0[deprecated] ) |
968 |
- ) |
969 |
- nls? ( virtual/libintl ) |
970 |
- perl? ( dev-lang/perl:= ) |
971 |
- python? ( ${PYTHON_DEPS} ) |
972 |
- racket? ( dev-scheme/racket ) |
973 |
- ruby? ( ${RUBY_DEPS} ) |
974 |
- selinux? ( sys-libs/libselinux ) |
975 |
- session? ( x11-libs/libSM ) |
976 |
- tcl? ( dev-lang/tcl:0= ) |
977 |
-" |
978 |
-DEPEND="${RDEPEND} |
979 |
- dev-util/ctags |
980 |
- sys-devel/autoconf |
981 |
- virtual/pkgconfig |
982 |
- nls? ( sys-devel/gettext ) |
983 |
-" |
984 |
- |
985 |
-S=${WORKDIR}/vim-${PV} |
986 |
- |
987 |
-pkg_setup() { |
988 |
- # people with broken alphabets run into trouble. bug 82186. |
989 |
- unset LANG LC_ALL |
990 |
- export LC_COLLATE="C" |
991 |
- |
992 |
- # Gnome sandbox silliness. bug #114475. |
993 |
- mkdir -p "${T}"/home || die |
994 |
- export HOME="${T}"/home |
995 |
- |
996 |
- use python && python-single-r1_pkg_setup |
997 |
-} |
998 |
- |
999 |
-src_prepare() { |
1000 |
- if [[ ${PV} != 9999* ]]; then |
1001 |
- # Gentoo patches to fix runtime issues, cross-compile errors, etc |
1002 |
- eapply "${WORKDIR}"/patches/ |
1003 |
- fi |
1004 |
- |
1005 |
- # Fixup a script to use awk instead of nawk |
1006 |
- sed -i -e \ |
1007 |
- '1s|.*|#!'"${EPREFIX}"'/usr/bin/awk -f|' \ |
1008 |
- "${S}"/runtime/tools/mve.awk || die "mve.awk sed failed" |
1009 |
- |
1010 |
- # Read vimrc and gvimrc from /etc/vim |
1011 |
- echo '#define SYS_VIMRC_FILE "'${EPREFIX}'/etc/vim/vimrc"' \ |
1012 |
- >> "${S}"/src/feature.h || die "echo failed" |
1013 |
- echo '#define SYS_GVIMRC_FILE "'${EPREFIX}'/etc/vim/gvimrc"' \ |
1014 |
- >> "${S}"/src/feature.h || die "echo failed" |
1015 |
- |
1016 |
- # Use exuberant ctags which installs as /usr/bin/exuberant-ctags. |
1017 |
- # Hopefully this pattern won't break for a while at least. |
1018 |
- # This fixes bug 29398 (27 Sep 2003 agriffis) |
1019 |
- sed -i -e \ |
1020 |
- 's/\<ctags\("\| [-*.]\)/exuberant-&/g' \ |
1021 |
- "${S}"/runtime/doc/syntax.txt \ |
1022 |
- "${S}"/runtime/doc/tagsrch.txt \ |
1023 |
- "${S}"/runtime/doc/usr_29.txt \ |
1024 |
- "${S}"/runtime/menu.vim \ |
1025 |
- "${S}"/src/configure.ac || die 'sed failed' |
1026 |
- |
1027 |
- # Don't be fooled by /usr/include/libc.h. When found, vim thinks |
1028 |
- # this is NeXT, but it's actually just a file in dev-libs/9libs |
1029 |
- # This fixes bug 43885 (20 Mar 2004 agriffis) |
1030 |
- sed -i -e \ |
1031 |
- 's/ libc\.h / /' "${S}"/src/configure.ac || die 'sed failed' |
1032 |
- |
1033 |
- # gcc on sparc32 has this, uhm, interesting problem with detecting EOF |
1034 |
- # correctly. To avoid some really entertaining error messages about stuff |
1035 |
- # which isn't even in the source file being invalid, we'll do some trickery |
1036 |
- # to make the error never occur. bug 66162 (02 October 2004 ciaranm) |
1037 |
- find "${S}" -name '*.c' | while read c; do |
1038 |
- echo >> "$c" || die "echo failed" |
1039 |
- done |
1040 |
- |
1041 |
- # Try to avoid sandbox problems. Bug #114475. |
1042 |
- if [[ -d "${S}"/src/po ]]; then |
1043 |
- sed -i -e \ |
1044 |
- '/-S check.vim/s,..VIM.,ln -s $(VIM) testvim \; ./testvim -X,' \ |
1045 |
- "${S}"/src/po/Makefile || die |
1046 |
- fi |
1047 |
- |
1048 |
- cp -v "${S}"/src/config.mk.dist "${S}"/src/auto/config.mk || die "cp failed" |
1049 |
- |
1050 |
- # Bug #378107 - Build properly with >=perl-core/ExtUtils-ParseXS-3.20.0 |
1051 |
- sed -i -e \ |
1052 |
- "s:\\\$(PERLLIB)/ExtUtils/xsubpp:${EPREFIX}/usr/bin/xsubpp:" \ |
1053 |
- "${S}"/src/Makefile || die 'sed for ExtUtils-ParseXS failed' |
1054 |
- |
1055 |
- eapply_user |
1056 |
-} |
1057 |
- |
1058 |
-src_configure() { |
1059 |
- local myconf=() |
1060 |
- |
1061 |
- # Fix bug 37354: Disallow -funroll-all-loops on amd64 |
1062 |
- # Bug 57859 suggests that we want to do this for all archs |
1063 |
- filter-flags -funroll-all-loops |
1064 |
- |
1065 |
- # Fix bug 76331: -O3 causes problems, use -O2 instead. We'll do this for |
1066 |
- # everyone since previous flag filtering bugs have turned out to affect |
1067 |
- # multiple archs... |
1068 |
- replace-flags -O3 -O2 |
1069 |
- |
1070 |
- # Fix bug 18245: Prevent "make" from the following chain: |
1071 |
- # (1) Notice configure.ac is newer than auto/configure |
1072 |
- # (2) Rebuild auto/configure |
1073 |
- # (3) Notice auto/configure is newer than auto/config.mk |
1074 |
- # (4) Run ./configure (with wrong args) to remake auto/config.mk |
1075 |
- sed -i -e \ |
1076 |
- 's# auto/config\.mk:#:#' src/Makefile || die "Makefile sed failed" |
1077 |
- rm -v src/auto/configure || die "rm failed" |
1078 |
- emake -j1 -C src autoconf |
1079 |
- |
1080 |
- # This should fix a sandbox violation (see bug 24447). The hvc |
1081 |
- # things are for ppc64, see bug 86433. |
1082 |
- local file |
1083 |
- for file in /dev/pty/s* /dev/console /dev/hvc/* /dev/hvc*; do |
1084 |
- if [[ -e ${file} ]]; then |
1085 |
- addwrite $file |
1086 |
- fi |
1087 |
- done |
1088 |
- |
1089 |
- use debug && append-flags "-DDEBUG" |
1090 |
- |
1091 |
- myconf=( |
1092 |
- --with-features=huge |
1093 |
- --disable-gpm |
1094 |
- --enable-multibyte |
1095 |
- $(use_enable acl) |
1096 |
- $(use_enable cscope) |
1097 |
- $(use_enable lua luainterp) |
1098 |
- $(use_with luajit) |
1099 |
- $(use_enable netbeans) |
1100 |
- $(use_enable nls) |
1101 |
- $(use_enable perl perlinterp) |
1102 |
- $(use_enable python pythoninterp) |
1103 |
- $(use_enable python python3interp) |
1104 |
- $(use_enable racket mzschemeinterp) |
1105 |
- $(use_enable ruby rubyinterp) |
1106 |
- $(use_enable selinux) |
1107 |
- $(use_enable session xsmp) |
1108 |
- $(use_enable tcl tclinterp) |
1109 |
- ) |
1110 |
- |
1111 |
- # --with-features=huge forces on cscope even if we --disable it. We need |
1112 |
- # to sed this out to avoid screwiness. (1 Sep 2004 ciaranm) |
1113 |
- if ! use cscope; then |
1114 |
- sed -i -e \ |
1115 |
- '/# define FEAT_CSCOPE/d' src/feature.h || die "couldn't disable cscope" |
1116 |
- fi |
1117 |
- |
1118 |
- # gvim's GUI preference order is as follows: |
1119 |
- # aqua CARBON (not tested) |
1120 |
- # -aqua gtk3 GTK3 |
1121 |
- # -aqua -gtk3 gnome GNOME2 |
1122 |
- # -aqua -gtk3 -gnome gtk GTK2 |
1123 |
- # -aqua -gtk -gtk3 motif MOTIF |
1124 |
- # -aqua -gtk -gtk3 -motif neXt NEXTAW |
1125 |
- # -aqua -gtk -gtk3 -motif -neXt ATHENA |
1126 |
- echo ; echo |
1127 |
- if use aqua; then |
1128 |
- einfo "Building gvim with the Carbon GUI" |
1129 |
- myconf+=( |
1130 |
- --enable-darwin |
1131 |
- --enable-gui=carbon |
1132 |
- ) |
1133 |
- elif use gtk3; then |
1134 |
- myconf+=( --enable-gtk3-check ) |
1135 |
- einfo "Building gvim with the gtk+-3 GUI" |
1136 |
- myconf+=( --enable-gui=gtk3 ) |
1137 |
- elif use gtk; then |
1138 |
- myconf+=( --enable-gtk2-check ) |
1139 |
- if use gnome; then |
1140 |
- einfo "Building gvim with the Gnome 2 GUI" |
1141 |
- myconf+=( --enable-gui=gnome2 ) |
1142 |
- else |
1143 |
- einfo "Building gvim with the gtk+-2 GUI" |
1144 |
- myconf+=( --enable-gui=gtk2 ) |
1145 |
- fi |
1146 |
- elif use motif; then |
1147 |
- einfo "Building gvim with the MOTIF GUI" |
1148 |
- myconf+=( --enable-gui=motif ) |
1149 |
- elif use neXt; then |
1150 |
- einfo "Building gvim with the neXtaw GUI" |
1151 |
- myconf+=( --enable-gui=nextaw ) |
1152 |
- else |
1153 |
- einfo "Building gvim with the Athena GUI" |
1154 |
- myconf+=( --enable-gui=athena ) |
1155 |
- fi |
1156 |
- echo ; echo |
1157 |
- |
1158 |
- # let package manager strip binaries |
1159 |
- export ac_cv_prog_STRIP="$(type -P true ) faking strip" |
1160 |
- |
1161 |
- # keep prefix env contained within the EPREFIX |
1162 |
- use prefix && myconf+=( --without-local-dir ) |
1163 |
- |
1164 |
- if [[ ${CHOST} == *-interix* ]]; then |
1165 |
- # avoid finding of this function, to avoid having to patch either |
1166 |
- # configure or the source, which would be much more hackish. |
1167 |
- # after all vim does it right, only interix is badly broken (again) |
1168 |
- export ac_cv_func_sigaction=no |
1169 |
- fi |
1170 |
- |
1171 |
- econf \ |
1172 |
- --with-modified-by=Gentoo-${PVR} \ |
1173 |
- --with-vim-name=gvim \ |
1174 |
- --with-x \ |
1175 |
- "${myconf[@]}" |
1176 |
-} |
1177 |
- |
1178 |
-src_compile() { |
1179 |
- # The following allows emake to be used |
1180 |
- emake -j1 -C src auto/osdef.h objects |
1181 |
- |
1182 |
- emake |
1183 |
-} |
1184 |
- |
1185 |
-src_test() { |
1186 |
- echo |
1187 |
- einfo "Starting vim tests. Several error messages will be shown" |
1188 |
- einfo "while the tests run. This is normal behaviour and does not" |
1189 |
- einfo "indicate a fault." |
1190 |
- echo |
1191 |
- ewarn "If the tests fail, your terminal may be left in a strange" |
1192 |
- ewarn "state. Usually, running 'reset' will fix this." |
1193 |
- echo |
1194 |
- |
1195 |
- # Don't let vim talk to X |
1196 |
- unset DISPLAY |
1197 |
- |
1198 |
- # Make gvim not try to connect to X. See :help gui-x11-start in vim for how |
1199 |
- # this evil trickery works. |
1200 |
- ln -s "${S}"/src/gvim "${S}"/src/testvim || die |
1201 |
- |
1202 |
- # Make sure our VIMPROG is used. |
1203 |
- sed -i -e 's:\.\./vim:../testvim:' src/testdir/test49.vim || die |
1204 |
- |
1205 |
- # Don't do additional GUI tests. |
1206 |
- emake -j1 VIMPROG=../testvim -C src/testdir nongui |
1207 |
-} |
1208 |
- |
1209 |
-# Call eselect vi update with --if-unset |
1210 |
-# to respect user's choice (bug 187449) |
1211 |
-eselect_vi_update() { |
1212 |
- einfo "Calling eselect vi update..." |
1213 |
- eselect vi update --if-unset |
1214 |
- eend $? |
1215 |
-} |
1216 |
- |
1217 |
-src_install() { |
1218 |
- local vimfiles=/usr/share/vim/vim${VIM_VERSION/.} |
1219 |
- |
1220 |
- dobin src/gvim |
1221 |
- dosym gvim /usr/bin/gvimdiff |
1222 |
- dosym gvim /usr/bin/evim |
1223 |
- dosym gvim /usr/bin/eview |
1224 |
- dosym gvim /usr/bin/gview |
1225 |
- dosym gvim /usr/bin/rgvim |
1226 |
- dosym gvim /usr/bin/rgview |
1227 |
- |
1228 |
- emake -C src DESTDIR="${D}" DATADIR="${EPREFIX}"/usr/share install-icons |
1229 |
- |
1230 |
- dodir /usr/share/man/man1 |
1231 |
- echo ".so vim.1" > "${ED}"/usr/share/man/man1/gvim.1 || die "echo failed" |
1232 |
- echo ".so vim.1" > "${ED}"/usr/share/man/man1/gview.1 || die "echo failed" |
1233 |
- echo ".so vimdiff.1" > "${ED}"/usr/share/man/man1/gvimdiff.1 || \ |
1234 |
- die "echo failed" |
1235 |
- |
1236 |
- insinto /etc/vim |
1237 |
- newins "${FILESDIR}"/gvimrc-r1 gvimrc |
1238 |
- eprefixify "${ED}"/etc/vim/gvimrc |
1239 |
- |
1240 |
- doicon -s scalable "${FILESDIR}"/gvim.svg |
1241 |
- |
1242 |
- # bash completion script, bug #79018. |
1243 |
- newbashcomp "${FILESDIR}"/${PN}-completion ${PN} |
1244 |
- |
1245 |
- # don't install vim desktop file |
1246 |
- rm -v "${ED}"/usr/share/applications/vim.desktop || die "failed to remove vim.desktop" |
1247 |
-} |
1248 |
- |
1249 |
-pkg_postinst() { |
1250 |
- # Update documentation tags (from vim-doc.eclass) |
1251 |
- update_vim_helptags |
1252 |
- |
1253 |
- # Update fdo mime stuff, bug #78394 |
1254 |
- xdg_desktop_database_update |
1255 |
- |
1256 |
- # Update icon cache |
1257 |
- gnome2_icon_cache_update |
1258 |
- |
1259 |
- # Call eselect vi update |
1260 |
- eselect_vi_update |
1261 |
-} |
1262 |
- |
1263 |
-pkg_postrm() { |
1264 |
- # Update documentation tags (from vim-doc.eclass) |
1265 |
- update_vim_helptags |
1266 |
- |
1267 |
- # Update fdo mime stuff, bug #78394 |
1268 |
- xdg_desktop_database_update |
1269 |
- |
1270 |
- # Update icon cache |
1271 |
- gnome2_icon_cache_update |
1272 |
- |
1273 |
- # Call eselect vi update |
1274 |
- eselect_vi_update |
1275 |
-} |
1276 |
|
1277 |
diff --git a/app-editors/gvim/gvim-8.1.0412.ebuild b/app-editors/gvim/gvim-8.1.0412.ebuild |
1278 |
deleted file mode 100644 |
1279 |
index dcf0e2d191a..00000000000 |
1280 |
--- a/app-editors/gvim/gvim-8.1.0412.ebuild |
1281 |
+++ /dev/null |
1282 |
@@ -1,372 +0,0 @@ |
1283 |
-# Copyright 1999-2019 Gentoo Authors |
1284 |
-# Distributed under the terms of the GNU General Public License v2 |
1285 |
- |
1286 |
-EAPI=6 |
1287 |
-VIM_VERSION="8.0" |
1288 |
-PYTHON_COMPAT=( python{2_7,3_5,3_6} ) |
1289 |
-PYTHON_REQ_USE="threads" |
1290 |
-USE_RUBY="ruby23 ruby24 ruby25" |
1291 |
- |
1292 |
-inherit vim-doc flag-o-matic xdg-utils gnome2-utils bash-completion-r1 prefix python-single-r1 ruby-single |
1293 |
- |
1294 |
-if [[ ${PV} == 9999* ]]; then |
1295 |
- inherit git-r3 |
1296 |
- EGIT_REPO_URI="https://github.com/vim/vim.git" |
1297 |
- EGIT_CHECKOUT_DIR=${WORKDIR}/vim-${PV} |
1298 |
-else |
1299 |
- SRC_URI="https://github.com/vim/vim/archive/v${PV}.tar.gz -> vim-${PV}.tar.gz |
1300 |
- https://dev.gentoo.org/~radhermit/vim/vim-8.0.0938-gentoo-patches.tar.bz2" |
1301 |
- KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris" |
1302 |
-fi |
1303 |
- |
1304 |
-DESCRIPTION="GUI version of the Vim text editor" |
1305 |
-HOMEPAGE="https://vim.sourceforge.io/ https://github.com/vim/vim" |
1306 |
- |
1307 |
-SLOT="0" |
1308 |
-LICENSE="vim" |
1309 |
-IUSE="acl aqua cscope debug gnome gtk gtk3 lua luajit motif neXt netbeans nls perl python racket ruby selinux session tcl" |
1310 |
-REQUIRED_USE=" |
1311 |
- luajit? ( lua ) |
1312 |
- python? ( ${PYTHON_REQUIRED_USE} ) |
1313 |
-" |
1314 |
- |
1315 |
-RDEPEND=" |
1316 |
- ~app-editors/vim-core-${PV} |
1317 |
- >=app-eselect/eselect-vi-1.1 |
1318 |
- >=sys-libs/ncurses-5.2-r2:0= |
1319 |
- x11-libs/libICE |
1320 |
- x11-libs/libSM |
1321 |
- x11-libs/libXext |
1322 |
- x11-libs/libXt |
1323 |
- acl? ( kernel_linux? ( sys-apps/acl ) ) |
1324 |
- !aqua? ( |
1325 |
- gtk3? ( |
1326 |
- x11-libs/gtk+:3 |
1327 |
- x11-libs/libXft |
1328 |
- ) |
1329 |
- !gtk3? ( |
1330 |
- gtk? ( |
1331 |
- >=x11-libs/gtk+-2.6:2 |
1332 |
- x11-libs/libXft |
1333 |
- ) |
1334 |
- !gtk? ( |
1335 |
- motif? ( >=x11-libs/motif-2.3:0 ) |
1336 |
- !motif? ( |
1337 |
- neXt? ( x11-libs/neXtaw ) |
1338 |
- !neXt? ( x11-libs/libXaw ) |
1339 |
- ) |
1340 |
- ) |
1341 |
- ) |
1342 |
- ) |
1343 |
- cscope? ( dev-util/cscope ) |
1344 |
- lua? ( |
1345 |
- luajit? ( dev-lang/luajit:2= ) |
1346 |
- !luajit? ( dev-lang/lua:0[deprecated] ) |
1347 |
- ) |
1348 |
- nls? ( virtual/libintl ) |
1349 |
- perl? ( dev-lang/perl:= ) |
1350 |
- python? ( ${PYTHON_DEPS} ) |
1351 |
- racket? ( dev-scheme/racket ) |
1352 |
- ruby? ( ${RUBY_DEPS} ) |
1353 |
- selinux? ( sys-libs/libselinux ) |
1354 |
- session? ( x11-libs/libSM ) |
1355 |
- tcl? ( dev-lang/tcl:0= ) |
1356 |
-" |
1357 |
-DEPEND="${RDEPEND} |
1358 |
- dev-util/ctags |
1359 |
- sys-devel/autoconf |
1360 |
- virtual/pkgconfig |
1361 |
- nls? ( sys-devel/gettext ) |
1362 |
-" |
1363 |
- |
1364 |
-S=${WORKDIR}/vim-${PV} |
1365 |
- |
1366 |
-pkg_setup() { |
1367 |
- # people with broken alphabets run into trouble. bug 82186. |
1368 |
- unset LANG LC_ALL |
1369 |
- export LC_COLLATE="C" |
1370 |
- |
1371 |
- # Gnome sandbox silliness. bug #114475. |
1372 |
- mkdir -p "${T}"/home || die |
1373 |
- export HOME="${T}"/home |
1374 |
- |
1375 |
- use python && python-single-r1_pkg_setup |
1376 |
-} |
1377 |
- |
1378 |
-src_prepare() { |
1379 |
- if [[ ${PV} != 9999* ]]; then |
1380 |
- # Gentoo patches to fix runtime issues, cross-compile errors, etc |
1381 |
- eapply "${WORKDIR}"/patches/ |
1382 |
- fi |
1383 |
- |
1384 |
- # Fixup a script to use awk instead of nawk |
1385 |
- sed -i -e \ |
1386 |
- '1s|.*|#!'"${EPREFIX}"'/usr/bin/awk -f|' \ |
1387 |
- "${S}"/runtime/tools/mve.awk || die "mve.awk sed failed" |
1388 |
- |
1389 |
- # Read vimrc and gvimrc from /etc/vim |
1390 |
- echo '#define SYS_VIMRC_FILE "'${EPREFIX}'/etc/vim/vimrc"' \ |
1391 |
- >> "${S}"/src/feature.h || die "echo failed" |
1392 |
- echo '#define SYS_GVIMRC_FILE "'${EPREFIX}'/etc/vim/gvimrc"' \ |
1393 |
- >> "${S}"/src/feature.h || die "echo failed" |
1394 |
- |
1395 |
- # Use exuberant ctags which installs as /usr/bin/exuberant-ctags. |
1396 |
- # Hopefully this pattern won't break for a while at least. |
1397 |
- # This fixes bug 29398 (27 Sep 2003 agriffis) |
1398 |
- sed -i -e \ |
1399 |
- 's/\<ctags\("\| [-*.]\)/exuberant-&/g' \ |
1400 |
- "${S}"/runtime/doc/syntax.txt \ |
1401 |
- "${S}"/runtime/doc/tagsrch.txt \ |
1402 |
- "${S}"/runtime/doc/usr_29.txt \ |
1403 |
- "${S}"/runtime/menu.vim \ |
1404 |
- "${S}"/src/configure.ac || die 'sed failed' |
1405 |
- |
1406 |
- # Don't be fooled by /usr/include/libc.h. When found, vim thinks |
1407 |
- # this is NeXT, but it's actually just a file in dev-libs/9libs |
1408 |
- # This fixes bug 43885 (20 Mar 2004 agriffis) |
1409 |
- sed -i -e \ |
1410 |
- 's/ libc\.h / /' "${S}"/src/configure.ac || die 'sed failed' |
1411 |
- |
1412 |
- # gcc on sparc32 has this, uhm, interesting problem with detecting EOF |
1413 |
- # correctly. To avoid some really entertaining error messages about stuff |
1414 |
- # which isn't even in the source file being invalid, we'll do some trickery |
1415 |
- # to make the error never occur. bug 66162 (02 October 2004 ciaranm) |
1416 |
- find "${S}" -name '*.c' | while read c; do |
1417 |
- echo >> "$c" || die "echo failed" |
1418 |
- done |
1419 |
- |
1420 |
- # Try to avoid sandbox problems. Bug #114475. |
1421 |
- if [[ -d "${S}"/src/po ]]; then |
1422 |
- sed -i -e \ |
1423 |
- '/-S check.vim/s,..VIM.,ln -s $(VIM) testvim \; ./testvim -X,' \ |
1424 |
- "${S}"/src/po/Makefile || die |
1425 |
- fi |
1426 |
- |
1427 |
- cp -v "${S}"/src/config.mk.dist "${S}"/src/auto/config.mk || die "cp failed" |
1428 |
- |
1429 |
- # Bug #378107 - Build properly with >=perl-core/ExtUtils-ParseXS-3.20.0 |
1430 |
- sed -i -e \ |
1431 |
- "s:\\\$(PERLLIB)/ExtUtils/xsubpp:${EPREFIX}/usr/bin/xsubpp:" \ |
1432 |
- "${S}"/src/Makefile || die 'sed for ExtUtils-ParseXS failed' |
1433 |
- |
1434 |
- eapply_user |
1435 |
-} |
1436 |
- |
1437 |
-src_configure() { |
1438 |
- local myconf=() |
1439 |
- |
1440 |
- # Fix bug 37354: Disallow -funroll-all-loops on amd64 |
1441 |
- # Bug 57859 suggests that we want to do this for all archs |
1442 |
- filter-flags -funroll-all-loops |
1443 |
- |
1444 |
- # Fix bug 76331: -O3 causes problems, use -O2 instead. We'll do this for |
1445 |
- # everyone since previous flag filtering bugs have turned out to affect |
1446 |
- # multiple archs... |
1447 |
- replace-flags -O3 -O2 |
1448 |
- |
1449 |
- # Fix bug 18245: Prevent "make" from the following chain: |
1450 |
- # (1) Notice configure.ac is newer than auto/configure |
1451 |
- # (2) Rebuild auto/configure |
1452 |
- # (3) Notice auto/configure is newer than auto/config.mk |
1453 |
- # (4) Run ./configure (with wrong args) to remake auto/config.mk |
1454 |
- sed -i -e \ |
1455 |
- 's# auto/config\.mk:#:#' src/Makefile || die "Makefile sed failed" |
1456 |
- rm -v src/auto/configure || die "rm failed" |
1457 |
- emake -j1 -C src autoconf |
1458 |
- |
1459 |
- # This should fix a sandbox violation (see bug 24447). The hvc |
1460 |
- # things are for ppc64, see bug 86433. |
1461 |
- local file |
1462 |
- for file in /dev/pty/s* /dev/console /dev/hvc/* /dev/hvc*; do |
1463 |
- if [[ -e ${file} ]]; then |
1464 |
- addwrite $file |
1465 |
- fi |
1466 |
- done |
1467 |
- |
1468 |
- use debug && append-flags "-DDEBUG" |
1469 |
- |
1470 |
- myconf=( |
1471 |
- --with-features=huge |
1472 |
- --disable-gpm |
1473 |
- --enable-multibyte |
1474 |
- $(use_enable acl) |
1475 |
- $(use_enable cscope) |
1476 |
- $(use_enable lua luainterp) |
1477 |
- $(use_with luajit) |
1478 |
- $(use_enable netbeans) |
1479 |
- $(use_enable nls) |
1480 |
- $(use_enable perl perlinterp) |
1481 |
- $(use_enable python pythoninterp) |
1482 |
- $(use_enable python python3interp) |
1483 |
- $(use_enable racket mzschemeinterp) |
1484 |
- $(use_enable ruby rubyinterp) |
1485 |
- $(use_enable selinux) |
1486 |
- $(use_enable session xsmp) |
1487 |
- $(use_enable tcl tclinterp) |
1488 |
- ) |
1489 |
- |
1490 |
- # --with-features=huge forces on cscope even if we --disable it. We need |
1491 |
- # to sed this out to avoid screwiness. (1 Sep 2004 ciaranm) |
1492 |
- if ! use cscope; then |
1493 |
- sed -i -e \ |
1494 |
- '/# define FEAT_CSCOPE/d' src/feature.h || die "couldn't disable cscope" |
1495 |
- fi |
1496 |
- |
1497 |
- # gvim's GUI preference order is as follows: |
1498 |
- # aqua CARBON (not tested) |
1499 |
- # -aqua gtk3 GTK3 |
1500 |
- # -aqua -gtk3 gnome GNOME2 |
1501 |
- # -aqua -gtk3 -gnome gtk GTK2 |
1502 |
- # -aqua -gtk -gtk3 motif MOTIF |
1503 |
- # -aqua -gtk -gtk3 -motif neXt NEXTAW |
1504 |
- # -aqua -gtk -gtk3 -motif -neXt ATHENA |
1505 |
- echo ; echo |
1506 |
- if use aqua; then |
1507 |
- einfo "Building gvim with the Carbon GUI" |
1508 |
- myconf+=( |
1509 |
- --enable-darwin |
1510 |
- --enable-gui=carbon |
1511 |
- ) |
1512 |
- elif use gtk3; then |
1513 |
- myconf+=( --enable-gtk3-check ) |
1514 |
- einfo "Building gvim with the gtk+-3 GUI" |
1515 |
- myconf+=( --enable-gui=gtk3 ) |
1516 |
- elif use gtk; then |
1517 |
- myconf+=( --enable-gtk2-check ) |
1518 |
- if use gnome; then |
1519 |
- einfo "Building gvim with the Gnome 2 GUI" |
1520 |
- myconf+=( --enable-gui=gnome2 ) |
1521 |
- else |
1522 |
- einfo "Building gvim with the gtk+-2 GUI" |
1523 |
- myconf+=( --enable-gui=gtk2 ) |
1524 |
- fi |
1525 |
- elif use motif; then |
1526 |
- einfo "Building gvim with the MOTIF GUI" |
1527 |
- myconf+=( --enable-gui=motif ) |
1528 |
- elif use neXt; then |
1529 |
- einfo "Building gvim with the neXtaw GUI" |
1530 |
- myconf+=( --enable-gui=nextaw ) |
1531 |
- else |
1532 |
- einfo "Building gvim with the Athena GUI" |
1533 |
- myconf+=( --enable-gui=athena ) |
1534 |
- fi |
1535 |
- echo ; echo |
1536 |
- |
1537 |
- # let package manager strip binaries |
1538 |
- export ac_cv_prog_STRIP="$(type -P true ) faking strip" |
1539 |
- |
1540 |
- # keep prefix env contained within the EPREFIX |
1541 |
- use prefix && myconf+=( --without-local-dir ) |
1542 |
- |
1543 |
- if [[ ${CHOST} == *-interix* ]]; then |
1544 |
- # avoid finding of this function, to avoid having to patch either |
1545 |
- # configure or the source, which would be much more hackish. |
1546 |
- # after all vim does it right, only interix is badly broken (again) |
1547 |
- export ac_cv_func_sigaction=no |
1548 |
- fi |
1549 |
- |
1550 |
- econf \ |
1551 |
- --with-modified-by=Gentoo-${PVR} \ |
1552 |
- --with-vim-name=gvim \ |
1553 |
- --with-x \ |
1554 |
- "${myconf[@]}" |
1555 |
-} |
1556 |
- |
1557 |
-src_compile() { |
1558 |
- # The following allows emake to be used |
1559 |
- emake -j1 -C src auto/osdef.h objects |
1560 |
- |
1561 |
- emake |
1562 |
-} |
1563 |
- |
1564 |
-src_test() { |
1565 |
- echo |
1566 |
- einfo "Starting vim tests. Several error messages will be shown" |
1567 |
- einfo "while the tests run. This is normal behaviour and does not" |
1568 |
- einfo "indicate a fault." |
1569 |
- echo |
1570 |
- ewarn "If the tests fail, your terminal may be left in a strange" |
1571 |
- ewarn "state. Usually, running 'reset' will fix this." |
1572 |
- echo |
1573 |
- |
1574 |
- # Don't let vim talk to X |
1575 |
- unset DISPLAY |
1576 |
- |
1577 |
- # Make gvim not try to connect to X. See :help gui-x11-start in vim for how |
1578 |
- # this evil trickery works. |
1579 |
- ln -s "${S}"/src/gvim "${S}"/src/testvim || die |
1580 |
- |
1581 |
- # Make sure our VIMPROG is used. |
1582 |
- sed -i -e 's:\.\./vim:../testvim:' src/testdir/test49.vim || die |
1583 |
- |
1584 |
- # Don't do additional GUI tests. |
1585 |
- emake -j1 VIMPROG=../testvim -C src/testdir nongui |
1586 |
-} |
1587 |
- |
1588 |
-# Call eselect vi update with --if-unset |
1589 |
-# to respect user's choice (bug 187449) |
1590 |
-eselect_vi_update() { |
1591 |
- einfo "Calling eselect vi update..." |
1592 |
- eselect vi update --if-unset |
1593 |
- eend $? |
1594 |
-} |
1595 |
- |
1596 |
-src_install() { |
1597 |
- local vimfiles=/usr/share/vim/vim${VIM_VERSION/.} |
1598 |
- |
1599 |
- dobin src/gvim |
1600 |
- dosym gvim /usr/bin/gvimdiff |
1601 |
- dosym gvim /usr/bin/evim |
1602 |
- dosym gvim /usr/bin/eview |
1603 |
- dosym gvim /usr/bin/gview |
1604 |
- dosym gvim /usr/bin/rgvim |
1605 |
- dosym gvim /usr/bin/rgview |
1606 |
- |
1607 |
- emake -C src DESTDIR="${D}" DATADIR="${EPREFIX}"/usr/share install-icons |
1608 |
- |
1609 |
- dodir /usr/share/man/man1 |
1610 |
- echo ".so vim.1" > "${ED}"/usr/share/man/man1/gvim.1 || die "echo failed" |
1611 |
- echo ".so vim.1" > "${ED}"/usr/share/man/man1/gview.1 || die "echo failed" |
1612 |
- echo ".so vimdiff.1" > "${ED}"/usr/share/man/man1/gvimdiff.1 || \ |
1613 |
- die "echo failed" |
1614 |
- |
1615 |
- insinto /etc/vim |
1616 |
- newins "${FILESDIR}"/gvimrc-r1 gvimrc |
1617 |
- eprefixify "${ED}"/etc/vim/gvimrc |
1618 |
- |
1619 |
- doicon -s scalable "${FILESDIR}"/gvim.svg |
1620 |
- |
1621 |
- # bash completion script, bug #79018. |
1622 |
- newbashcomp "${FILESDIR}"/${PN}-completion ${PN} |
1623 |
- |
1624 |
- # don't install vim desktop file |
1625 |
- rm -v "${ED}"/usr/share/applications/vim.desktop || die "failed to remove vim.desktop" |
1626 |
-} |
1627 |
- |
1628 |
-pkg_postinst() { |
1629 |
- # Update documentation tags (from vim-doc.eclass) |
1630 |
- update_vim_helptags |
1631 |
- |
1632 |
- # Update fdo mime stuff, bug #78394 |
1633 |
- xdg_desktop_database_update |
1634 |
- |
1635 |
- # Update icon cache |
1636 |
- gnome2_icon_cache_update |
1637 |
- |
1638 |
- # Call eselect vi update |
1639 |
- eselect_vi_update |
1640 |
-} |
1641 |
- |
1642 |
-pkg_postrm() { |
1643 |
- # Update documentation tags (from vim-doc.eclass) |
1644 |
- update_vim_helptags |
1645 |
- |
1646 |
- # Update fdo mime stuff, bug #78394 |
1647 |
- xdg_desktop_database_update |
1648 |
- |
1649 |
- # Update icon cache |
1650 |
- gnome2_icon_cache_update |
1651 |
- |
1652 |
- # Call eselect vi update |
1653 |
- eselect_vi_update |
1654 |
-} |
1655 |
|
1656 |
diff --git a/app-editors/gvim/gvim-8.1.0648-r1.ebuild b/app-editors/gvim/gvim-8.1.0648-r1.ebuild |
1657 |
deleted file mode 100644 |
1658 |
index b8a4fdb1c61..00000000000 |
1659 |
--- a/app-editors/gvim/gvim-8.1.0648-r1.ebuild |
1660 |
+++ /dev/null |
1661 |
@@ -1,373 +0,0 @@ |
1662 |
-# Copyright 1999-2019 Gentoo Authors |
1663 |
-# Distributed under the terms of the GNU General Public License v2 |
1664 |
- |
1665 |
-EAPI=6 |
1666 |
-VIM_VERSION="8.1" |
1667 |
-PYTHON_COMPAT=( python{2_7,3_5,3_6,3_7} ) |
1668 |
-PYTHON_REQ_USE="threads(+)" |
1669 |
-USE_RUBY="ruby23 ruby24 ruby25" |
1670 |
- |
1671 |
-inherit vim-doc flag-o-matic xdg-utils gnome2-utils bash-completion-r1 prefix python-single-r1 ruby-single |
1672 |
- |
1673 |
-if [[ ${PV} == 9999* ]]; then |
1674 |
- inherit git-r3 |
1675 |
- EGIT_REPO_URI="https://github.com/vim/vim.git" |
1676 |
- EGIT_CHECKOUT_DIR=${WORKDIR}/vim-${PV} |
1677 |
-else |
1678 |
- SRC_URI="https://github.com/vim/vim/archive/v${PV}.tar.gz -> vim-${PV}.tar.gz |
1679 |
- https://dev.gentoo.org/~radhermit/vim/vim-8.0.0938-gentoo-patches.tar.bz2" |
1680 |
- KEYWORDS="alpha amd64 arm ~arm64 hppa ~ia64 ~ppc ~ppc64 sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris" |
1681 |
-fi |
1682 |
- |
1683 |
-DESCRIPTION="GUI version of the Vim text editor" |
1684 |
-HOMEPAGE="https://vim.sourceforge.io/ https://github.com/vim/vim" |
1685 |
- |
1686 |
-SLOT="0" |
1687 |
-LICENSE="vim" |
1688 |
-IUSE="acl aqua cscope debug gnome gtk gtk3 lua luajit motif neXt netbeans nls perl python racket ruby selinux session tcl" |
1689 |
-REQUIRED_USE=" |
1690 |
- luajit? ( lua ) |
1691 |
- python? ( ${PYTHON_REQUIRED_USE} ) |
1692 |
-" |
1693 |
- |
1694 |
-RDEPEND=" |
1695 |
- >=app-eselect/eselect-vi-1.1 |
1696 |
- >=sys-libs/ncurses-5.2-r2:0= |
1697 |
- x11-libs/libICE |
1698 |
- x11-libs/libSM |
1699 |
- x11-libs/libXext |
1700 |
- x11-libs/libXt |
1701 |
- acl? ( kernel_linux? ( sys-apps/acl ) ) |
1702 |
- !aqua? ( |
1703 |
- gtk3? ( |
1704 |
- x11-libs/gtk+:3 |
1705 |
- x11-libs/libXft |
1706 |
- ) |
1707 |
- !gtk3? ( |
1708 |
- gtk? ( |
1709 |
- >=x11-libs/gtk+-2.6:2 |
1710 |
- x11-libs/libXft |
1711 |
- ) |
1712 |
- !gtk? ( |
1713 |
- motif? ( >=x11-libs/motif-2.3:0 ) |
1714 |
- !motif? ( |
1715 |
- neXt? ( x11-libs/neXtaw ) |
1716 |
- !neXt? ( x11-libs/libXaw ) |
1717 |
- ) |
1718 |
- ) |
1719 |
- ) |
1720 |
- ) |
1721 |
- cscope? ( dev-util/cscope ) |
1722 |
- lua? ( |
1723 |
- luajit? ( dev-lang/luajit:2= ) |
1724 |
- !luajit? ( dev-lang/lua:0[deprecated] ) |
1725 |
- ) |
1726 |
- nls? ( virtual/libintl ) |
1727 |
- perl? ( dev-lang/perl:= ) |
1728 |
- python? ( ${PYTHON_DEPS} ) |
1729 |
- racket? ( dev-scheme/racket ) |
1730 |
- ruby? ( ${RUBY_DEPS} ) |
1731 |
- selinux? ( sys-libs/libselinux ) |
1732 |
- session? ( x11-libs/libSM ) |
1733 |
- tcl? ( dev-lang/tcl:0= ) |
1734 |
-" |
1735 |
-DEPEND="${RDEPEND} |
1736 |
- dev-util/ctags |
1737 |
- sys-devel/autoconf |
1738 |
- virtual/pkgconfig |
1739 |
- nls? ( sys-devel/gettext ) |
1740 |
-" |
1741 |
-# temporarily use PDEPEND to allow upgrades past icon file collision, bug #673880 |
1742 |
-PDEPEND="~app-editors/vim-core-${PV}" |
1743 |
- |
1744 |
-S=${WORKDIR}/vim-${PV} |
1745 |
- |
1746 |
-pkg_setup() { |
1747 |
- # people with broken alphabets run into trouble. bug 82186. |
1748 |
- unset LANG LC_ALL |
1749 |
- export LC_COLLATE="C" |
1750 |
- |
1751 |
- # Gnome sandbox silliness. bug #114475. |
1752 |
- mkdir -p "${T}"/home || die |
1753 |
- export HOME="${T}"/home |
1754 |
- |
1755 |
- use python && python-single-r1_pkg_setup |
1756 |
-} |
1757 |
- |
1758 |
-src_prepare() { |
1759 |
- if [[ ${PV} != 9999* ]]; then |
1760 |
- # Gentoo patches to fix runtime issues, cross-compile errors, etc |
1761 |
- eapply "${WORKDIR}"/patches/ |
1762 |
- fi |
1763 |
- |
1764 |
- # Fixup a script to use awk instead of nawk |
1765 |
- sed -i -e \ |
1766 |
- '1s|.*|#!'"${EPREFIX}"'/usr/bin/awk -f|' \ |
1767 |
- "${S}"/runtime/tools/mve.awk || die "mve.awk sed failed" |
1768 |
- |
1769 |
- # Read vimrc and gvimrc from /etc/vim |
1770 |
- echo '#define SYS_VIMRC_FILE "'${EPREFIX}'/etc/vim/vimrc"' \ |
1771 |
- >> "${S}"/src/feature.h || die "echo failed" |
1772 |
- echo '#define SYS_GVIMRC_FILE "'${EPREFIX}'/etc/vim/gvimrc"' \ |
1773 |
- >> "${S}"/src/feature.h || die "echo failed" |
1774 |
- |
1775 |
- # Use exuberant ctags which installs as /usr/bin/exuberant-ctags. |
1776 |
- # Hopefully this pattern won't break for a while at least. |
1777 |
- # This fixes bug 29398 (27 Sep 2003 agriffis) |
1778 |
- sed -i -e \ |
1779 |
- 's/\<ctags\("\| [-*.]\)/exuberant-&/g' \ |
1780 |
- "${S}"/runtime/doc/syntax.txt \ |
1781 |
- "${S}"/runtime/doc/tagsrch.txt \ |
1782 |
- "${S}"/runtime/doc/usr_29.txt \ |
1783 |
- "${S}"/runtime/menu.vim \ |
1784 |
- "${S}"/src/configure.ac || die 'sed failed' |
1785 |
- |
1786 |
- # Don't be fooled by /usr/include/libc.h. When found, vim thinks |
1787 |
- # this is NeXT, but it's actually just a file in dev-libs/9libs |
1788 |
- # This fixes bug 43885 (20 Mar 2004 agriffis) |
1789 |
- sed -i -e \ |
1790 |
- 's/ libc\.h / /' "${S}"/src/configure.ac || die 'sed failed' |
1791 |
- |
1792 |
- # gcc on sparc32 has this, uhm, interesting problem with detecting EOF |
1793 |
- # correctly. To avoid some really entertaining error messages about stuff |
1794 |
- # which isn't even in the source file being invalid, we'll do some trickery |
1795 |
- # to make the error never occur. bug 66162 (02 October 2004 ciaranm) |
1796 |
- find "${S}" -name '*.c' | while read c; do |
1797 |
- echo >> "$c" || die "echo failed" |
1798 |
- done |
1799 |
- |
1800 |
- # Try to avoid sandbox problems. Bug #114475. |
1801 |
- if [[ -d "${S}"/src/po ]]; then |
1802 |
- sed -i -e \ |
1803 |
- '/-S check.vim/s,..VIM.,ln -s $(VIM) testvim \; ./testvim -X,' \ |
1804 |
- "${S}"/src/po/Makefile || die |
1805 |
- fi |
1806 |
- |
1807 |
- cp -v "${S}"/src/config.mk.dist "${S}"/src/auto/config.mk || die "cp failed" |
1808 |
- |
1809 |
- # Bug #378107 - Build properly with >=perl-core/ExtUtils-ParseXS-3.20.0 |
1810 |
- sed -i -e \ |
1811 |
- "s:\\\$(PERLLIB)/ExtUtils/xsubpp:${EPREFIX}/usr/bin/xsubpp:" \ |
1812 |
- "${S}"/src/Makefile || die 'sed for ExtUtils-ParseXS failed' |
1813 |
- |
1814 |
- eapply_user |
1815 |
-} |
1816 |
- |
1817 |
-src_configure() { |
1818 |
- local myconf=() |
1819 |
- |
1820 |
- # Fix bug 37354: Disallow -funroll-all-loops on amd64 |
1821 |
- # Bug 57859 suggests that we want to do this for all archs |
1822 |
- filter-flags -funroll-all-loops |
1823 |
- |
1824 |
- # Fix bug 76331: -O3 causes problems, use -O2 instead. We'll do this for |
1825 |
- # everyone since previous flag filtering bugs have turned out to affect |
1826 |
- # multiple archs... |
1827 |
- replace-flags -O3 -O2 |
1828 |
- |
1829 |
- # Fix bug 18245: Prevent "make" from the following chain: |
1830 |
- # (1) Notice configure.ac is newer than auto/configure |
1831 |
- # (2) Rebuild auto/configure |
1832 |
- # (3) Notice auto/configure is newer than auto/config.mk |
1833 |
- # (4) Run ./configure (with wrong args) to remake auto/config.mk |
1834 |
- sed -i -e \ |
1835 |
- 's# auto/config\.mk:#:#' src/Makefile || die "Makefile sed failed" |
1836 |
- rm -v src/auto/configure || die "rm failed" |
1837 |
- emake -j1 -C src autoconf |
1838 |
- |
1839 |
- # This should fix a sandbox violation (see bug 24447). The hvc |
1840 |
- # things are for ppc64, see bug 86433. |
1841 |
- local file |
1842 |
- for file in /dev/pty/s* /dev/console /dev/hvc/* /dev/hvc*; do |
1843 |
- if [[ -e ${file} ]]; then |
1844 |
- addwrite $file |
1845 |
- fi |
1846 |
- done |
1847 |
- |
1848 |
- use debug && append-flags "-DDEBUG" |
1849 |
- |
1850 |
- myconf=( |
1851 |
- --with-features=huge |
1852 |
- --disable-gpm |
1853 |
- --enable-multibyte |
1854 |
- $(use_enable acl) |
1855 |
- $(use_enable cscope) |
1856 |
- $(use_enable lua luainterp) |
1857 |
- $(use_with luajit) |
1858 |
- $(use_enable netbeans) |
1859 |
- $(use_enable nls) |
1860 |
- $(use_enable perl perlinterp) |
1861 |
- $(use_enable python pythoninterp) |
1862 |
- $(use_enable python python3interp) |
1863 |
- $(use_with python python-command $(type -P $(eselect python show --python2))) |
1864 |
- $(use_with python python3-command $(type -P $(eselect python show --python3))) |
1865 |
- $(use_enable racket mzschemeinterp) |
1866 |
- $(use_enable ruby rubyinterp) |
1867 |
- $(use_enable selinux) |
1868 |
- $(use_enable session xsmp) |
1869 |
- $(use_enable tcl tclinterp) |
1870 |
- ) |
1871 |
- |
1872 |
- # --with-features=huge forces on cscope even if we --disable it. We need |
1873 |
- # to sed this out to avoid screwiness. (1 Sep 2004 ciaranm) |
1874 |
- if ! use cscope; then |
1875 |
- sed -i -e \ |
1876 |
- '/# define FEAT_CSCOPE/d' src/feature.h || die "couldn't disable cscope" |
1877 |
- fi |
1878 |
- |
1879 |
- # gvim's GUI preference order is as follows: |
1880 |
- # aqua CARBON (not tested) |
1881 |
- # -aqua gtk3 GTK3 |
1882 |
- # -aqua -gtk3 gnome GNOME2 |
1883 |
- # -aqua -gtk3 -gnome gtk GTK2 |
1884 |
- # -aqua -gtk -gtk3 motif MOTIF |
1885 |
- # -aqua -gtk -gtk3 -motif neXt NEXTAW |
1886 |
- # -aqua -gtk -gtk3 -motif -neXt ATHENA |
1887 |
- echo ; echo |
1888 |
- if use aqua; then |
1889 |
- einfo "Building gvim with the Carbon GUI" |
1890 |
- myconf+=( |
1891 |
- --enable-darwin |
1892 |
- --enable-gui=carbon |
1893 |
- ) |
1894 |
- elif use gtk3; then |
1895 |
- myconf+=( --enable-gtk3-check ) |
1896 |
- einfo "Building gvim with the gtk+-3 GUI" |
1897 |
- myconf+=( --enable-gui=gtk3 ) |
1898 |
- elif use gtk; then |
1899 |
- myconf+=( --enable-gtk2-check ) |
1900 |
- if use gnome; then |
1901 |
- einfo "Building gvim with the Gnome 2 GUI" |
1902 |
- myconf+=( --enable-gui=gnome2 ) |
1903 |
- else |
1904 |
- einfo "Building gvim with the gtk+-2 GUI" |
1905 |
- myconf+=( --enable-gui=gtk2 ) |
1906 |
- fi |
1907 |
- elif use motif; then |
1908 |
- einfo "Building gvim with the MOTIF GUI" |
1909 |
- myconf+=( --enable-gui=motif ) |
1910 |
- elif use neXt; then |
1911 |
- einfo "Building gvim with the neXtaw GUI" |
1912 |
- myconf+=( --enable-gui=nextaw ) |
1913 |
- else |
1914 |
- einfo "Building gvim with the Athena GUI" |
1915 |
- myconf+=( --enable-gui=athena ) |
1916 |
- fi |
1917 |
- echo ; echo |
1918 |
- |
1919 |
- # let package manager strip binaries |
1920 |
- export ac_cv_prog_STRIP="$(type -P true ) faking strip" |
1921 |
- |
1922 |
- # keep prefix env contained within the EPREFIX |
1923 |
- use prefix && myconf+=( --without-local-dir ) |
1924 |
- |
1925 |
- if [[ ${CHOST} == *-interix* ]]; then |
1926 |
- # avoid finding of this function, to avoid having to patch either |
1927 |
- # configure or the source, which would be much more hackish. |
1928 |
- # after all vim does it right, only interix is badly broken (again) |
1929 |
- export ac_cv_func_sigaction=no |
1930 |
- fi |
1931 |
- |
1932 |
- econf \ |
1933 |
- --with-modified-by=Gentoo-${PVR} \ |
1934 |
- --with-vim-name=gvim \ |
1935 |
- --with-x \ |
1936 |
- "${myconf[@]}" |
1937 |
-} |
1938 |
- |
1939 |
-src_compile() { |
1940 |
- # The following allows emake to be used |
1941 |
- emake -j1 -C src auto/osdef.h objects |
1942 |
- |
1943 |
- emake |
1944 |
-} |
1945 |
- |
1946 |
-src_test() { |
1947 |
- einfo |
1948 |
- einfo "Starting vim tests. Several error messages will be shown" |
1949 |
- einfo "while the tests run. This is normal behaviour and does not" |
1950 |
- einfo "indicate a fault." |
1951 |
- einfo |
1952 |
- ewarn "If the tests fail, your terminal may be left in a strange" |
1953 |
- ewarn "state. Usually, running 'reset' will fix this." |
1954 |
- einfo |
1955 |
- |
1956 |
- # Don't let vim talk to X |
1957 |
- unset DISPLAY |
1958 |
- |
1959 |
- # Make gvim not try to connect to X. See :help gui-x11-start in vim for how |
1960 |
- # this evil trickery works. |
1961 |
- ln -s "${S}"/src/gvim "${S}"/src/testvim || die |
1962 |
- |
1963 |
- # Make sure our VIMPROG is used. |
1964 |
- sed -i -e 's:\.\./vim:../testvim:' src/testdir/test49.vim || die |
1965 |
- |
1966 |
- # Don't do additional GUI tests. |
1967 |
- emake -j1 VIMPROG=../testvim -C src/testdir nongui |
1968 |
-} |
1969 |
- |
1970 |
-# Call eselect vi update with --if-unset |
1971 |
-# to respect user's choice (bug 187449) |
1972 |
-eselect_vi_update() { |
1973 |
- einfo "Calling eselect vi update..." |
1974 |
- eselect vi update --if-unset |
1975 |
- eend $? |
1976 |
-} |
1977 |
- |
1978 |
-src_install() { |
1979 |
- local vimfiles=/usr/share/vim/vim${VIM_VERSION/.} |
1980 |
- |
1981 |
- dobin src/gvim |
1982 |
- dosym gvim /usr/bin/gvimdiff |
1983 |
- dosym gvim /usr/bin/evim |
1984 |
- dosym gvim /usr/bin/eview |
1985 |
- dosym gvim /usr/bin/gview |
1986 |
- dosym gvim /usr/bin/rgvim |
1987 |
- dosym gvim /usr/bin/rgview |
1988 |
- |
1989 |
- emake -C src DESTDIR="${D}" DATADIR="${EPREFIX}"/usr/share install-icons |
1990 |
- |
1991 |
- dodir /usr/share/man/man1 |
1992 |
- echo ".so vim.1" > "${ED}"/usr/share/man/man1/gvim.1 || die "echo failed" |
1993 |
- echo ".so vim.1" > "${ED}"/usr/share/man/man1/gview.1 || die "echo failed" |
1994 |
- echo ".so vimdiff.1" > "${ED}"/usr/share/man/man1/gvimdiff.1 || \ |
1995 |
- die "echo failed" |
1996 |
- |
1997 |
- insinto /etc/vim |
1998 |
- newins "${FILESDIR}"/gvimrc-r1 gvimrc |
1999 |
- eprefixify "${ED}"/etc/vim/gvimrc |
2000 |
- |
2001 |
- # bash completion script, bug #79018. |
2002 |
- newbashcomp "${FILESDIR}"/${PN}-completion ${PN} |
2003 |
- |
2004 |
- # don't install vim desktop file |
2005 |
- rm -v "${ED}"/usr/share/applications/vim.desktop || die "failed to remove vim.desktop" |
2006 |
-} |
2007 |
- |
2008 |
-pkg_postinst() { |
2009 |
- # Update documentation tags (from vim-doc.eclass) |
2010 |
- update_vim_helptags |
2011 |
- |
2012 |
- # Update fdo mime stuff, bug #78394 |
2013 |
- xdg_desktop_database_update |
2014 |
- |
2015 |
- # Update icon cache |
2016 |
- gnome2_icon_cache_update |
2017 |
- |
2018 |
- # Call eselect vi update |
2019 |
- eselect_vi_update |
2020 |
-} |
2021 |
- |
2022 |
-pkg_postrm() { |
2023 |
- # Update documentation tags (from vim-doc.eclass) |
2024 |
- update_vim_helptags |
2025 |
- |
2026 |
- # Update fdo mime stuff, bug #78394 |
2027 |
- xdg_desktop_database_update |
2028 |
- |
2029 |
- # Update icon cache |
2030 |
- gnome2_icon_cache_update |
2031 |
- |
2032 |
- # Call eselect vi update |
2033 |
- eselect_vi_update |
2034 |
-} |
2035 |
|
2036 |
diff --git a/app-editors/gvim/gvim-8.1.0648.ebuild b/app-editors/gvim/gvim-8.1.0648.ebuild |
2037 |
deleted file mode 100644 |
2038 |
index 0b73a8cf414..00000000000 |
2039 |
--- a/app-editors/gvim/gvim-8.1.0648.ebuild |
2040 |
+++ /dev/null |
2041 |
@@ -1,371 +0,0 @@ |
2042 |
-# Copyright 1999-2019 Gentoo Authors |
2043 |
-# Distributed under the terms of the GNU General Public License v2 |
2044 |
- |
2045 |
-EAPI=6 |
2046 |
-VIM_VERSION="8.1" |
2047 |
-PYTHON_COMPAT=( python{2_7,3_5,3_6,3_7} ) |
2048 |
-PYTHON_REQ_USE="threads(+)" |
2049 |
-USE_RUBY="ruby23 ruby24 ruby25" |
2050 |
- |
2051 |
-inherit vim-doc flag-o-matic xdg-utils gnome2-utils bash-completion-r1 prefix python-single-r1 ruby-single |
2052 |
- |
2053 |
-if [[ ${PV} == 9999* ]]; then |
2054 |
- inherit git-r3 |
2055 |
- EGIT_REPO_URI="https://github.com/vim/vim.git" |
2056 |
- EGIT_CHECKOUT_DIR=${WORKDIR}/vim-${PV} |
2057 |
-else |
2058 |
- SRC_URI="https://github.com/vim/vim/archive/v${PV}.tar.gz -> vim-${PV}.tar.gz |
2059 |
- https://dev.gentoo.org/~radhermit/vim/vim-8.0.0938-gentoo-patches.tar.bz2" |
2060 |
- KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris" |
2061 |
-fi |
2062 |
- |
2063 |
-DESCRIPTION="GUI version of the Vim text editor" |
2064 |
-HOMEPAGE="https://vim.sourceforge.io/ https://github.com/vim/vim" |
2065 |
- |
2066 |
-SLOT="0" |
2067 |
-LICENSE="vim" |
2068 |
-IUSE="acl aqua cscope debug gnome gtk gtk3 lua luajit motif neXt netbeans nls perl python racket ruby selinux session tcl" |
2069 |
-REQUIRED_USE=" |
2070 |
- luajit? ( lua ) |
2071 |
- python? ( ${PYTHON_REQUIRED_USE} ) |
2072 |
-" |
2073 |
- |
2074 |
-RDEPEND=" |
2075 |
- >=app-eselect/eselect-vi-1.1 |
2076 |
- >=sys-libs/ncurses-5.2-r2:0= |
2077 |
- x11-libs/libICE |
2078 |
- x11-libs/libSM |
2079 |
- x11-libs/libXext |
2080 |
- x11-libs/libXt |
2081 |
- acl? ( kernel_linux? ( sys-apps/acl ) ) |
2082 |
- !aqua? ( |
2083 |
- gtk3? ( |
2084 |
- x11-libs/gtk+:3 |
2085 |
- x11-libs/libXft |
2086 |
- ) |
2087 |
- !gtk3? ( |
2088 |
- gtk? ( |
2089 |
- >=x11-libs/gtk+-2.6:2 |
2090 |
- x11-libs/libXft |
2091 |
- ) |
2092 |
- !gtk? ( |
2093 |
- motif? ( >=x11-libs/motif-2.3:0 ) |
2094 |
- !motif? ( |
2095 |
- neXt? ( x11-libs/neXtaw ) |
2096 |
- !neXt? ( x11-libs/libXaw ) |
2097 |
- ) |
2098 |
- ) |
2099 |
- ) |
2100 |
- ) |
2101 |
- cscope? ( dev-util/cscope ) |
2102 |
- lua? ( |
2103 |
- luajit? ( dev-lang/luajit:2= ) |
2104 |
- !luajit? ( dev-lang/lua:0[deprecated] ) |
2105 |
- ) |
2106 |
- nls? ( virtual/libintl ) |
2107 |
- perl? ( dev-lang/perl:= ) |
2108 |
- python? ( ${PYTHON_DEPS} ) |
2109 |
- racket? ( dev-scheme/racket ) |
2110 |
- ruby? ( ${RUBY_DEPS} ) |
2111 |
- selinux? ( sys-libs/libselinux ) |
2112 |
- session? ( x11-libs/libSM ) |
2113 |
- tcl? ( dev-lang/tcl:0= ) |
2114 |
-" |
2115 |
-DEPEND="${RDEPEND} |
2116 |
- dev-util/ctags |
2117 |
- sys-devel/autoconf |
2118 |
- virtual/pkgconfig |
2119 |
- nls? ( sys-devel/gettext ) |
2120 |
-" |
2121 |
-# temporarily use PDEPEND to allow upgrades past icon file collision, bug #673880 |
2122 |
-PDEPEND="~app-editors/vim-core-${PV}" |
2123 |
- |
2124 |
-S=${WORKDIR}/vim-${PV} |
2125 |
- |
2126 |
-pkg_setup() { |
2127 |
- # people with broken alphabets run into trouble. bug 82186. |
2128 |
- unset LANG LC_ALL |
2129 |
- export LC_COLLATE="C" |
2130 |
- |
2131 |
- # Gnome sandbox silliness. bug #114475. |
2132 |
- mkdir -p "${T}"/home || die |
2133 |
- export HOME="${T}"/home |
2134 |
- |
2135 |
- use python && python-single-r1_pkg_setup |
2136 |
-} |
2137 |
- |
2138 |
-src_prepare() { |
2139 |
- if [[ ${PV} != 9999* ]]; then |
2140 |
- # Gentoo patches to fix runtime issues, cross-compile errors, etc |
2141 |
- eapply "${WORKDIR}"/patches/ |
2142 |
- fi |
2143 |
- |
2144 |
- # Fixup a script to use awk instead of nawk |
2145 |
- sed -i -e \ |
2146 |
- '1s|.*|#!'"${EPREFIX}"'/usr/bin/awk -f|' \ |
2147 |
- "${S}"/runtime/tools/mve.awk || die "mve.awk sed failed" |
2148 |
- |
2149 |
- # Read vimrc and gvimrc from /etc/vim |
2150 |
- echo '#define SYS_VIMRC_FILE "'${EPREFIX}'/etc/vim/vimrc"' \ |
2151 |
- >> "${S}"/src/feature.h || die "echo failed" |
2152 |
- echo '#define SYS_GVIMRC_FILE "'${EPREFIX}'/etc/vim/gvimrc"' \ |
2153 |
- >> "${S}"/src/feature.h || die "echo failed" |
2154 |
- |
2155 |
- # Use exuberant ctags which installs as /usr/bin/exuberant-ctags. |
2156 |
- # Hopefully this pattern won't break for a while at least. |
2157 |
- # This fixes bug 29398 (27 Sep 2003 agriffis) |
2158 |
- sed -i -e \ |
2159 |
- 's/\<ctags\("\| [-*.]\)/exuberant-&/g' \ |
2160 |
- "${S}"/runtime/doc/syntax.txt \ |
2161 |
- "${S}"/runtime/doc/tagsrch.txt \ |
2162 |
- "${S}"/runtime/doc/usr_29.txt \ |
2163 |
- "${S}"/runtime/menu.vim \ |
2164 |
- "${S}"/src/configure.ac || die 'sed failed' |
2165 |
- |
2166 |
- # Don't be fooled by /usr/include/libc.h. When found, vim thinks |
2167 |
- # this is NeXT, but it's actually just a file in dev-libs/9libs |
2168 |
- # This fixes bug 43885 (20 Mar 2004 agriffis) |
2169 |
- sed -i -e \ |
2170 |
- 's/ libc\.h / /' "${S}"/src/configure.ac || die 'sed failed' |
2171 |
- |
2172 |
- # gcc on sparc32 has this, uhm, interesting problem with detecting EOF |
2173 |
- # correctly. To avoid some really entertaining error messages about stuff |
2174 |
- # which isn't even in the source file being invalid, we'll do some trickery |
2175 |
- # to make the error never occur. bug 66162 (02 October 2004 ciaranm) |
2176 |
- find "${S}" -name '*.c' | while read c; do |
2177 |
- echo >> "$c" || die "echo failed" |
2178 |
- done |
2179 |
- |
2180 |
- # Try to avoid sandbox problems. Bug #114475. |
2181 |
- if [[ -d "${S}"/src/po ]]; then |
2182 |
- sed -i -e \ |
2183 |
- '/-S check.vim/s,..VIM.,ln -s $(VIM) testvim \; ./testvim -X,' \ |
2184 |
- "${S}"/src/po/Makefile || die |
2185 |
- fi |
2186 |
- |
2187 |
- cp -v "${S}"/src/config.mk.dist "${S}"/src/auto/config.mk || die "cp failed" |
2188 |
- |
2189 |
- # Bug #378107 - Build properly with >=perl-core/ExtUtils-ParseXS-3.20.0 |
2190 |
- sed -i -e \ |
2191 |
- "s:\\\$(PERLLIB)/ExtUtils/xsubpp:${EPREFIX}/usr/bin/xsubpp:" \ |
2192 |
- "${S}"/src/Makefile || die 'sed for ExtUtils-ParseXS failed' |
2193 |
- |
2194 |
- eapply_user |
2195 |
-} |
2196 |
- |
2197 |
-src_configure() { |
2198 |
- local myconf=() |
2199 |
- |
2200 |
- # Fix bug 37354: Disallow -funroll-all-loops on amd64 |
2201 |
- # Bug 57859 suggests that we want to do this for all archs |
2202 |
- filter-flags -funroll-all-loops |
2203 |
- |
2204 |
- # Fix bug 76331: -O3 causes problems, use -O2 instead. We'll do this for |
2205 |
- # everyone since previous flag filtering bugs have turned out to affect |
2206 |
- # multiple archs... |
2207 |
- replace-flags -O3 -O2 |
2208 |
- |
2209 |
- # Fix bug 18245: Prevent "make" from the following chain: |
2210 |
- # (1) Notice configure.ac is newer than auto/configure |
2211 |
- # (2) Rebuild auto/configure |
2212 |
- # (3) Notice auto/configure is newer than auto/config.mk |
2213 |
- # (4) Run ./configure (with wrong args) to remake auto/config.mk |
2214 |
- sed -i -e \ |
2215 |
- 's# auto/config\.mk:#:#' src/Makefile || die "Makefile sed failed" |
2216 |
- rm -v src/auto/configure || die "rm failed" |
2217 |
- emake -j1 -C src autoconf |
2218 |
- |
2219 |
- # This should fix a sandbox violation (see bug 24447). The hvc |
2220 |
- # things are for ppc64, see bug 86433. |
2221 |
- local file |
2222 |
- for file in /dev/pty/s* /dev/console /dev/hvc/* /dev/hvc*; do |
2223 |
- if [[ -e ${file} ]]; then |
2224 |
- addwrite $file |
2225 |
- fi |
2226 |
- done |
2227 |
- |
2228 |
- use debug && append-flags "-DDEBUG" |
2229 |
- |
2230 |
- myconf=( |
2231 |
- --with-features=huge |
2232 |
- --disable-gpm |
2233 |
- --enable-multibyte |
2234 |
- $(use_enable acl) |
2235 |
- $(use_enable cscope) |
2236 |
- $(use_enable lua luainterp) |
2237 |
- $(use_with luajit) |
2238 |
- $(use_enable netbeans) |
2239 |
- $(use_enable nls) |
2240 |
- $(use_enable perl perlinterp) |
2241 |
- $(use_enable python pythoninterp) |
2242 |
- $(use_enable python python3interp) |
2243 |
- $(use_enable racket mzschemeinterp) |
2244 |
- $(use_enable ruby rubyinterp) |
2245 |
- $(use_enable selinux) |
2246 |
- $(use_enable session xsmp) |
2247 |
- $(use_enable tcl tclinterp) |
2248 |
- ) |
2249 |
- |
2250 |
- # --with-features=huge forces on cscope even if we --disable it. We need |
2251 |
- # to sed this out to avoid screwiness. (1 Sep 2004 ciaranm) |
2252 |
- if ! use cscope; then |
2253 |
- sed -i -e \ |
2254 |
- '/# define FEAT_CSCOPE/d' src/feature.h || die "couldn't disable cscope" |
2255 |
- fi |
2256 |
- |
2257 |
- # gvim's GUI preference order is as follows: |
2258 |
- # aqua CARBON (not tested) |
2259 |
- # -aqua gtk3 GTK3 |
2260 |
- # -aqua -gtk3 gnome GNOME2 |
2261 |
- # -aqua -gtk3 -gnome gtk GTK2 |
2262 |
- # -aqua -gtk -gtk3 motif MOTIF |
2263 |
- # -aqua -gtk -gtk3 -motif neXt NEXTAW |
2264 |
- # -aqua -gtk -gtk3 -motif -neXt ATHENA |
2265 |
- echo ; echo |
2266 |
- if use aqua; then |
2267 |
- einfo "Building gvim with the Carbon GUI" |
2268 |
- myconf+=( |
2269 |
- --enable-darwin |
2270 |
- --enable-gui=carbon |
2271 |
- ) |
2272 |
- elif use gtk3; then |
2273 |
- myconf+=( --enable-gtk3-check ) |
2274 |
- einfo "Building gvim with the gtk+-3 GUI" |
2275 |
- myconf+=( --enable-gui=gtk3 ) |
2276 |
- elif use gtk; then |
2277 |
- myconf+=( --enable-gtk2-check ) |
2278 |
- if use gnome; then |
2279 |
- einfo "Building gvim with the Gnome 2 GUI" |
2280 |
- myconf+=( --enable-gui=gnome2 ) |
2281 |
- else |
2282 |
- einfo "Building gvim with the gtk+-2 GUI" |
2283 |
- myconf+=( --enable-gui=gtk2 ) |
2284 |
- fi |
2285 |
- elif use motif; then |
2286 |
- einfo "Building gvim with the MOTIF GUI" |
2287 |
- myconf+=( --enable-gui=motif ) |
2288 |
- elif use neXt; then |
2289 |
- einfo "Building gvim with the neXtaw GUI" |
2290 |
- myconf+=( --enable-gui=nextaw ) |
2291 |
- else |
2292 |
- einfo "Building gvim with the Athena GUI" |
2293 |
- myconf+=( --enable-gui=athena ) |
2294 |
- fi |
2295 |
- echo ; echo |
2296 |
- |
2297 |
- # let package manager strip binaries |
2298 |
- export ac_cv_prog_STRIP="$(type -P true ) faking strip" |
2299 |
- |
2300 |
- # keep prefix env contained within the EPREFIX |
2301 |
- use prefix && myconf+=( --without-local-dir ) |
2302 |
- |
2303 |
- if [[ ${CHOST} == *-interix* ]]; then |
2304 |
- # avoid finding of this function, to avoid having to patch either |
2305 |
- # configure or the source, which would be much more hackish. |
2306 |
- # after all vim does it right, only interix is badly broken (again) |
2307 |
- export ac_cv_func_sigaction=no |
2308 |
- fi |
2309 |
- |
2310 |
- econf \ |
2311 |
- --with-modified-by=Gentoo-${PVR} \ |
2312 |
- --with-vim-name=gvim \ |
2313 |
- --with-x \ |
2314 |
- "${myconf[@]}" |
2315 |
-} |
2316 |
- |
2317 |
-src_compile() { |
2318 |
- # The following allows emake to be used |
2319 |
- emake -j1 -C src auto/osdef.h objects |
2320 |
- |
2321 |
- emake |
2322 |
-} |
2323 |
- |
2324 |
-src_test() { |
2325 |
- einfo |
2326 |
- einfo "Starting vim tests. Several error messages will be shown" |
2327 |
- einfo "while the tests run. This is normal behaviour and does not" |
2328 |
- einfo "indicate a fault." |
2329 |
- einfo |
2330 |
- ewarn "If the tests fail, your terminal may be left in a strange" |
2331 |
- ewarn "state. Usually, running 'reset' will fix this." |
2332 |
- einfo |
2333 |
- |
2334 |
- # Don't let vim talk to X |
2335 |
- unset DISPLAY |
2336 |
- |
2337 |
- # Make gvim not try to connect to X. See :help gui-x11-start in vim for how |
2338 |
- # this evil trickery works. |
2339 |
- ln -s "${S}"/src/gvim "${S}"/src/testvim || die |
2340 |
- |
2341 |
- # Make sure our VIMPROG is used. |
2342 |
- sed -i -e 's:\.\./vim:../testvim:' src/testdir/test49.vim || die |
2343 |
- |
2344 |
- # Don't do additional GUI tests. |
2345 |
- emake -j1 VIMPROG=../testvim -C src/testdir nongui |
2346 |
-} |
2347 |
- |
2348 |
-# Call eselect vi update with --if-unset |
2349 |
-# to respect user's choice (bug 187449) |
2350 |
-eselect_vi_update() { |
2351 |
- einfo "Calling eselect vi update..." |
2352 |
- eselect vi update --if-unset |
2353 |
- eend $? |
2354 |
-} |
2355 |
- |
2356 |
-src_install() { |
2357 |
- local vimfiles=/usr/share/vim/vim${VIM_VERSION/.} |
2358 |
- |
2359 |
- dobin src/gvim |
2360 |
- dosym gvim /usr/bin/gvimdiff |
2361 |
- dosym gvim /usr/bin/evim |
2362 |
- dosym gvim /usr/bin/eview |
2363 |
- dosym gvim /usr/bin/gview |
2364 |
- dosym gvim /usr/bin/rgvim |
2365 |
- dosym gvim /usr/bin/rgview |
2366 |
- |
2367 |
- emake -C src DESTDIR="${D}" DATADIR="${EPREFIX}"/usr/share install-icons |
2368 |
- |
2369 |
- dodir /usr/share/man/man1 |
2370 |
- echo ".so vim.1" > "${ED}"/usr/share/man/man1/gvim.1 || die "echo failed" |
2371 |
- echo ".so vim.1" > "${ED}"/usr/share/man/man1/gview.1 || die "echo failed" |
2372 |
- echo ".so vimdiff.1" > "${ED}"/usr/share/man/man1/gvimdiff.1 || \ |
2373 |
- die "echo failed" |
2374 |
- |
2375 |
- insinto /etc/vim |
2376 |
- newins "${FILESDIR}"/gvimrc-r1 gvimrc |
2377 |
- eprefixify "${ED}"/etc/vim/gvimrc |
2378 |
- |
2379 |
- # bash completion script, bug #79018. |
2380 |
- newbashcomp "${FILESDIR}"/${PN}-completion ${PN} |
2381 |
- |
2382 |
- # don't install vim desktop file |
2383 |
- rm -v "${ED}"/usr/share/applications/vim.desktop || die "failed to remove vim.desktop" |
2384 |
-} |
2385 |
- |
2386 |
-pkg_postinst() { |
2387 |
- # Update documentation tags (from vim-doc.eclass) |
2388 |
- update_vim_helptags |
2389 |
- |
2390 |
- # Update fdo mime stuff, bug #78394 |
2391 |
- xdg_desktop_database_update |
2392 |
- |
2393 |
- # Update icon cache |
2394 |
- gnome2_icon_cache_update |
2395 |
- |
2396 |
- # Call eselect vi update |
2397 |
- eselect_vi_update |
2398 |
-} |
2399 |
- |
2400 |
-pkg_postrm() { |
2401 |
- # Update documentation tags (from vim-doc.eclass) |
2402 |
- update_vim_helptags |
2403 |
- |
2404 |
- # Update fdo mime stuff, bug #78394 |
2405 |
- xdg_desktop_database_update |
2406 |
- |
2407 |
- # Update icon cache |
2408 |
- gnome2_icon_cache_update |
2409 |
- |
2410 |
- # Call eselect vi update |
2411 |
- eselect_vi_update |
2412 |
-} |
2413 |
|
2414 |
diff --git a/app-editors/gvim/gvim-8.1.1155.ebuild b/app-editors/gvim/gvim-8.1.1155.ebuild |
2415 |
deleted file mode 100644 |
2416 |
index 35aedc92a30..00000000000 |
2417 |
--- a/app-editors/gvim/gvim-8.1.1155.ebuild |
2418 |
+++ /dev/null |
2419 |
@@ -1,370 +0,0 @@ |
2420 |
-# Copyright 1999-2019 Gentoo Authors |
2421 |
-# Distributed under the terms of the GNU General Public License v2 |
2422 |
- |
2423 |
-EAPI=6 |
2424 |
-VIM_VERSION="8.1" |
2425 |
-PYTHON_COMPAT=( python{2_7,3_5,3_6,3_7} ) |
2426 |
-PYTHON_REQ_USE="threads(+)" |
2427 |
-USE_RUBY="ruby24 ruby25 ruby26" |
2428 |
- |
2429 |
-inherit vim-doc flag-o-matic xdg-utils gnome2-utils bash-completion-r1 prefix python-single-r1 ruby-single |
2430 |
- |
2431 |
-if [[ ${PV} == 9999* ]]; then |
2432 |
- inherit git-r3 |
2433 |
- EGIT_REPO_URI="https://github.com/vim/vim.git" |
2434 |
- EGIT_CHECKOUT_DIR=${WORKDIR}/vim-${PV} |
2435 |
-else |
2436 |
- SRC_URI="https://github.com/vim/vim/archive/v${PV}.tar.gz -> vim-${PV}.tar.gz |
2437 |
- https://dev.gentoo.org/~radhermit/vim/vim-8.0.0938-gentoo-patches.tar.bz2" |
2438 |
- KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris" |
2439 |
-fi |
2440 |
- |
2441 |
-DESCRIPTION="GUI version of the Vim text editor" |
2442 |
-HOMEPAGE="https://vim.sourceforge.io/ https://github.com/vim/vim" |
2443 |
- |
2444 |
-SLOT="0" |
2445 |
-LICENSE="vim" |
2446 |
-IUSE="acl aqua cscope debug gtk gtk2 lua luajit motif neXt netbeans nls perl python racket ruby selinux session tcl" |
2447 |
-REQUIRED_USE=" |
2448 |
- luajit? ( lua ) |
2449 |
- python? ( ${PYTHON_REQUIRED_USE} ) |
2450 |
-" |
2451 |
- |
2452 |
-RDEPEND=" |
2453 |
- >=app-eselect/eselect-vi-1.1 |
2454 |
- >=sys-libs/ncurses-5.2-r2:0= |
2455 |
- x11-libs/libICE |
2456 |
- x11-libs/libSM |
2457 |
- x11-libs/libXext |
2458 |
- x11-libs/libXt |
2459 |
- acl? ( kernel_linux? ( sys-apps/acl ) ) |
2460 |
- !aqua? ( |
2461 |
- gtk? ( |
2462 |
- x11-libs/gtk+:3 |
2463 |
- x11-libs/libXft |
2464 |
- ) |
2465 |
- !gtk? ( |
2466 |
- gtk2? ( |
2467 |
- >=x11-libs/gtk+-2.6:2 |
2468 |
- x11-libs/libXft |
2469 |
- ) |
2470 |
- !gtk2? ( |
2471 |
- motif? ( >=x11-libs/motif-2.3:0 ) |
2472 |
- !motif? ( |
2473 |
- neXt? ( x11-libs/neXtaw ) |
2474 |
- !neXt? ( x11-libs/libXaw ) |
2475 |
- ) |
2476 |
- ) |
2477 |
- ) |
2478 |
- ) |
2479 |
- cscope? ( dev-util/cscope ) |
2480 |
- lua? ( |
2481 |
- luajit? ( dev-lang/luajit:2= ) |
2482 |
- !luajit? ( dev-lang/lua:0[deprecated] ) |
2483 |
- ) |
2484 |
- nls? ( virtual/libintl ) |
2485 |
- perl? ( dev-lang/perl:= ) |
2486 |
- python? ( ${PYTHON_DEPS} ) |
2487 |
- racket? ( dev-scheme/racket ) |
2488 |
- ruby? ( ${RUBY_DEPS} ) |
2489 |
- selinux? ( sys-libs/libselinux ) |
2490 |
- session? ( x11-libs/libSM ) |
2491 |
- tcl? ( dev-lang/tcl:0= ) |
2492 |
-" |
2493 |
-DEPEND="${RDEPEND} |
2494 |
- sys-devel/autoconf |
2495 |
- virtual/pkgconfig |
2496 |
- nls? ( sys-devel/gettext ) |
2497 |
-" |
2498 |
-# temporarily use PDEPEND to allow upgrades past icon file collision, bug #673880 |
2499 |
-PDEPEND="~app-editors/vim-core-${PV}" |
2500 |
- |
2501 |
-# various failures (bugs #630042 and #682320) |
2502 |
-RESTRICT="test" |
2503 |
- |
2504 |
-S=${WORKDIR}/vim-${PV} |
2505 |
- |
2506 |
-pkg_setup() { |
2507 |
- # people with broken alphabets run into trouble. bug 82186. |
2508 |
- unset LANG LC_ALL |
2509 |
- export LC_COLLATE="C" |
2510 |
- |
2511 |
- # Gnome sandbox silliness. bug #114475. |
2512 |
- mkdir -p "${T}"/home || die |
2513 |
- export HOME="${T}"/home |
2514 |
- |
2515 |
- use python && python-single-r1_pkg_setup |
2516 |
-} |
2517 |
- |
2518 |
-src_prepare() { |
2519 |
- if [[ ${PV} != 9999* ]]; then |
2520 |
- # Gentoo patches to fix runtime issues, cross-compile errors, etc |
2521 |
- eapply "${WORKDIR}"/patches/ |
2522 |
- fi |
2523 |
- |
2524 |
- # Fixup a script to use awk instead of nawk |
2525 |
- sed -i -e \ |
2526 |
- '1s|.*|#!'"${EPREFIX}"'/usr/bin/awk -f|' \ |
2527 |
- "${S}"/runtime/tools/mve.awk || die "mve.awk sed failed" |
2528 |
- |
2529 |
- # Read vimrc and gvimrc from /etc/vim |
2530 |
- echo '#define SYS_VIMRC_FILE "'${EPREFIX}'/etc/vim/vimrc"' \ |
2531 |
- >> "${S}"/src/feature.h || die "echo failed" |
2532 |
- echo '#define SYS_GVIMRC_FILE "'${EPREFIX}'/etc/vim/gvimrc"' \ |
2533 |
- >> "${S}"/src/feature.h || die "echo failed" |
2534 |
- |
2535 |
- # Use exuberant ctags which installs as /usr/bin/exuberant-ctags. |
2536 |
- # Hopefully this pattern won't break for a while at least. |
2537 |
- # This fixes bug 29398 (27 Sep 2003 agriffis) |
2538 |
- sed -i -e \ |
2539 |
- 's/\<ctags\("\| [-*.]\)/exuberant-&/g' \ |
2540 |
- "${S}"/runtime/doc/syntax.txt \ |
2541 |
- "${S}"/runtime/doc/tagsrch.txt \ |
2542 |
- "${S}"/runtime/doc/usr_29.txt \ |
2543 |
- "${S}"/runtime/menu.vim \ |
2544 |
- "${S}"/src/configure.ac || die 'sed failed' |
2545 |
- |
2546 |
- # Don't be fooled by /usr/include/libc.h. When found, vim thinks |
2547 |
- # this is NeXT, but it's actually just a file in dev-libs/9libs |
2548 |
- # This fixes bug 43885 (20 Mar 2004 agriffis) |
2549 |
- sed -i -e \ |
2550 |
- 's/ libc\.h / /' "${S}"/src/configure.ac || die 'sed failed' |
2551 |
- |
2552 |
- # gcc on sparc32 has this, uhm, interesting problem with detecting EOF |
2553 |
- # correctly. To avoid some really entertaining error messages about stuff |
2554 |
- # which isn't even in the source file being invalid, we'll do some trickery |
2555 |
- # to make the error never occur. bug 66162 (02 October 2004 ciaranm) |
2556 |
- find "${S}" -name '*.c' | while read c; do |
2557 |
- echo >> "$c" || die "echo failed" |
2558 |
- done |
2559 |
- |
2560 |
- # Try to avoid sandbox problems. Bug #114475. |
2561 |
- if [[ -d "${S}"/src/po ]]; then |
2562 |
- sed -i -e \ |
2563 |
- '/-S check.vim/s,..VIM.,ln -s $(VIM) testvim \; ./testvim -X,' \ |
2564 |
- "${S}"/src/po/Makefile || die |
2565 |
- fi |
2566 |
- |
2567 |
- cp -v "${S}"/src/config.mk.dist "${S}"/src/auto/config.mk || die "cp failed" |
2568 |
- |
2569 |
- # Bug #378107 - Build properly with >=perl-core/ExtUtils-ParseXS-3.20.0 |
2570 |
- sed -i -e \ |
2571 |
- "s:\\\$(PERLLIB)/ExtUtils/xsubpp:${EPREFIX}/usr/bin/xsubpp:" \ |
2572 |
- "${S}"/src/Makefile || die 'sed for ExtUtils-ParseXS failed' |
2573 |
- |
2574 |
- eapply_user |
2575 |
-} |
2576 |
- |
2577 |
-src_configure() { |
2578 |
- local myconf=() |
2579 |
- |
2580 |
- # Fix bug 37354: Disallow -funroll-all-loops on amd64 |
2581 |
- # Bug 57859 suggests that we want to do this for all archs |
2582 |
- filter-flags -funroll-all-loops |
2583 |
- |
2584 |
- # Fix bug 76331: -O3 causes problems, use -O2 instead. We'll do this for |
2585 |
- # everyone since previous flag filtering bugs have turned out to affect |
2586 |
- # multiple archs... |
2587 |
- replace-flags -O3 -O2 |
2588 |
- |
2589 |
- # Fix bug 18245: Prevent "make" from the following chain: |
2590 |
- # (1) Notice configure.ac is newer than auto/configure |
2591 |
- # (2) Rebuild auto/configure |
2592 |
- # (3) Notice auto/configure is newer than auto/config.mk |
2593 |
- # (4) Run ./configure (with wrong args) to remake auto/config.mk |
2594 |
- sed -i -e \ |
2595 |
- 's# auto/config\.mk:#:#' src/Makefile || die "Makefile sed failed" |
2596 |
- rm -v src/auto/configure || die "rm failed" |
2597 |
- emake -j1 -C src autoconf |
2598 |
- |
2599 |
- # This should fix a sandbox violation (see bug 24447). The hvc |
2600 |
- # things are for ppc64, see bug 86433. |
2601 |
- local file |
2602 |
- for file in /dev/pty/s* /dev/console /dev/hvc/* /dev/hvc*; do |
2603 |
- if [[ -e ${file} ]]; then |
2604 |
- addwrite $file |
2605 |
- fi |
2606 |
- done |
2607 |
- |
2608 |
- use debug && append-flags "-DDEBUG" |
2609 |
- |
2610 |
- myconf=( |
2611 |
- --with-features=huge |
2612 |
- --disable-gpm |
2613 |
- --enable-multibyte |
2614 |
- --with-gnome=no |
2615 |
- $(use_enable acl) |
2616 |
- $(use_enable cscope) |
2617 |
- $(use_enable lua luainterp) |
2618 |
- $(use_with luajit) |
2619 |
- $(use_enable netbeans) |
2620 |
- $(use_enable nls) |
2621 |
- $(use_enable perl perlinterp) |
2622 |
- $(use_enable python pythoninterp) |
2623 |
- $(use_enable python python3interp) |
2624 |
- $(use_with python python-command $(type -P $(eselect python show --python2))) |
2625 |
- $(use_with python python3-command $(type -P $(eselect python show --python3))) |
2626 |
- $(use_enable racket mzschemeinterp) |
2627 |
- $(use_enable ruby rubyinterp) |
2628 |
- $(use_enable selinux) |
2629 |
- $(use_enable session xsmp) |
2630 |
- $(use_enable tcl tclinterp) |
2631 |
- ) |
2632 |
- |
2633 |
- # --with-features=huge forces on cscope even if we --disable it. We need |
2634 |
- # to sed this out to avoid screwiness. (1 Sep 2004 ciaranm) |
2635 |
- if ! use cscope; then |
2636 |
- sed -i -e \ |
2637 |
- '/# define FEAT_CSCOPE/d' src/feature.h || die "couldn't disable cscope" |
2638 |
- fi |
2639 |
- |
2640 |
- # gvim's GUI preference order is as follows: |
2641 |
- # aqua CARBON (not tested) |
2642 |
- # -aqua gtk GTK3 |
2643 |
- # -aqua -gtk gtk2 GTK2 |
2644 |
- # -aqua -gtk -gtk motif MOTIF |
2645 |
- # -aqua -gtk -gtk -motif neXt NEXTAW |
2646 |
- # -aqua -gtk -gtk -motif -neXt ATHENA |
2647 |
- echo ; echo |
2648 |
- if use aqua; then |
2649 |
- einfo "Building gvim with the Carbon GUI" |
2650 |
- myconf+=( |
2651 |
- --enable-darwin |
2652 |
- --enable-gui=carbon |
2653 |
- ) |
2654 |
- elif use gtk; then |
2655 |
- myconf+=( --enable-gtk3-check ) |
2656 |
- einfo "Building gvim with the gtk+-3 GUI" |
2657 |
- myconf+=( --enable-gui=gtk3 ) |
2658 |
- elif use gtk2; then |
2659 |
- myconf+=( --enable-gtk2-check ) |
2660 |
- einfo "Building gvim with the gtk+-2 GUI" |
2661 |
- myconf+=( --enable-gui=gtk2 ) |
2662 |
- elif use motif; then |
2663 |
- einfo "Building gvim with the MOTIF GUI" |
2664 |
- myconf+=( --enable-gui=motif ) |
2665 |
- elif use neXt; then |
2666 |
- einfo "Building gvim with the neXtaw GUI" |
2667 |
- myconf+=( --enable-gui=nextaw ) |
2668 |
- else |
2669 |
- einfo "Building gvim with the Athena GUI" |
2670 |
- myconf+=( --enable-gui=athena ) |
2671 |
- fi |
2672 |
- echo ; echo |
2673 |
- |
2674 |
- # let package manager strip binaries |
2675 |
- export ac_cv_prog_STRIP="$(type -P true ) faking strip" |
2676 |
- |
2677 |
- # keep prefix env contained within the EPREFIX |
2678 |
- use prefix && myconf+=( --without-local-dir ) |
2679 |
- |
2680 |
- if [[ ${CHOST} == *-interix* ]]; then |
2681 |
- # avoid finding of this function, to avoid having to patch either |
2682 |
- # configure or the source, which would be much more hackish. |
2683 |
- # after all vim does it right, only interix is badly broken (again) |
2684 |
- export ac_cv_func_sigaction=no |
2685 |
- fi |
2686 |
- |
2687 |
- econf \ |
2688 |
- --with-modified-by=Gentoo-${PVR} \ |
2689 |
- --with-vim-name=gvim \ |
2690 |
- --with-x \ |
2691 |
- "${myconf[@]}" |
2692 |
-} |
2693 |
- |
2694 |
-src_compile() { |
2695 |
- # The following allows emake to be used |
2696 |
- emake -j1 -C src auto/osdef.h objects |
2697 |
- |
2698 |
- emake |
2699 |
-} |
2700 |
- |
2701 |
-src_test() { |
2702 |
- einfo |
2703 |
- einfo "Starting vim tests. Several error messages will be shown" |
2704 |
- einfo "while the tests run. This is normal behaviour and does not" |
2705 |
- einfo "indicate a fault." |
2706 |
- einfo |
2707 |
- ewarn "If the tests fail, your terminal may be left in a strange" |
2708 |
- ewarn "state. Usually, running 'reset' will fix this." |
2709 |
- einfo |
2710 |
- |
2711 |
- # Don't let vim talk to X |
2712 |
- unset DISPLAY |
2713 |
- |
2714 |
- # Make gvim not try to connect to X. See :help gui-x11-start in vim for how |
2715 |
- # this evil trickery works. |
2716 |
- ln -s "${S}"/src/gvim "${S}"/src/testvim || die |
2717 |
- |
2718 |
- # Make sure our VIMPROG is used. |
2719 |
- sed -i -e 's:\.\./vim:../testvim:' src/testdir/test49.vim || die |
2720 |
- |
2721 |
- # Don't do additional GUI tests. |
2722 |
- emake -j1 VIMPROG=../testvim -C src/testdir nongui |
2723 |
-} |
2724 |
- |
2725 |
-# Call eselect vi update with --if-unset |
2726 |
-# to respect user's choice (bug 187449) |
2727 |
-eselect_vi_update() { |
2728 |
- einfo "Calling eselect vi update..." |
2729 |
- eselect vi update --if-unset |
2730 |
- eend $? |
2731 |
-} |
2732 |
- |
2733 |
-src_install() { |
2734 |
- local vimfiles=/usr/share/vim/vim${VIM_VERSION/.} |
2735 |
- |
2736 |
- dobin src/gvim |
2737 |
- dosym gvim /usr/bin/gvimdiff |
2738 |
- dosym gvim /usr/bin/evim |
2739 |
- dosym gvim /usr/bin/eview |
2740 |
- dosym gvim /usr/bin/gview |
2741 |
- dosym gvim /usr/bin/rgvim |
2742 |
- dosym gvim /usr/bin/rgview |
2743 |
- |
2744 |
- emake -C src DESTDIR="${D}" DATADIR="${EPREFIX}"/usr/share install-icons |
2745 |
- |
2746 |
- dodir /usr/share/man/man1 |
2747 |
- echo ".so vim.1" > "${ED}"/usr/share/man/man1/gvim.1 || die "echo failed" |
2748 |
- echo ".so vim.1" > "${ED}"/usr/share/man/man1/gview.1 || die "echo failed" |
2749 |
- echo ".so vimdiff.1" > "${ED}"/usr/share/man/man1/gvimdiff.1 || \ |
2750 |
- die "echo failed" |
2751 |
- |
2752 |
- insinto /etc/vim |
2753 |
- newins "${FILESDIR}"/gvimrc-r1 gvimrc |
2754 |
- eprefixify "${ED}"/etc/vim/gvimrc |
2755 |
- |
2756 |
- # bash completion script, bug #79018. |
2757 |
- newbashcomp "${FILESDIR}"/${PN}-completion ${PN} |
2758 |
- |
2759 |
- # don't install vim desktop file |
2760 |
- rm -v "${ED}"/usr/share/applications/vim.desktop || die "failed to remove vim.desktop" |
2761 |
-} |
2762 |
- |
2763 |
-pkg_postinst() { |
2764 |
- # Update documentation tags (from vim-doc.eclass) |
2765 |
- update_vim_helptags |
2766 |
- |
2767 |
- # Update fdo mime stuff, bug #78394 |
2768 |
- xdg_desktop_database_update |
2769 |
- |
2770 |
- # Update icon cache |
2771 |
- gnome2_icon_cache_update |
2772 |
- |
2773 |
- # Call eselect vi update |
2774 |
- eselect_vi_update |
2775 |
-} |
2776 |
- |
2777 |
-pkg_postrm() { |
2778 |
- # Update documentation tags (from vim-doc.eclass) |
2779 |
- update_vim_helptags |
2780 |
- |
2781 |
- # Update fdo mime stuff, bug #78394 |
2782 |
- xdg_desktop_database_update |
2783 |
- |
2784 |
- # Update icon cache |
2785 |
- gnome2_icon_cache_update |
2786 |
- |
2787 |
- # Call eselect vi update |
2788 |
- eselect_vi_update |
2789 |
-} |
2790 |
|
2791 |
diff --git a/app-editors/gvim/gvim-8.1.1312.ebuild b/app-editors/gvim/gvim-8.1.1312.ebuild |
2792 |
deleted file mode 100644 |
2793 |
index 58687ec4e79..00000000000 |
2794 |
--- a/app-editors/gvim/gvim-8.1.1312.ebuild |
2795 |
+++ /dev/null |
2796 |
@@ -1,368 +0,0 @@ |
2797 |
-# Copyright 1999-2019 Gentoo Authors |
2798 |
-# Distributed under the terms of the GNU General Public License v2 |
2799 |
- |
2800 |
-EAPI=6 |
2801 |
-VIM_VERSION="8.1" |
2802 |
-PYTHON_COMPAT=( python{2_7,3_5,3_6,3_7} ) |
2803 |
-PYTHON_REQ_USE="threads(+)" |
2804 |
-USE_RUBY="ruby24 ruby25 ruby26" |
2805 |
- |
2806 |
-inherit vim-doc flag-o-matic xdg-utils gnome2-utils bash-completion-r1 prefix python-single-r1 ruby-single |
2807 |
- |
2808 |
-if [[ ${PV} == 9999* ]]; then |
2809 |
- inherit git-r3 |
2810 |
- EGIT_REPO_URI="https://github.com/vim/vim.git" |
2811 |
- EGIT_CHECKOUT_DIR=${WORKDIR}/vim-${PV} |
2812 |
-else |
2813 |
- SRC_URI="https://github.com/vim/vim/archive/v${PV}.tar.gz -> vim-${PV}.tar.gz |
2814 |
- https://dev.gentoo.org/~radhermit/vim/vim-8.0.0938-gentoo-patches.tar.bz2" |
2815 |
- KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris" |
2816 |
-fi |
2817 |
- |
2818 |
-DESCRIPTION="GUI version of the Vim text editor" |
2819 |
-HOMEPAGE="https://vim.sourceforge.io/ https://github.com/vim/vim" |
2820 |
- |
2821 |
-SLOT="0" |
2822 |
-LICENSE="vim" |
2823 |
-IUSE="acl aqua cscope debug gtk gtk2 lua luajit motif neXt netbeans nls perl python racket ruby selinux session tcl" |
2824 |
-REQUIRED_USE=" |
2825 |
- python? ( ${PYTHON_REQUIRED_USE} ) |
2826 |
-" |
2827 |
- |
2828 |
-RDEPEND=" |
2829 |
- >=app-eselect/eselect-vi-1.1 |
2830 |
- >=sys-libs/ncurses-5.2-r2:0= |
2831 |
- x11-libs/libICE |
2832 |
- x11-libs/libSM |
2833 |
- x11-libs/libXext |
2834 |
- x11-libs/libXt |
2835 |
- acl? ( kernel_linux? ( sys-apps/acl ) ) |
2836 |
- !aqua? ( |
2837 |
- gtk? ( |
2838 |
- x11-libs/gtk+:3 |
2839 |
- x11-libs/libXft |
2840 |
- ) |
2841 |
- !gtk? ( |
2842 |
- gtk2? ( |
2843 |
- >=x11-libs/gtk+-2.6:2 |
2844 |
- x11-libs/libXft |
2845 |
- ) |
2846 |
- !gtk2? ( |
2847 |
- motif? ( >=x11-libs/motif-2.3:0 ) |
2848 |
- !motif? ( |
2849 |
- neXt? ( x11-libs/neXtaw ) |
2850 |
- !neXt? ( x11-libs/libXaw ) |
2851 |
- ) |
2852 |
- ) |
2853 |
- ) |
2854 |
- ) |
2855 |
- cscope? ( dev-util/cscope ) |
2856 |
- lua? ( |
2857 |
- luajit? ( dev-lang/luajit:2= ) |
2858 |
- !luajit? ( dev-lang/lua:0[deprecated] ) |
2859 |
- ) |
2860 |
- nls? ( virtual/libintl ) |
2861 |
- perl? ( dev-lang/perl:= ) |
2862 |
- python? ( ${PYTHON_DEPS} ) |
2863 |
- racket? ( dev-scheme/racket ) |
2864 |
- ruby? ( ${RUBY_DEPS} ) |
2865 |
- selinux? ( sys-libs/libselinux ) |
2866 |
- session? ( x11-libs/libSM ) |
2867 |
- tcl? ( dev-lang/tcl:0= ) |
2868 |
-" |
2869 |
-DEPEND="${RDEPEND} |
2870 |
- sys-devel/autoconf |
2871 |
- virtual/pkgconfig |
2872 |
- nls? ( sys-devel/gettext ) |
2873 |
-" |
2874 |
-# temporarily use PDEPEND to allow upgrades past icon file collision, bug #673880 |
2875 |
-PDEPEND="~app-editors/vim-core-${PV}" |
2876 |
- |
2877 |
-# various failures (bugs #630042 and #682320) |
2878 |
-RESTRICT="test" |
2879 |
- |
2880 |
-S=${WORKDIR}/vim-${PV} |
2881 |
- |
2882 |
-pkg_setup() { |
2883 |
- # people with broken alphabets run into trouble. bug 82186. |
2884 |
- unset LANG LC_ALL |
2885 |
- export LC_COLLATE="C" |
2886 |
- |
2887 |
- # Gnome sandbox silliness. bug #114475. |
2888 |
- mkdir -p "${T}"/home || die |
2889 |
- export HOME="${T}"/home |
2890 |
- |
2891 |
- use python && python-single-r1_pkg_setup |
2892 |
-} |
2893 |
- |
2894 |
-src_prepare() { |
2895 |
- if [[ ${PV} != 9999* ]]; then |
2896 |
- # Gentoo patches to fix runtime issues, cross-compile errors, etc |
2897 |
- eapply "${WORKDIR}"/patches/ |
2898 |
- fi |
2899 |
- |
2900 |
- # Fixup a script to use awk instead of nawk |
2901 |
- sed -i -e \ |
2902 |
- '1s|.*|#!'"${EPREFIX}"'/usr/bin/awk -f|' \ |
2903 |
- "${S}"/runtime/tools/mve.awk || die "mve.awk sed failed" |
2904 |
- |
2905 |
- # Read vimrc and gvimrc from /etc/vim |
2906 |
- echo '#define SYS_VIMRC_FILE "'${EPREFIX}'/etc/vim/vimrc"' \ |
2907 |
- >> "${S}"/src/feature.h || die "echo failed" |
2908 |
- echo '#define SYS_GVIMRC_FILE "'${EPREFIX}'/etc/vim/gvimrc"' \ |
2909 |
- >> "${S}"/src/feature.h || die "echo failed" |
2910 |
- |
2911 |
- # Use exuberant ctags which installs as /usr/bin/exuberant-ctags. |
2912 |
- # Hopefully this pattern won't break for a while at least. |
2913 |
- # This fixes bug 29398 (27 Sep 2003 agriffis) |
2914 |
- sed -i -e \ |
2915 |
- 's/\<ctags\("\| [-*.]\)/exuberant-&/g' \ |
2916 |
- "${S}"/runtime/doc/syntax.txt \ |
2917 |
- "${S}"/runtime/doc/tagsrch.txt \ |
2918 |
- "${S}"/runtime/doc/usr_29.txt \ |
2919 |
- "${S}"/runtime/menu.vim \ |
2920 |
- "${S}"/src/configure.ac || die 'sed failed' |
2921 |
- |
2922 |
- # Don't be fooled by /usr/include/libc.h. When found, vim thinks |
2923 |
- # this is NeXT, but it's actually just a file in dev-libs/9libs |
2924 |
- # This fixes bug 43885 (20 Mar 2004 agriffis) |
2925 |
- sed -i -e \ |
2926 |
- 's/ libc\.h / /' "${S}"/src/configure.ac || die 'sed failed' |
2927 |
- |
2928 |
- # gcc on sparc32 has this, uhm, interesting problem with detecting EOF |
2929 |
- # correctly. To avoid some really entertaining error messages about stuff |
2930 |
- # which isn't even in the source file being invalid, we'll do some trickery |
2931 |
- # to make the error never occur. bug 66162 (02 October 2004 ciaranm) |
2932 |
- find "${S}" -name '*.c' | while read c; do |
2933 |
- echo >> "$c" || die "echo failed" |
2934 |
- done |
2935 |
- |
2936 |
- # Try to avoid sandbox problems. Bug #114475. |
2937 |
- if [[ -d "${S}"/src/po ]]; then |
2938 |
- sed -i -e \ |
2939 |
- '/-S check.vim/s,..VIM.,ln -s $(VIM) testvim \; ./testvim -X,' \ |
2940 |
- "${S}"/src/po/Makefile || die |
2941 |
- fi |
2942 |
- |
2943 |
- cp -v "${S}"/src/config.mk.dist "${S}"/src/auto/config.mk || die "cp failed" |
2944 |
- |
2945 |
- # Bug #378107 - Build properly with >=perl-core/ExtUtils-ParseXS-3.20.0 |
2946 |
- sed -i -e \ |
2947 |
- "s:\\\$(PERLLIB)/ExtUtils/xsubpp:${EPREFIX}/usr/bin/xsubpp:" \ |
2948 |
- "${S}"/src/Makefile || die 'sed for ExtUtils-ParseXS failed' |
2949 |
- |
2950 |
- eapply_user |
2951 |
-} |
2952 |
- |
2953 |
-src_configure() { |
2954 |
- local myconf=() |
2955 |
- |
2956 |
- # Fix bug 37354: Disallow -funroll-all-loops on amd64 |
2957 |
- # Bug 57859 suggests that we want to do this for all archs |
2958 |
- filter-flags -funroll-all-loops |
2959 |
- |
2960 |
- # Fix bug 76331: -O3 causes problems, use -O2 instead. We'll do this for |
2961 |
- # everyone since previous flag filtering bugs have turned out to affect |
2962 |
- # multiple archs... |
2963 |
- replace-flags -O3 -O2 |
2964 |
- |
2965 |
- # Fix bug 18245: Prevent "make" from the following chain: |
2966 |
- # (1) Notice configure.ac is newer than auto/configure |
2967 |
- # (2) Rebuild auto/configure |
2968 |
- # (3) Notice auto/configure is newer than auto/config.mk |
2969 |
- # (4) Run ./configure (with wrong args) to remake auto/config.mk |
2970 |
- sed -i -e \ |
2971 |
- 's# auto/config\.mk:#:#' src/Makefile || die "Makefile sed failed" |
2972 |
- rm -v src/auto/configure || die "rm failed" |
2973 |
- emake -j1 -C src autoconf |
2974 |
- |
2975 |
- # This should fix a sandbox violation (see bug 24447). The hvc |
2976 |
- # things are for ppc64, see bug 86433. |
2977 |
- local file |
2978 |
- for file in /dev/pty/s* /dev/console /dev/hvc/* /dev/hvc*; do |
2979 |
- if [[ -e ${file} ]]; then |
2980 |
- addwrite $file |
2981 |
- fi |
2982 |
- done |
2983 |
- |
2984 |
- use debug && append-flags "-DDEBUG" |
2985 |
- |
2986 |
- myconf=( |
2987 |
- --with-features=huge |
2988 |
- --disable-gpm |
2989 |
- --with-gnome=no |
2990 |
- $(use_enable acl) |
2991 |
- $(use_enable cscope) |
2992 |
- $(use_enable lua luainterp) |
2993 |
- $(use_with luajit) |
2994 |
- $(use_enable netbeans) |
2995 |
- $(use_enable nls) |
2996 |
- $(use_enable perl perlinterp) |
2997 |
- $(use_enable python pythoninterp) |
2998 |
- $(use_enable python python3interp) |
2999 |
- $(use_with python python-command $(type -P $(eselect python show --python2))) |
3000 |
- $(use_with python python3-command $(type -P $(eselect python show --python3))) |
3001 |
- $(use_enable racket mzschemeinterp) |
3002 |
- $(use_enable ruby rubyinterp) |
3003 |
- $(use_enable selinux) |
3004 |
- $(use_enable session xsmp) |
3005 |
- $(use_enable tcl tclinterp) |
3006 |
- ) |
3007 |
- |
3008 |
- # --with-features=huge forces on cscope even if we --disable it. We need |
3009 |
- # to sed this out to avoid screwiness. (1 Sep 2004 ciaranm) |
3010 |
- if ! use cscope; then |
3011 |
- sed -i -e \ |
3012 |
- '/# define FEAT_CSCOPE/d' src/feature.h || die "couldn't disable cscope" |
3013 |
- fi |
3014 |
- |
3015 |
- # gvim's GUI preference order is as follows: |
3016 |
- # aqua CARBON (not tested) |
3017 |
- # -aqua gtk GTK3 |
3018 |
- # -aqua -gtk gtk2 GTK2 |
3019 |
- # -aqua -gtk -gtk motif MOTIF |
3020 |
- # -aqua -gtk -gtk -motif neXt NEXTAW |
3021 |
- # -aqua -gtk -gtk -motif -neXt ATHENA |
3022 |
- echo ; echo |
3023 |
- if use aqua; then |
3024 |
- einfo "Building gvim with the Carbon GUI" |
3025 |
- myconf+=( |
3026 |
- --enable-darwin |
3027 |
- --enable-gui=carbon |
3028 |
- ) |
3029 |
- elif use gtk; then |
3030 |
- myconf+=( --enable-gtk3-check ) |
3031 |
- einfo "Building gvim with the gtk+-3 GUI" |
3032 |
- myconf+=( --enable-gui=gtk3 ) |
3033 |
- elif use gtk2; then |
3034 |
- myconf+=( --enable-gtk2-check ) |
3035 |
- einfo "Building gvim with the gtk+-2 GUI" |
3036 |
- myconf+=( --enable-gui=gtk2 ) |
3037 |
- elif use motif; then |
3038 |
- einfo "Building gvim with the MOTIF GUI" |
3039 |
- myconf+=( --enable-gui=motif ) |
3040 |
- elif use neXt; then |
3041 |
- einfo "Building gvim with the neXtaw GUI" |
3042 |
- myconf+=( --enable-gui=nextaw ) |
3043 |
- else |
3044 |
- einfo "Building gvim with the Athena GUI" |
3045 |
- myconf+=( --enable-gui=athena ) |
3046 |
- fi |
3047 |
- echo ; echo |
3048 |
- |
3049 |
- # let package manager strip binaries |
3050 |
- export ac_cv_prog_STRIP="$(type -P true ) faking strip" |
3051 |
- |
3052 |
- # keep prefix env contained within the EPREFIX |
3053 |
- use prefix && myconf+=( --without-local-dir ) |
3054 |
- |
3055 |
- if [[ ${CHOST} == *-interix* ]]; then |
3056 |
- # avoid finding of this function, to avoid having to patch either |
3057 |
- # configure or the source, which would be much more hackish. |
3058 |
- # after all vim does it right, only interix is badly broken (again) |
3059 |
- export ac_cv_func_sigaction=no |
3060 |
- fi |
3061 |
- |
3062 |
- econf \ |
3063 |
- --with-modified-by=Gentoo-${PVR} \ |
3064 |
- --with-vim-name=gvim \ |
3065 |
- --with-x \ |
3066 |
- "${myconf[@]}" |
3067 |
-} |
3068 |
- |
3069 |
-src_compile() { |
3070 |
- # The following allows emake to be used |
3071 |
- emake -j1 -C src auto/osdef.h objects |
3072 |
- |
3073 |
- emake |
3074 |
-} |
3075 |
- |
3076 |
-src_test() { |
3077 |
- einfo |
3078 |
- einfo "Starting vim tests. Several error messages will be shown" |
3079 |
- einfo "while the tests run. This is normal behaviour and does not" |
3080 |
- einfo "indicate a fault." |
3081 |
- einfo |
3082 |
- ewarn "If the tests fail, your terminal may be left in a strange" |
3083 |
- ewarn "state. Usually, running 'reset' will fix this." |
3084 |
- einfo |
3085 |
- |
3086 |
- # Don't let vim talk to X |
3087 |
- unset DISPLAY |
3088 |
- |
3089 |
- # Make gvim not try to connect to X. See :help gui-x11-start in vim for how |
3090 |
- # this evil trickery works. |
3091 |
- ln -s "${S}"/src/gvim "${S}"/src/testvim || die |
3092 |
- |
3093 |
- # Make sure our VIMPROG is used. |
3094 |
- sed -i -e 's:\.\./vim:../testvim:' src/testdir/test49.vim || die |
3095 |
- |
3096 |
- # Don't do additional GUI tests. |
3097 |
- emake -j1 VIMPROG=../testvim -C src/testdir nongui |
3098 |
-} |
3099 |
- |
3100 |
-# Call eselect vi update with --if-unset |
3101 |
-# to respect user's choice (bug 187449) |
3102 |
-eselect_vi_update() { |
3103 |
- einfo "Calling eselect vi update..." |
3104 |
- eselect vi update --if-unset |
3105 |
- eend $? |
3106 |
-} |
3107 |
- |
3108 |
-src_install() { |
3109 |
- local vimfiles=/usr/share/vim/vim${VIM_VERSION/.} |
3110 |
- |
3111 |
- dobin src/gvim |
3112 |
- dosym gvim /usr/bin/gvimdiff |
3113 |
- dosym gvim /usr/bin/evim |
3114 |
- dosym gvim /usr/bin/eview |
3115 |
- dosym gvim /usr/bin/gview |
3116 |
- dosym gvim /usr/bin/rgvim |
3117 |
- dosym gvim /usr/bin/rgview |
3118 |
- |
3119 |
- emake -C src DESTDIR="${D}" DATADIR="${EPREFIX}"/usr/share install-icons |
3120 |
- |
3121 |
- dodir /usr/share/man/man1 |
3122 |
- echo ".so vim.1" > "${ED}"/usr/share/man/man1/gvim.1 || die "echo failed" |
3123 |
- echo ".so vim.1" > "${ED}"/usr/share/man/man1/gview.1 || die "echo failed" |
3124 |
- echo ".so vimdiff.1" > "${ED}"/usr/share/man/man1/gvimdiff.1 || \ |
3125 |
- die "echo failed" |
3126 |
- |
3127 |
- insinto /etc/vim |
3128 |
- newins "${FILESDIR}"/gvimrc-r1 gvimrc |
3129 |
- eprefixify "${ED}"/etc/vim/gvimrc |
3130 |
- |
3131 |
- # bash completion script, bug #79018. |
3132 |
- newbashcomp "${FILESDIR}"/${PN}-completion ${PN} |
3133 |
- |
3134 |
- # don't install vim desktop file |
3135 |
- rm -v "${ED}"/usr/share/applications/vim.desktop || die "failed to remove vim.desktop" |
3136 |
-} |
3137 |
- |
3138 |
-pkg_postinst() { |
3139 |
- # Update documentation tags (from vim-doc.eclass) |
3140 |
- update_vim_helptags |
3141 |
- |
3142 |
- # Update fdo mime stuff, bug #78394 |
3143 |
- xdg_desktop_database_update |
3144 |
- |
3145 |
- # Update icon cache |
3146 |
- gnome2_icon_cache_update |
3147 |
- |
3148 |
- # Call eselect vi update |
3149 |
- eselect_vi_update |
3150 |
-} |
3151 |
- |
3152 |
-pkg_postrm() { |
3153 |
- # Update documentation tags (from vim-doc.eclass) |
3154 |
- update_vim_helptags |
3155 |
- |
3156 |
- # Update fdo mime stuff, bug #78394 |
3157 |
- xdg_desktop_database_update |
3158 |
- |
3159 |
- # Update icon cache |
3160 |
- gnome2_icon_cache_update |
3161 |
- |
3162 |
- # Call eselect vi update |
3163 |
- eselect_vi_update |
3164 |
-} |
3165 |
|
3166 |
diff --git a/app-editors/gvim/metadata.xml b/app-editors/gvim/metadata.xml |
3167 |
index 435a3f0120b..be92dc54342 100644 |
3168 |
--- a/app-editors/gvim/metadata.xml |
3169 |
+++ b/app-editors/gvim/metadata.xml |
3170 |
@@ -8,7 +8,6 @@ |
3171 |
<use> |
3172 |
<flag name="cscope">Enable cscope interface</flag> |
3173 |
<flag name="gtk2">Enable GTK+2 interface</flag> |
3174 |
- <flag name="gtk3">Enable GTK+3 interface</flag> |
3175 |
<flag name="netbeans">Include netbeans external editor integration support</flag> |
3176 |
<flag name="racket">Enable support for Scheme using <pkg>dev-scheme/racket</pkg></flag> |
3177 |
</use> |