1 |
commit: 627f44c711c355268512ec8a0b93c242b23467c1 |
2 |
Author: Yixun Lan <dlan <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri May 27 06:56:01 2016 +0000 |
4 |
Commit: Yixun Lan <dlan <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri May 27 07:16:34 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=627f44c7 |
7 |
|
8 |
app-office/lyx: drop old versions |
9 |
|
10 |
Package-Manager: portage-2.2.28 |
11 |
|
12 |
app-office/lyx/Manifest | 1 - |
13 |
app-office/lyx/files/1.6.10-gcc.patch | 142 ------------------------- |
14 |
app-office/lyx/files/1.6.7-python.patch | 26 ----- |
15 |
app-office/lyx/files/2.0-python.patch | 26 ----- |
16 |
app-office/lyx/lyx-2.1.3.ebuild | 179 -------------------------------- |
17 |
5 files changed, 374 deletions(-) |
18 |
|
19 |
diff --git a/app-office/lyx/Manifest b/app-office/lyx/Manifest |
20 |
index 0179274..0f955ea 100644 |
21 |
--- a/app-office/lyx/Manifest |
22 |
+++ b/app-office/lyx/Manifest |
23 |
@@ -1,4 +1,3 @@ |
24 |
DIST lyx-2.0.8.1.tar.xz 10481988 SHA256 fa0a9c6070554e0d12d24e9b3c4a1e5fc2ee853b3fbe83e2a415635cdc973c59 SHA512 17e313d3118dfe439f5251384f2fffdb45ffef5ec515953b7af0762d35c8e156a9338de698cea91cf8b3cedca1fc08364d8f3c50c9345f304d57004af695f901 WHIRLPOOL 6a9ef2df39861d373e1c6288f5443f910632a09ed4d84e409efe06459f2f39d3c30462b3a26aafe37c5216b765882e7ab5189e7d164b71def97f50877784754c |
25 |
-DIST lyx-2.1.3.tar.xz 10778624 SHA256 2fd52e7e5ee372983eb6b0a7f04765cb0df6f8c1f3420081d9f7761acfc75682 SHA512 c2930d0ff1dfb7dc23e07be7141cd50c4fa023f32fc3653745b4f5031460c6fe5acfc955c0af5b3bf9505d7958b0d1e301eefd0a894bd02bb4c3f966f54332db WHIRLPOOL 818bba837ed7e63609c1067e94f3281a9d9ef2049ba1792a010372cb544e6ead8bab0ec1906f083e8fa27f8ae8145c1cf7a4772cf3952caccf5bbd2a2c1026be |
26 |
DIST lyx-2.1.4.tar.xz 10928716 SHA256 d13548cf183f2fc241df8121420933702491a7460c78a0ef6dba0e9e438ef32a SHA512 7547950e3c11e88f0ccf2cacb56709f9722d4cd03a5ee751af4489f6d343e13ee6b4e0ff7b830532572975c6cc9506686ade2afa5093f765d21b4d1b9ee7339d WHIRLPOOL a5d8533902fd5dd5a696645941c532bfe35eeaf76f411798a0aafcd01674e678dd65d2c0a58af09a6739adaf80f821a2676c340a349fca61929edfc5a9389938 |
27 |
DIST lyx-2.2.0.tar.xz 14640052 SHA256 d867986870e3f7451f0d4512c60d9c3c7682da59c6c638f18b731f4ad3fa7c80 SHA512 3bc6a3dcd2271d942d1d34cf5f7b7c74d1d58499d070e5b7c056ee03d5195467a4230d18a65e9a591e76655970413370fd6233495c8d3ab977270488082425df WHIRLPOOL 5cd3b13ad8852d4ed5c59a11872547f0bb602119ce2ddbc29c5f7c240b7ca091cf341c0d22ff13c63980057706abf4a35cf5d03625545f598261c98ec4292497 |
28 |
|
29 |
diff --git a/app-office/lyx/files/1.6.10-gcc.patch b/app-office/lyx/files/1.6.10-gcc.patch |
30 |
deleted file mode 100644 |
31 |
index 44e0fc9..0000000 |
32 |
--- a/app-office/lyx/files/1.6.10-gcc.patch |
33 |
+++ /dev/null |
34 |
@@ -1,142 +0,0 @@ |
35 |
-diff --git a/src/insets/InsetInclude.cpp b/src/insets/InsetInclude.cpp |
36 |
-index 68cf1d2..16a3c94 100644 |
37 |
---- a/src/insets/InsetInclude.cpp |
38 |
-+++ b/src/insets/InsetInclude.cpp |
39 |
-@@ -806,7 +806,7 @@ support::FileNameList const & |
40 |
- tmp->setParent(&buffer); |
41 |
- return cache; |
42 |
- } |
43 |
-- static support::FileNameList const empty; |
44 |
-+ static support::FileNameList const empty = support::FileNameList(); |
45 |
- return empty; |
46 |
- } |
47 |
- |
48 |
-diff --git a/src/insets/InsetTabular.cpp b/src/insets/InsetTabular.cpp |
49 |
-index 4a267e9..7a165e2 100644 |
50 |
---- a/src/insets/InsetTabular.cpp |
51 |
-+++ b/src/insets/InsetTabular.cpp |
52 |
-@@ -188,62 +188,6 @@ TabularFeature tabularFeature[] = |
53 |
- }; |
54 |
- |
55 |
- |
56 |
--template <class T> |
57 |
--string const write_attribute(string const & name, T const & t) |
58 |
--{ |
59 |
-- string const s = tostr(t); |
60 |
-- return s.empty() ? s : " " + name + "=\"" + s + "\""; |
61 |
--} |
62 |
-- |
63 |
--template <> |
64 |
--string const write_attribute(string const & name, string const & t) |
65 |
--{ |
66 |
-- return t.empty() ? t : " " + name + "=\"" + t + "\""; |
67 |
--} |
68 |
-- |
69 |
-- |
70 |
--template <> |
71 |
--string const write_attribute(string const & name, docstring const & t) |
72 |
--{ |
73 |
-- return t.empty() ? string() : " " + name + "=\"" + to_utf8(t) + "\""; |
74 |
--} |
75 |
-- |
76 |
-- |
77 |
--template <> |
78 |
--string const write_attribute(string const & name, bool const & b) |
79 |
--{ |
80 |
-- // we write only true attribute values so we remove a bit of the |
81 |
-- // file format bloat for tabulars. |
82 |
-- return b ? write_attribute(name, convert<string>(b)) : string(); |
83 |
--} |
84 |
-- |
85 |
-- |
86 |
--template <> |
87 |
--string const write_attribute(string const & name, int const & i) |
88 |
--{ |
89 |
-- // we write only true attribute values so we remove a bit of the |
90 |
-- // file format bloat for tabulars. |
91 |
-- return i ? write_attribute(name, convert<string>(i)) : string(); |
92 |
--} |
93 |
-- |
94 |
-- |
95 |
--template <> |
96 |
--string const write_attribute(string const & name, Tabular::idx_type const & i) |
97 |
--{ |
98 |
-- // we write only true attribute values so we remove a bit of the |
99 |
-- // file format bloat for tabulars. |
100 |
-- return i ? write_attribute(name, convert<string>(i)) : string(); |
101 |
--} |
102 |
-- |
103 |
-- |
104 |
--template <> |
105 |
--string const write_attribute(string const & name, Length const & value) |
106 |
--{ |
107 |
-- // we write only the value if we really have one same reson as above. |
108 |
-- return value.zero() ? string() : write_attribute(name, value.asString()); |
109 |
--} |
110 |
-- |
111 |
-- |
112 |
- string const tostr(LyXAlignment const & num) |
113 |
- { |
114 |
- switch (num) { |
115 |
-@@ -503,6 +447,61 @@ void l_getline(istream & is, string & str) |
116 |
- } |
117 |
- } |
118 |
- |
119 |
-+template <class T> |
120 |
-+string const write_attribute(string const & name, T const & t) |
121 |
-+{ |
122 |
-+ string const s = tostr(t); |
123 |
-+ return s.empty() ? s : " " + name + "=\"" + s + "\""; |
124 |
-+} |
125 |
-+ |
126 |
-+template <> |
127 |
-+string const write_attribute(string const & name, string const & t) |
128 |
-+{ |
129 |
-+ return t.empty() ? t : " " + name + "=\"" + t + "\""; |
130 |
-+} |
131 |
-+ |
132 |
-+ |
133 |
-+template <> |
134 |
-+string const write_attribute(string const & name, docstring const & t) |
135 |
-+{ |
136 |
-+ return t.empty() ? string() : " " + name + "=\"" + to_utf8(t) + "\""; |
137 |
-+} |
138 |
-+ |
139 |
-+ |
140 |
-+template <> |
141 |
-+string const write_attribute(string const & name, bool const & b) |
142 |
-+{ |
143 |
-+ // we write only true attribute values so we remove a bit of the |
144 |
-+ // file format bloat for tabulars. |
145 |
-+ return b ? write_attribute(name, convert<string>(b)) : string(); |
146 |
-+} |
147 |
-+ |
148 |
-+ |
149 |
-+template <> |
150 |
-+string const write_attribute(string const & name, int const & i) |
151 |
-+{ |
152 |
-+ // we write only true attribute values so we remove a bit of the |
153 |
-+ // file format bloat for tabulars. |
154 |
-+ return i ? write_attribute(name, convert<string>(i)) : string(); |
155 |
-+} |
156 |
-+ |
157 |
-+ |
158 |
-+template <> |
159 |
-+string const write_attribute(string const & name, Tabular::idx_type const & i) |
160 |
-+{ |
161 |
-+ // we write only true attribute values so we remove a bit of the |
162 |
-+ // file format bloat for tabulars. |
163 |
-+ return i ? write_attribute(name, convert<string>(i)) : string(); |
164 |
-+} |
165 |
-+ |
166 |
-+ |
167 |
-+template <> |
168 |
-+string const write_attribute(string const & name, Length const & value) |
169 |
-+{ |
170 |
-+ // we write only the value if we really have one same reson as above. |
171 |
-+ return value.zero() ? string() : write_attribute(name, value.asString()); |
172 |
-+} |
173 |
-+ |
174 |
- } // namespace |
175 |
- |
176 |
- |
177 |
|
178 |
diff --git a/app-office/lyx/files/1.6.7-python.patch b/app-office/lyx/files/1.6.7-python.patch |
179 |
deleted file mode 100644 |
180 |
index 3717cc8..0000000 |
181 |
--- a/app-office/lyx/files/1.6.7-python.patch |
182 |
+++ /dev/null |
183 |
@@ -1,26 +0,0 @@ |
184 |
-diff --git a/src/graphics/GraphicsConverter.cpp b/src/graphics/GraphicsConverter.cpp |
185 |
-index 97c4f68..8f05e62 100644 |
186 |
---- a/src/graphics/GraphicsConverter.cpp |
187 |
-+++ b/src/graphics/GraphicsConverter.cpp |
188 |
-@@ -262,7 +262,7 @@ static void build_script(FileName const & from_file, |
189 |
- LYXERR(Debug::GRAPHICS, "build_script ... "); |
190 |
- typedef Graph::EdgePath EdgePath; |
191 |
- |
192 |
-- script << "#!/usr/bin/env python\n" |
193 |
-+ script << "#!/usr/bin/env python2\n" |
194 |
- "# -*- coding: utf-8 -*-\n" |
195 |
- "import os, shutil, sys\n\n" |
196 |
- "def unlinkNoThrow(file):\n" |
197 |
-diff --git a/src/support/os.cpp b/src/support/os.cpp |
198 |
-index 6984d2c..e6f17ff 100644 |
199 |
---- a/src/support/os.cpp |
200 |
-+++ b/src/support/os.cpp |
201 |
-@@ -26,7 +26,7 @@ string const python() |
202 |
- { |
203 |
- // Use the -tt switch so that mixed tab/whitespace indentation is |
204 |
- // an error |
205 |
-- static string const command("python -tt"); |
206 |
-+ static string const command("python2 -tt"); |
207 |
- return command; |
208 |
- } |
209 |
- |
210 |
|
211 |
diff --git a/app-office/lyx/files/2.0-python.patch b/app-office/lyx/files/2.0-python.patch |
212 |
deleted file mode 100644 |
213 |
index e12f66a..0000000 |
214 |
--- a/app-office/lyx/files/2.0-python.patch |
215 |
+++ /dev/null |
216 |
@@ -1,26 +0,0 @@ |
217 |
-diff --git a/src/graphics/GraphicsConverter.cpp b/src/graphics/GraphicsConverter.cpp |
218 |
-index 97c4f68..8f05e62 100644 |
219 |
---- a/src/graphics/GraphicsConverter.cpp |
220 |
-+++ b/src/graphics/GraphicsConverter.cpp |
221 |
-@@ -262,7 +262,7 @@ static void build_script(FileName const & from_file, |
222 |
- LYXERR(Debug::GRAPHICS, "build_script ... "); |
223 |
- typedef Graph::EdgePath EdgePath; |
224 |
- |
225 |
-- script << "#!/usr/bin/env python\n" |
226 |
-+ script << "#!/usr/bin/env python2\n" |
227 |
- "# -*- coding: utf-8 -*-\n" |
228 |
- "import os, shutil, sys\n\n" |
229 |
- "def unlinkNoThrow(file):\n" |
230 |
-diff --git a/src/support/os.cpp b/src/support/os.cpp |
231 |
-index f36331c..02f5a93 100644 |
232 |
---- a/src/support/os.cpp |
233 |
-+++ b/src/support/os.cpp |
234 |
-@@ -57,7 +57,7 @@ static string const python2(string const & binary, bool verbose = false) |
235 |
- string const python() |
236 |
- { |
237 |
- // Check whether the first python in PATH is the right one. |
238 |
-- static string command = python2("python -tt"); |
239 |
-+ static string command = python2("python2 -tt"); |
240 |
- |
241 |
- if (command.empty()) { |
242 |
- // It was not, so check whether we can find it elsewhere in |
243 |
|
244 |
diff --git a/app-office/lyx/lyx-2.1.3.ebuild b/app-office/lyx/lyx-2.1.3.ebuild |
245 |
deleted file mode 100644 |
246 |
index b053cad..0000000 |
247 |
--- a/app-office/lyx/lyx-2.1.3.ebuild |
248 |
+++ /dev/null |
249 |
@@ -1,179 +0,0 @@ |
250 |
-# Copyright 1999-2015 Gentoo Foundation |
251 |
-# Distributed under the terms of the GNU General Public License v2 |
252 |
-# $Id$ |
253 |
- |
254 |
-EAPI=5 |
255 |
- |
256 |
-PYTHON_COMPAT=( python2_7 ) |
257 |
-inherit gnome2-utils eutils fdo-mime flag-o-matic font python-single-r1 toolchain-funcs |
258 |
- |
259 |
-MY_P="${P/_}" |
260 |
- |
261 |
-S="${WORKDIR}/${MY_P}" |
262 |
-FONT_S="${S}/lib/fonts" |
263 |
-FONT_SUFFIX="ttf" |
264 |
-DESCRIPTION="WYSIWYM frontend for LaTeX, DocBook, etc." |
265 |
-HOMEPAGE="http://www.lyx.org/" |
266 |
-SRC_URI="ftp://ftp.lyx.org/pub/lyx/stable/2.1.x/${MY_P}.tar.xz |
267 |
- ftp://ftp.lyx.org/pub/lyx/devel/lyx-2.1/${MY_P}/${MY_P}.tar.xz" |
268 |
- |
269 |
-LICENSE="GPL-2" |
270 |
-SLOT="0" |
271 |
-KEYWORDS="alpha amd64 hppa ia64 ppc ppc64 sparc x86 ~x64-macos ~x86-macos" |
272 |
-IUSE="cups debug nls +latex monolithic-build html rtf dot docbook dia subversion rcs svg gnumeric +hunspell aspell enchant" |
273 |
- |
274 |
-LANGS="ar ca cs de da el en es eu fi fr gl he hu ia id it ja nb nn pl pt ro ru sk sr sv tr uk zh_CN zh_TW" |
275 |
- |
276 |
-for X in ${LANGS}; do |
277 |
- IUSE="${IUSE} linguas_${X}" |
278 |
-done |
279 |
- |
280 |
-REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
281 |
- |
282 |
-DOCS=( ANNOUNCE NEWS README RELEASE-NOTES UPGRADING ) |
283 |
- |
284 |
-COMMONDEPEND="dev-qt/qtgui:4 |
285 |
- dev-qt/qtcore:4 |
286 |
- >=dev-libs/boost-1.34:= |
287 |
- ${PYTHON_DEPS}" |
288 |
- |
289 |
-RDEPEND="${COMMONDEPEND} |
290 |
- dev-texlive/texlive-fontsextra |
291 |
- || ( media-gfx/imagemagick[png] media-gfx/graphicsmagick[png] ) |
292 |
- cups? ( net-print/cups ) |
293 |
- latex? ( |
294 |
- app-text/texlive |
295 |
- app-text/ghostscript-gpl |
296 |
- app-text/noweb |
297 |
- app-text/dvipng |
298 |
- dev-tex/dvipost |
299 |
- dev-tex/chktex |
300 |
- app-text/ps2eps |
301 |
- dev-texlive/texlive-latexextra |
302 |
- dev-texlive/texlive-pictures |
303 |
- dev-texlive/texlive-science |
304 |
- dev-texlive/texlive-genericextra |
305 |
- dev-texlive/texlive-fontsrecommended |
306 |
- || ( |
307 |
- dev-tex/latex2html |
308 |
- dev-tex/tth |
309 |
- dev-tex/hevea |
310 |
- dev-tex/tex4ht[java] |
311 |
- ) |
312 |
- ) |
313 |
- html? ( dev-tex/html2latex ) |
314 |
- rtf? ( |
315 |
- dev-tex/latex2rtf |
316 |
- app-text/unrtf |
317 |
- dev-tex/html2latex |
318 |
- ) |
319 |
- linguas_he? ( dev-tex/culmus-latex ) |
320 |
- docbook? ( app-text/sgmltools-lite ) |
321 |
- dot? ( media-gfx/graphviz ) |
322 |
- dia? ( app-office/dia ) |
323 |
- subversion? ( dev-vcs/subversion ) |
324 |
- rcs? ( dev-vcs/rcs ) |
325 |
- svg? ( || ( media-gfx/imagemagick[svg] media-gfx/graphicsmagick[svg] ) |
326 |
- || ( gnome-base/librsvg media-gfx/inkscape ) |
327 |
- ) |
328 |
- gnumeric? ( app-office/gnumeric ) |
329 |
- hunspell? ( app-text/hunspell ) |
330 |
- aspell? ( app-text/aspell ) |
331 |
- enchant? ( app-text/enchant )" |
332 |
- |
333 |
-DEPEND="${COMMONDEPEND} |
334 |
- virtual/pkgconfig |
335 |
- nls? ( sys-devel/gettext )" |
336 |
- |
337 |
-pkg_setup() { |
338 |
- python-single-r1_pkg_setup |
339 |
- font_pkg_setup |
340 |
-} |
341 |
- |
342 |
-src_prepare() { |
343 |
- epatch "${FILESDIR}"/2.1-python.patch |
344 |
- sed "s:python -tt:${EPYTHON} -tt:g" -i lib/configure.py || die |
345 |
-} |
346 |
- |
347 |
-src_configure() { |
348 |
- tc-export CXX |
349 |
- #bug 221921 |
350 |
- export VARTEXFONTS=${T}/fonts |
351 |
- |
352 |
- econf \ |
353 |
- $(use_enable nls) \ |
354 |
- $(use_enable debug) \ |
355 |
- $(use_enable monolithic-build) \ |
356 |
- $(use_with hunspell) \ |
357 |
- $(use_with aspell) \ |
358 |
- $(use_with enchant) \ |
359 |
- --without-included-boost \ |
360 |
- --disable-stdlib-debug \ |
361 |
- --with-packaging=posix |
362 |
-} |
363 |
- |
364 |
-src_install() { |
365 |
- default |
366 |
- |
367 |
- if use linguas_he ; then |
368 |
- echo "\bind_file cua" > "${T}"/hebrew.bind |
369 |
- echo "\bind \"F12\" \"language hebrew\"" >> "${T}"/hebrew.bind |
370 |
- |
371 |
- insinto /usr/share/lyx/bind |
372 |
- doins "${T}"/hebrew.bind || die |
373 |
- fi |
374 |
- |
375 |
- newicon -s 32 "${S}/development/Win32/packaging/icons/lyx_32x32.png" ${PN}.png |
376 |
- doicon -s 48 "${S}/lib/images/lyx.png" |
377 |
- doicon -s scalable "${S}/lib/images/lyx.svg" |
378 |
- |
379 |
- # fix for bug 91108 |
380 |
- if use latex ; then |
381 |
- dosym ../../../lyx/tex /usr/share/texmf-site/tex/latex/lyx || die |
382 |
- fi |
383 |
- |
384 |
- # fonts needed for proper math display, see also bug #15629 |
385 |
- font_src_install |
386 |
- |
387 |
- python_fix_shebang "${ED}"/usr/share/${PN} |
388 |
- |
389 |
- if use hunspell ; then |
390 |
- dosym /usr/share/myspell /usr/share/lyx/dicts |
391 |
- dosym /usr/share/myspell /usr/share/lyx/thes |
392 |
- fi |
393 |
-} |
394 |
- |
395 |
-pkg_preinst() { |
396 |
- gnome2_icon_savelist |
397 |
-} |
398 |
- |
399 |
-pkg_postinst() { |
400 |
- font_pkg_postinst |
401 |
- gnome2_icon_cache_update |
402 |
- fdo-mime_desktop_database_update |
403 |
- |
404 |
- # fix for bug 91108 |
405 |
- if use latex ; then |
406 |
- texhash |
407 |
- fi |
408 |
- |
409 |
- # instructions for RTL support. See also bug 168331. |
410 |
- if use linguas_he || use linguas_ar; then |
411 |
- elog |
412 |
- elog "Enabling RTL support in LyX:" |
413 |
- elog "If you intend to use a RTL language (such as Hebrew or Arabic)" |
414 |
- elog "You must enable RTL support in LyX. To do so start LyX and go to" |
415 |
- elog "Tools->Preferences->Language settings->Language" |
416 |
- elog "and make sure the \"Right-to-left language support\" is checked" |
417 |
- elog |
418 |
- fi |
419 |
-} |
420 |
- |
421 |
-pkg_postrm() { |
422 |
- gnome2_icon_cache_update |
423 |
- fdo-mime_desktop_database_update |
424 |
- |
425 |
- if use latex ; then |
426 |
- texhash |
427 |
- fi |
428 |
-} |