1 |
commit: 6a5c1ebb08049e05bf54297f4570d1d641fc4cea |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Feb 15 00:21:41 2018 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Feb 15 00:23:41 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6a5c1ebb |
7 |
|
8 |
app-office/lyx: Drop old |
9 |
|
10 |
Package-Manager: Portage-2.3.24, Repoman-2.3.6 |
11 |
|
12 |
app-office/lyx/Manifest | 2 - |
13 |
app-office/lyx/files/2.0.8-python.patch | 29 ----- |
14 |
app-office/lyx/lyx-2.0.8.1-r1.ebuild | 170 ----------------------------- |
15 |
app-office/lyx/lyx-2.2.2-r1.ebuild | 183 -------------------------------- |
16 |
app-office/lyx/lyx-2.2.3.ebuild | 183 -------------------------------- |
17 |
5 files changed, 567 deletions(-) |
18 |
|
19 |
diff --git a/app-office/lyx/Manifest b/app-office/lyx/Manifest |
20 |
index 0bb364d3197..852ec4ea1c3 100644 |
21 |
--- a/app-office/lyx/Manifest |
22 |
+++ b/app-office/lyx/Manifest |
23 |
@@ -1,4 +1,2 @@ |
24 |
-DIST lyx-2.0.8.1.tar.xz 10481988 BLAKE2B 121a2f5a86f9b2f92fc211c052a26dfeb0c89c3f3ebb6d9e9eab397af7aec1f696806f79d7fc75c03649bbefa06295ad03d7207135308cb14560596b0c0f4790 SHA512 17e313d3118dfe439f5251384f2fffdb45ffef5ec515953b7af0762d35c8e156a9338de698cea91cf8b3cedca1fc08364d8f3c50c9345f304d57004af695f901 |
25 |
DIST lyx-2.1.5.tar.xz 10361112 BLAKE2B ddc6e10974f495bb465fced0bfe95e0530831e924c12323267feec59e49900efefda154abac927f3129ab0820706a870fb463e749cff2b5c4b47368d954c9d20 SHA512 6f8c62ff96458d0c8c8057ae1e587be4c63bd3bdf2d4f095c24d447017034eda8c6b645efbd258f0956a9bbfe5fde2f90df36515be7b8a94cb63674bc3a58672 |
26 |
-DIST lyx-2.2.2.tar.xz 15490148 BLAKE2B 16d9b1448da76dd0b02ee4cdec38831a0c3aa7a0798b4f99bb6c93717223dfd3c62145afa76324177ed162d4c45ab341a963831855c9607d8544574ae88766da SHA512 5057a06f0c37cb2beadb92414eec495ba0619f6c8a9fb5372a9feb90fe0d8bf850de5c94bbf618c8e27bd64404ae6687c48ee24aa6e1bd35580eb3b77d71d45e |
27 |
DIST lyx-2.2.3.tar.xz 15501856 BLAKE2B 08606f0c18d9cb5891bd7d612361597e3efc7e7855f7607c2620f10ddb22b7078d5085f725911496198d2d8a47ece54cbfe67cfbf4ec8eb15450271cd133b095 SHA512 b5a4a16b22680022651a0f3911c2c24bcd3541a573e672e541cb0af6572089e4b0e0ec1cafb40850e75c377e7da5b286d0314886e0c57d55f57645d8e4a07708 |
28 |
|
29 |
diff --git a/app-office/lyx/files/2.0.8-python.patch b/app-office/lyx/files/2.0.8-python.patch |
30 |
deleted file mode 100644 |
31 |
index 5fb21655a69..00000000000 |
32 |
--- a/app-office/lyx/files/2.0.8-python.patch |
33 |
+++ /dev/null |
34 |
@@ -1,29 +0,0 @@ |
35 |
-diff --git a/src/graphics/GraphicsConverter.cpp b/src/graphics/GraphicsConverter.cpp |
36 |
-index 97c4f68..8f05e62 100644 |
37 |
---- a/src/graphics/GraphicsConverter.cpp |
38 |
-+++ b/src/graphics/GraphicsConverter.cpp |
39 |
-@@ -262,7 +262,7 @@ static void build_script(FileName const & from_file, |
40 |
- LYXERR(Debug::GRAPHICS, "build_script ... "); |
41 |
- typedef Graph::EdgePath EdgePath; |
42 |
- |
43 |
-- script << "#!/usr/bin/env python\n" |
44 |
-+ script << "#!/usr/bin/env python2\n" |
45 |
- "# -*- coding: utf-8 -*-\n" |
46 |
- "import os, shutil, sys\n\n" |
47 |
- "def unlinkNoThrow(file):\n" |
48 |
-diff --git a/src/support/os.cpp b/src/support/os.cpp |
49 |
-index 8f60c68..2f1cb91 100644 |
50 |
---- a/src/support/os.cpp |
51 |
-+++ b/src/support/os.cpp |
52 |
-@@ -63,9 +63,9 @@ int timeout_min() |
53 |
- string const python(bool reset) |
54 |
- { |
55 |
- // Check whether the first python in PATH is the right one. |
56 |
-- static string command = python2("python -tt"); |
57 |
-+ static string command = python2("python2 -tt"); |
58 |
- if (reset) { |
59 |
-- command = python2("python -tt"); |
60 |
-+ command = python2("python2 -tt"); |
61 |
- } |
62 |
- |
63 |
- if (command.empty()) { |
64 |
|
65 |
diff --git a/app-office/lyx/lyx-2.0.8.1-r1.ebuild b/app-office/lyx/lyx-2.0.8.1-r1.ebuild |
66 |
deleted file mode 100644 |
67 |
index 3e87c826bd1..00000000000 |
68 |
--- a/app-office/lyx/lyx-2.0.8.1-r1.ebuild |
69 |
+++ /dev/null |
70 |
@@ -1,170 +0,0 @@ |
71 |
-# Copyright 1999-2018 Gentoo Foundation |
72 |
-# Distributed under the terms of the GNU General Public License v2 |
73 |
- |
74 |
-EAPI=5 |
75 |
- |
76 |
-PYTHON_COMPAT=( python2_7 ) |
77 |
-inherit gnome2-utils eutils fdo-mime flag-o-matic font python-single-r1 toolchain-funcs |
78 |
- |
79 |
-MY_P="${P/_}" |
80 |
- |
81 |
-S="${WORKDIR}/${MY_P}" |
82 |
-FONT_S="${S}/lib/fonts" |
83 |
-FONT_SUFFIX="ttf" |
84 |
-DESCRIPTION="WYSIWYM frontend for LaTeX, DocBook, etc." |
85 |
-HOMEPAGE="https://www.lyx.org/" |
86 |
-SRC_URI="ftp://ftp.lyx.org/pub/lyx/stable/2.0.x/${MY_P}.tar.xz |
87 |
- ftp://ftp.lyx.org/pub/lyx/devel/lyx-2.0/${PV}/${MY_P}.tar.xz" |
88 |
- |
89 |
-LICENSE="GPL-2" |
90 |
-SLOT="0" |
91 |
-KEYWORDS="alpha amd64 ~hppa ia64 ppc ppc64 sparc x86 ~x64-macos ~x86-macos" |
92 |
-IUSE="cups debug nls +latex monolithic-build html rtf dot docbook dia subversion rcs svg gnumeric +hunspell aspell enchant l10n_he" |
93 |
-REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
94 |
- |
95 |
-DOCS=( ANNOUNCE NEWS README RELEASE-NOTES UPGRADING ) |
96 |
- |
97 |
-COMMONDEPEND="dev-qt/qtgui:4 |
98 |
- dev-qt/qtcore:4 |
99 |
- >=dev-libs/boost-1.34 |
100 |
- ${PYTHON_DEPS}" |
101 |
- |
102 |
-RDEPEND="${COMMONDEPEND} |
103 |
- dev-texlive/texlive-fontsextra |
104 |
- virtual/imagemagick-tools[png,svg?] |
105 |
- cups? ( net-print/cups ) |
106 |
- latex? ( |
107 |
- app-text/texlive |
108 |
- app-text/ghostscript-gpl |
109 |
- app-text/noweb |
110 |
- app-text/dvipng |
111 |
- dev-tex/dvipost |
112 |
- dev-tex/chktex |
113 |
- app-text/ps2eps |
114 |
- dev-texlive/texlive-latexextra |
115 |
- dev-texlive/texlive-pictures |
116 |
- || ( dev-texlive/texlive-mathscience dev-texlive/texlive-science ) |
117 |
- || ( dev-texlive/texlive-plaingeneric dev-texlive/texlive-genericextra ) |
118 |
- dev-texlive/texlive-fontsrecommended |
119 |
- || ( |
120 |
- dev-tex/latex2html |
121 |
- dev-tex/tth |
122 |
- dev-tex/hevea |
123 |
- dev-tex/tex4ht[java] |
124 |
- ) |
125 |
- ) |
126 |
- html? ( dev-tex/html2latex ) |
127 |
- rtf? ( |
128 |
- dev-tex/latex2rtf |
129 |
- app-text/unrtf |
130 |
- dev-tex/html2latex |
131 |
- ) |
132 |
- l10n_he? ( dev-tex/culmus-latex ) |
133 |
- docbook? ( app-text/sgmltools-lite ) |
134 |
- dot? ( media-gfx/graphviz ) |
135 |
- dia? ( app-office/dia ) |
136 |
- subversion? ( <dev-vcs/subversion-1.7.0 ) |
137 |
- rcs? ( dev-vcs/rcs ) |
138 |
- svg? ( || ( gnome-base/librsvg media-gfx/inkscape ) ) |
139 |
- gnumeric? ( app-office/gnumeric ) |
140 |
- hunspell? ( app-text/hunspell ) |
141 |
- aspell? ( app-text/aspell ) |
142 |
- enchant? ( app-text/enchant )" |
143 |
- |
144 |
-DEPEND="${COMMONDEPEND} |
145 |
- virtual/pkgconfig |
146 |
- nls? ( sys-devel/gettext )" |
147 |
- |
148 |
-pkg_setup() { |
149 |
- python-single-r1_pkg_setup |
150 |
- font_pkg_setup |
151 |
-} |
152 |
- |
153 |
-src_prepare() { |
154 |
- epatch "${FILESDIR}"/2.0.8-python.patch |
155 |
- sed "s:python -tt:${EPYTHON} -tt:g" -i lib/configure.py || die |
156 |
-} |
157 |
- |
158 |
-src_configure() { |
159 |
- tc-export CXX |
160 |
- #bug 221921 |
161 |
- export VARTEXFONTS=${T}/fonts |
162 |
- |
163 |
- econf \ |
164 |
- $(use_enable nls) \ |
165 |
- $(use_enable debug) \ |
166 |
- $(use_enable monolithic-build) \ |
167 |
- $(use_with hunspell) \ |
168 |
- $(use_with aspell) \ |
169 |
- $(use_with enchant) \ |
170 |
- --without-included-boost \ |
171 |
- --disable-stdlib-debug \ |
172 |
- --with-packaging=posix |
173 |
-} |
174 |
- |
175 |
-src_install() { |
176 |
- default |
177 |
- |
178 |
- if use l10n_he ; then |
179 |
- echo "\bind_file cua" > "${T}"/hebrew.bind |
180 |
- echo "\bind \"F12\" \"language hebrew\"" >> "${T}"/hebrew.bind |
181 |
- |
182 |
- insinto /usr/share/lyx/bind |
183 |
- doins "${T}"/hebrew.bind || die |
184 |
- fi |
185 |
- |
186 |
- newicon -s 32 "${S}/development/Win32/packaging/icons/lyx_32x32.png" ${PN}.png |
187 |
- doicon -s 48 "${S}/lib/images/lyx.png" |
188 |
- doicon -s scalable "${S}/lib/images/lyx.svg" |
189 |
- make_desktop_entry ${PN} "LyX" "${PN}" "Office" "MimeType=application/x-lyx;" |
190 |
- |
191 |
- # fix for bug 91108 |
192 |
- if use latex ; then |
193 |
- dosym ../../../lyx/tex /usr/share/texmf-site/tex/latex/lyx || die |
194 |
- fi |
195 |
- |
196 |
- # fonts needed for proper math display, see also bug #15629 |
197 |
- font_src_install |
198 |
- |
199 |
- python_fix_shebang "${ED}"/usr/share/${PN} |
200 |
- |
201 |
- if use hunspell ; then |
202 |
- dosym ../myspell /usr/share/lyx/dicts |
203 |
- dosym ../myspell /usr/share/lyx/thes |
204 |
- fi |
205 |
-} |
206 |
- |
207 |
-pkg_preinst() { |
208 |
- gnome2_icon_savelist |
209 |
-} |
210 |
- |
211 |
-pkg_postinst() { |
212 |
- font_pkg_postinst |
213 |
- gnome2_icon_cache_update |
214 |
- fdo-mime_desktop_database_update |
215 |
- |
216 |
- # fix for bug 91108 |
217 |
- if use latex ; then |
218 |
- texhash |
219 |
- fi |
220 |
- |
221 |
- # instructions for RTL support. See also bug 168331. |
222 |
- if use l10n_he || has he ${LINGUAS} || has ar ${LINGUAS} ; then |
223 |
- elog |
224 |
- elog "Enabling RTL support in LyX:" |
225 |
- elog "If you intend to use a RTL language (such as Hebrew or Arabic)" |
226 |
- elog "You must enable RTL support in LyX. To do so start LyX and go to" |
227 |
- elog "Tools->Preferences->Language settings->Language" |
228 |
- elog "and make sure the \"Right-to-left language support\" is checked" |
229 |
- elog |
230 |
- fi |
231 |
-} |
232 |
- |
233 |
-pkg_postrm() { |
234 |
- gnome2_icon_cache_update |
235 |
- fdo-mime_desktop_database_update |
236 |
- |
237 |
- if use latex ; then |
238 |
- texhash |
239 |
- fi |
240 |
-} |
241 |
|
242 |
diff --git a/app-office/lyx/lyx-2.2.2-r1.ebuild b/app-office/lyx/lyx-2.2.2-r1.ebuild |
243 |
deleted file mode 100644 |
244 |
index 8463d966225..00000000000 |
245 |
--- a/app-office/lyx/lyx-2.2.2-r1.ebuild |
246 |
+++ /dev/null |
247 |
@@ -1,183 +0,0 @@ |
248 |
-# Copyright 1999-2018 Gentoo Foundation |
249 |
-# Distributed under the terms of the GNU General Public License v2 |
250 |
- |
251 |
-EAPI=5 |
252 |
- |
253 |
-PYTHON_COMPAT=( python2_7 ) |
254 |
-inherit gnome2-utils eutils fdo-mime flag-o-matic font python-single-r1 toolchain-funcs |
255 |
- |
256 |
-MY_P="${P/_}" |
257 |
- |
258 |
-S="${WORKDIR}/${MY_P}" |
259 |
-FONT_S="${S}/lib/fonts" |
260 |
-FONT_SUFFIX="ttf" |
261 |
-DESCRIPTION="WYSIWYM frontend for LaTeX, DocBook, etc." |
262 |
-HOMEPAGE="https://www.lyx.org/" |
263 |
-SRC_URI="ftp://ftp.lyx.org/pub/lyx/stable/2.2.x/${MY_P}.tar.xz |
264 |
- ftp://ftp.lyx.org/pub/lyx/devel/lyx-2.2/${MY_P}/${MY_P}.tar.xz" |
265 |
- |
266 |
-LICENSE="GPL-2" |
267 |
-SLOT="0" |
268 |
-KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x64-macos ~x86-macos" |
269 |
-IUSE="cups debug nls +latex monolithic-build html rtf dot docbook dia subversion rcs svg gnumeric +hunspell aspell enchant +qt4 qt5 l10n_he" |
270 |
-REQUIRED_USE="${PYTHON_REQUIRED_USE} |
271 |
- qt4? ( !qt5 ) |
272 |
- qt5? ( !qt4 )" |
273 |
- |
274 |
-DOCS=( ANNOUNCE NEWS README RELEASE-NOTES UPGRADING ) |
275 |
- |
276 |
-COMMONDEPEND=">=dev-libs/boost-1.34:= |
277 |
- ${PYTHON_DEPS} |
278 |
- qt4? ( dev-qt/qtgui:4 dev-qt/qtcore:4 dev-qt/qtsvg:4 ) |
279 |
- qt5? ( dev-qt/qtgui:5 dev-qt/qtcore:5 dev-qt/qtwidgets:5 dev-qt/qtx11extras:5 dev-qt/qtsvg:5 dev-qt/qtconcurrent:5 )" |
280 |
- |
281 |
-RDEPEND="${COMMONDEPEND} |
282 |
- dev-texlive/texlive-fontsextra |
283 |
- virtual/imagemagick-tools[png,svg?] |
284 |
- cups? ( net-print/cups ) |
285 |
- latex? ( |
286 |
- app-text/texlive |
287 |
- app-text/ghostscript-gpl |
288 |
- app-text/noweb |
289 |
- app-text/dvipng |
290 |
- dev-tex/dvipost |
291 |
- dev-tex/chktex |
292 |
- app-text/ps2eps |
293 |
- dev-texlive/texlive-latexextra |
294 |
- dev-texlive/texlive-pictures |
295 |
- || ( dev-texlive/texlive-mathscience dev-texlive/texlive-science ) |
296 |
- || ( dev-texlive/texlive-plaingeneric dev-texlive/texlive-genericextra ) |
297 |
- dev-texlive/texlive-fontsrecommended |
298 |
- || ( |
299 |
- dev-tex/latex2html |
300 |
- dev-tex/tth |
301 |
- dev-tex/hevea |
302 |
- dev-tex/tex4ht[java] |
303 |
- ) |
304 |
- ) |
305 |
- html? ( dev-tex/html2latex ) |
306 |
- rtf? ( |
307 |
- dev-tex/latex2rtf |
308 |
- app-text/unrtf |
309 |
- dev-tex/html2latex |
310 |
- ) |
311 |
- l10n_he? ( dev-tex/culmus-latex ) |
312 |
- docbook? ( app-text/sgmltools-lite ) |
313 |
- dot? ( media-gfx/graphviz ) |
314 |
- dia? ( app-office/dia ) |
315 |
- subversion? ( dev-vcs/subversion ) |
316 |
- rcs? ( dev-vcs/rcs ) |
317 |
- svg? ( || ( gnome-base/librsvg media-gfx/inkscape ) ) |
318 |
- gnumeric? ( app-office/gnumeric ) |
319 |
- hunspell? ( app-text/hunspell ) |
320 |
- aspell? ( app-text/aspell ) |
321 |
- enchant? ( app-text/enchant )" |
322 |
- |
323 |
-DEPEND="${COMMONDEPEND} |
324 |
- virtual/pkgconfig |
325 |
- nls? ( sys-devel/gettext )" |
326 |
- |
327 |
-pkg_setup() { |
328 |
- python-single-r1_pkg_setup |
329 |
- font_pkg_setup |
330 |
-} |
331 |
- |
332 |
-src_prepare() { |
333 |
- epatch "${FILESDIR}"/2.1-python.patch |
334 |
- sed "s:python -tt:${EPYTHON} -tt:g" -i lib/configure.py || die |
335 |
- if use qt4; then |
336 |
- export QT_SELECT=qt4 |
337 |
- elif use qt5; then |
338 |
- export QT_SELECT=qt5 |
339 |
- fi |
340 |
-} |
341 |
- |
342 |
-src_configure() { |
343 |
- tc-export CXX |
344 |
- #bug 221921 |
345 |
- export VARTEXFONTS=${T}/fonts |
346 |
- local qt_flag="" |
347 |
- if use qt4; then |
348 |
- qt_flag="" |
349 |
- elif use qt5; then |
350 |
- qt_flag="--enable-qt5" |
351 |
- fi |
352 |
- |
353 |
- econf \ |
354 |
- $(use_enable nls) \ |
355 |
- $(use_enable debug) \ |
356 |
- $(use_enable monolithic-build) \ |
357 |
- $(use_with hunspell) \ |
358 |
- $(use_with aspell) \ |
359 |
- $(use_with enchant) \ |
360 |
- ${qt_flag} \ |
361 |
- --without-included-boost \ |
362 |
- --disable-stdlib-debug \ |
363 |
- --with-packaging=posix |
364 |
-} |
365 |
- |
366 |
-src_install() { |
367 |
- default |
368 |
- |
369 |
- if use l10n_he ; then |
370 |
- echo "\bind_file cua" > "${T}"/hebrew.bind |
371 |
- echo "\bind \"F12\" \"language hebrew\"" >> "${T}"/hebrew.bind |
372 |
- |
373 |
- insinto /usr/share/lyx/bind |
374 |
- doins "${T}"/hebrew.bind || die |
375 |
- fi |
376 |
- |
377 |
- newicon -s 32 "${S}/development/Win32/packaging/icons/lyx_32x32.png" ${PN}.png |
378 |
- doicon -s 48 "${S}/lib/images/lyx.png" |
379 |
- doicon -s scalable "${S}/lib/images/lyx.svg" |
380 |
- |
381 |
- # fix for bug 91108 |
382 |
- if use latex ; then |
383 |
- dosym ../../../lyx/tex /usr/share/texmf-site/tex/latex/lyx || die |
384 |
- fi |
385 |
- |
386 |
- # fonts needed for proper math display, see also bug #15629 |
387 |
- font_src_install |
388 |
- |
389 |
- python_fix_shebang "${ED}"/usr/share/${PN} |
390 |
- |
391 |
- if use hunspell ; then |
392 |
- dosym ../myspell /usr/share/lyx/dicts |
393 |
- dosym ../myspell /usr/share/lyx/thes |
394 |
- fi |
395 |
-} |
396 |
- |
397 |
-pkg_preinst() { |
398 |
- gnome2_icon_savelist |
399 |
-} |
400 |
- |
401 |
-pkg_postinst() { |
402 |
- font_pkg_postinst |
403 |
- gnome2_icon_cache_update |
404 |
- fdo-mime_desktop_database_update |
405 |
- |
406 |
- # fix for bug 91108 |
407 |
- if use latex ; then |
408 |
- texhash |
409 |
- fi |
410 |
- |
411 |
- # instructions for RTL support. See also bug 168331. |
412 |
- if use l10n_he || has he ${LINGUAS} || has ar ${LINGUAS} ; then |
413 |
- elog |
414 |
- elog "Enabling RTL support in LyX:" |
415 |
- elog "If you intend to use a RTL language (such as Hebrew or Arabic)" |
416 |
- elog "You must enable RTL support in LyX. To do so start LyX and go to" |
417 |
- elog "Tools->Preferences->Language settings->Language" |
418 |
- elog "and make sure the \"Right-to-left language support\" is checked" |
419 |
- elog |
420 |
- fi |
421 |
-} |
422 |
- |
423 |
-pkg_postrm() { |
424 |
- gnome2_icon_cache_update |
425 |
- fdo-mime_desktop_database_update |
426 |
- |
427 |
- if use latex ; then |
428 |
- texhash |
429 |
- fi |
430 |
-} |
431 |
|
432 |
diff --git a/app-office/lyx/lyx-2.2.3.ebuild b/app-office/lyx/lyx-2.2.3.ebuild |
433 |
deleted file mode 100644 |
434 |
index 8463d966225..00000000000 |
435 |
--- a/app-office/lyx/lyx-2.2.3.ebuild |
436 |
+++ /dev/null |
437 |
@@ -1,183 +0,0 @@ |
438 |
-# Copyright 1999-2018 Gentoo Foundation |
439 |
-# Distributed under the terms of the GNU General Public License v2 |
440 |
- |
441 |
-EAPI=5 |
442 |
- |
443 |
-PYTHON_COMPAT=( python2_7 ) |
444 |
-inherit gnome2-utils eutils fdo-mime flag-o-matic font python-single-r1 toolchain-funcs |
445 |
- |
446 |
-MY_P="${P/_}" |
447 |
- |
448 |
-S="${WORKDIR}/${MY_P}" |
449 |
-FONT_S="${S}/lib/fonts" |
450 |
-FONT_SUFFIX="ttf" |
451 |
-DESCRIPTION="WYSIWYM frontend for LaTeX, DocBook, etc." |
452 |
-HOMEPAGE="https://www.lyx.org/" |
453 |
-SRC_URI="ftp://ftp.lyx.org/pub/lyx/stable/2.2.x/${MY_P}.tar.xz |
454 |
- ftp://ftp.lyx.org/pub/lyx/devel/lyx-2.2/${MY_P}/${MY_P}.tar.xz" |
455 |
- |
456 |
-LICENSE="GPL-2" |
457 |
-SLOT="0" |
458 |
-KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x64-macos ~x86-macos" |
459 |
-IUSE="cups debug nls +latex monolithic-build html rtf dot docbook dia subversion rcs svg gnumeric +hunspell aspell enchant +qt4 qt5 l10n_he" |
460 |
-REQUIRED_USE="${PYTHON_REQUIRED_USE} |
461 |
- qt4? ( !qt5 ) |
462 |
- qt5? ( !qt4 )" |
463 |
- |
464 |
-DOCS=( ANNOUNCE NEWS README RELEASE-NOTES UPGRADING ) |
465 |
- |
466 |
-COMMONDEPEND=">=dev-libs/boost-1.34:= |
467 |
- ${PYTHON_DEPS} |
468 |
- qt4? ( dev-qt/qtgui:4 dev-qt/qtcore:4 dev-qt/qtsvg:4 ) |
469 |
- qt5? ( dev-qt/qtgui:5 dev-qt/qtcore:5 dev-qt/qtwidgets:5 dev-qt/qtx11extras:5 dev-qt/qtsvg:5 dev-qt/qtconcurrent:5 )" |
470 |
- |
471 |
-RDEPEND="${COMMONDEPEND} |
472 |
- dev-texlive/texlive-fontsextra |
473 |
- virtual/imagemagick-tools[png,svg?] |
474 |
- cups? ( net-print/cups ) |
475 |
- latex? ( |
476 |
- app-text/texlive |
477 |
- app-text/ghostscript-gpl |
478 |
- app-text/noweb |
479 |
- app-text/dvipng |
480 |
- dev-tex/dvipost |
481 |
- dev-tex/chktex |
482 |
- app-text/ps2eps |
483 |
- dev-texlive/texlive-latexextra |
484 |
- dev-texlive/texlive-pictures |
485 |
- || ( dev-texlive/texlive-mathscience dev-texlive/texlive-science ) |
486 |
- || ( dev-texlive/texlive-plaingeneric dev-texlive/texlive-genericextra ) |
487 |
- dev-texlive/texlive-fontsrecommended |
488 |
- || ( |
489 |
- dev-tex/latex2html |
490 |
- dev-tex/tth |
491 |
- dev-tex/hevea |
492 |
- dev-tex/tex4ht[java] |
493 |
- ) |
494 |
- ) |
495 |
- html? ( dev-tex/html2latex ) |
496 |
- rtf? ( |
497 |
- dev-tex/latex2rtf |
498 |
- app-text/unrtf |
499 |
- dev-tex/html2latex |
500 |
- ) |
501 |
- l10n_he? ( dev-tex/culmus-latex ) |
502 |
- docbook? ( app-text/sgmltools-lite ) |
503 |
- dot? ( media-gfx/graphviz ) |
504 |
- dia? ( app-office/dia ) |
505 |
- subversion? ( dev-vcs/subversion ) |
506 |
- rcs? ( dev-vcs/rcs ) |
507 |
- svg? ( || ( gnome-base/librsvg media-gfx/inkscape ) ) |
508 |
- gnumeric? ( app-office/gnumeric ) |
509 |
- hunspell? ( app-text/hunspell ) |
510 |
- aspell? ( app-text/aspell ) |
511 |
- enchant? ( app-text/enchant )" |
512 |
- |
513 |
-DEPEND="${COMMONDEPEND} |
514 |
- virtual/pkgconfig |
515 |
- nls? ( sys-devel/gettext )" |
516 |
- |
517 |
-pkg_setup() { |
518 |
- python-single-r1_pkg_setup |
519 |
- font_pkg_setup |
520 |
-} |
521 |
- |
522 |
-src_prepare() { |
523 |
- epatch "${FILESDIR}"/2.1-python.patch |
524 |
- sed "s:python -tt:${EPYTHON} -tt:g" -i lib/configure.py || die |
525 |
- if use qt4; then |
526 |
- export QT_SELECT=qt4 |
527 |
- elif use qt5; then |
528 |
- export QT_SELECT=qt5 |
529 |
- fi |
530 |
-} |
531 |
- |
532 |
-src_configure() { |
533 |
- tc-export CXX |
534 |
- #bug 221921 |
535 |
- export VARTEXFONTS=${T}/fonts |
536 |
- local qt_flag="" |
537 |
- if use qt4; then |
538 |
- qt_flag="" |
539 |
- elif use qt5; then |
540 |
- qt_flag="--enable-qt5" |
541 |
- fi |
542 |
- |
543 |
- econf \ |
544 |
- $(use_enable nls) \ |
545 |
- $(use_enable debug) \ |
546 |
- $(use_enable monolithic-build) \ |
547 |
- $(use_with hunspell) \ |
548 |
- $(use_with aspell) \ |
549 |
- $(use_with enchant) \ |
550 |
- ${qt_flag} \ |
551 |
- --without-included-boost \ |
552 |
- --disable-stdlib-debug \ |
553 |
- --with-packaging=posix |
554 |
-} |
555 |
- |
556 |
-src_install() { |
557 |
- default |
558 |
- |
559 |
- if use l10n_he ; then |
560 |
- echo "\bind_file cua" > "${T}"/hebrew.bind |
561 |
- echo "\bind \"F12\" \"language hebrew\"" >> "${T}"/hebrew.bind |
562 |
- |
563 |
- insinto /usr/share/lyx/bind |
564 |
- doins "${T}"/hebrew.bind || die |
565 |
- fi |
566 |
- |
567 |
- newicon -s 32 "${S}/development/Win32/packaging/icons/lyx_32x32.png" ${PN}.png |
568 |
- doicon -s 48 "${S}/lib/images/lyx.png" |
569 |
- doicon -s scalable "${S}/lib/images/lyx.svg" |
570 |
- |
571 |
- # fix for bug 91108 |
572 |
- if use latex ; then |
573 |
- dosym ../../../lyx/tex /usr/share/texmf-site/tex/latex/lyx || die |
574 |
- fi |
575 |
- |
576 |
- # fonts needed for proper math display, see also bug #15629 |
577 |
- font_src_install |
578 |
- |
579 |
- python_fix_shebang "${ED}"/usr/share/${PN} |
580 |
- |
581 |
- if use hunspell ; then |
582 |
- dosym ../myspell /usr/share/lyx/dicts |
583 |
- dosym ../myspell /usr/share/lyx/thes |
584 |
- fi |
585 |
-} |
586 |
- |
587 |
-pkg_preinst() { |
588 |
- gnome2_icon_savelist |
589 |
-} |
590 |
- |
591 |
-pkg_postinst() { |
592 |
- font_pkg_postinst |
593 |
- gnome2_icon_cache_update |
594 |
- fdo-mime_desktop_database_update |
595 |
- |
596 |
- # fix for bug 91108 |
597 |
- if use latex ; then |
598 |
- texhash |
599 |
- fi |
600 |
- |
601 |
- # instructions for RTL support. See also bug 168331. |
602 |
- if use l10n_he || has he ${LINGUAS} || has ar ${LINGUAS} ; then |
603 |
- elog |
604 |
- elog "Enabling RTL support in LyX:" |
605 |
- elog "If you intend to use a RTL language (such as Hebrew or Arabic)" |
606 |
- elog "You must enable RTL support in LyX. To do so start LyX and go to" |
607 |
- elog "Tools->Preferences->Language settings->Language" |
608 |
- elog "and make sure the \"Right-to-left language support\" is checked" |
609 |
- elog |
610 |
- fi |
611 |
-} |
612 |
- |
613 |
-pkg_postrm() { |
614 |
- gnome2_icon_cache_update |
615 |
- fdo-mime_desktop_database_update |
616 |
- |
617 |
- if use latex ; then |
618 |
- texhash |
619 |
- fi |
620 |
-} |