Gentoo Archives: gentoo-commits

From: Jonas Stein <jstein@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-office/lyx/
Date: Thu, 23 Nov 2017 00:38:58
Message-Id: 1511397524.f1dcb260fe9ccf807bfe46939a48d8f585ab2311.jstein@gentoo
1 commit: f1dcb260fe9ccf807bfe46939a48d8f585ab2311
2 Author: Jonas Stein <jstein <AT> gentoo <DOT> org>
3 AuthorDate: Thu Nov 23 00:32:08 2017 +0000
4 Commit: Jonas Stein <jstein <AT> gentoo <DOT> org>
5 CommitDate: Thu Nov 23 00:38:44 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f1dcb260
7
8 app-office/lyx: Fix fdo, eutils, die
9
10 migrate from 'fdo-mime' to 'xdg'
11 let eapi helper die on its own
12 removed obsolete eutils
13
14 Package-Manager: Portage-2.3.15, Repoman-2.3.5
15
16 app-office/lyx/Manifest | 2 +-
17 app-office/lyx/lyx-2.2.3-r2.ebuild | 194 +++++++++++++++++++++++++++++++++++++
18 2 files changed, 195 insertions(+), 1 deletion(-)
19
20 diff --git a/app-office/lyx/Manifest b/app-office/lyx/Manifest
21 index 040ea868330..6a9cbfad5be 100644
22 --- a/app-office/lyx/Manifest
23 +++ b/app-office/lyx/Manifest
24 @@ -1,4 +1,4 @@
25 DIST lyx-2.0.8.1.tar.xz 10481988 SHA256 fa0a9c6070554e0d12d24e9b3c4a1e5fc2ee853b3fbe83e2a415635cdc973c59 SHA512 17e313d3118dfe439f5251384f2fffdb45ffef5ec515953b7af0762d35c8e156a9338de698cea91cf8b3cedca1fc08364d8f3c50c9345f304d57004af695f901 WHIRLPOOL 6a9ef2df39861d373e1c6288f5443f910632a09ed4d84e409efe06459f2f39d3c30462b3a26aafe37c5216b765882e7ab5189e7d164b71def97f50877784754c
26 DIST lyx-2.1.5.tar.xz 10361112 SHA256 2e677591aebdd484efb7d2920357f1358f9525ab1feaa59a63a8cf92b7ee2cf3 SHA512 6f8c62ff96458d0c8c8057ae1e587be4c63bd3bdf2d4f095c24d447017034eda8c6b645efbd258f0956a9bbfe5fde2f90df36515be7b8a94cb63674bc3a58672 WHIRLPOOL 46ee376a7ef9594d22c0c5385e07221dbc5fb3ae1c8e3e754cbc11f53d665d2c9db66a250716fc03384f23ec7133556cca0c500555c471bb7be288c47fc13db5
27 DIST lyx-2.2.2.tar.xz 15490148 SHA256 a85c3d7412c4069f8a1f5af4eb172948ae9a50394602f6318ab5c8e990aa5568 SHA512 5057a06f0c37cb2beadb92414eec495ba0619f6c8a9fb5372a9feb90fe0d8bf850de5c94bbf618c8e27bd64404ae6687c48ee24aa6e1bd35580eb3b77d71d45e WHIRLPOOL 0962289b07f767fee7eb7a9b9ae4da99f04a8c3e63f3fe7d4db798bc339772921534e7b1caefc3c0812cc815995d272dee8e365a7c357965acbebd5d6a1930c3
28 -DIST lyx-2.2.3.tar.xz 15501856 SHA256 4fcaeb7c202472d9ea21bf826fb30541015fef33e7217eda2be2b5d589c82b57 SHA512 b5a4a16b22680022651a0f3911c2c24bcd3541a573e672e541cb0af6572089e4b0e0ec1cafb40850e75c377e7da5b286d0314886e0c57d55f57645d8e4a07708 WHIRLPOOL c8054e4102189ab435bbbaec0dff0d4c5be4df781b4e1dd664caa87c231803b6a2bd6e89a92b333eae24884771932912a5df046adb7f782a6548a2c4c3b3219a
29 +DIST lyx-2.2.3.tar.xz 15501856 BLAKE2B 08606f0c18d9cb5891bd7d612361597e3efc7e7855f7607c2620f10ddb22b7078d5085f725911496198d2d8a47ece54cbfe67cfbf4ec8eb15450271cd133b095 SHA512 b5a4a16b22680022651a0f3911c2c24bcd3541a573e672e541cb0af6572089e4b0e0ec1cafb40850e75c377e7da5b286d0314886e0c57d55f57645d8e4a07708
30
31 diff --git a/app-office/lyx/lyx-2.2.3-r2.ebuild b/app-office/lyx/lyx-2.2.3-r2.ebuild
32 new file mode 100644
33 index 00000000000..d1fbcd95e53
34 --- /dev/null
35 +++ b/app-office/lyx/lyx-2.2.3-r2.ebuild
36 @@ -0,0 +1,194 @@
37 +# Copyright 1999-2017 Gentoo Foundation
38 +# Distributed under the terms of the GNU General Public License v2
39 +
40 +EAPI=6
41 +
42 +PYTHON_COMPAT=( python2_7 )
43 +inherit gnome2-utils xdg flag-o-matic font python-single-r1 qmake-utils toolchain-funcs
44 +
45 +MY_P="${P/_}"
46 +
47 +S="${WORKDIR}/${MY_P}"
48 +FONT_S="${S}/lib/fonts"
49 +FONT_SUFFIX="ttf"
50 +DESCRIPTION="WYSIWYM frontend for LaTeX, DocBook, etc."
51 +HOMEPAGE="https://www.lyx.org/"
52 +SRC_URI="ftp://ftp.lyx.org/pub/lyx/stable/2.2.x/${MY_P}.tar.xz
53 + ftp://ftp.lyx.org/pub/lyx/devel/lyx-2.2/${MY_P}/${MY_P}.tar.xz"
54 +
55 +LICENSE="GPL-2"
56 +SLOT="0"
57 +KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x64-macos ~x86-macos"
58 +IUSE="aspell cups debug docbook dia dot enchant gnumeric html +hunspell +latex monolithic-build nls +qt5 rcs rtf subversion svg"
59 +
60 +LANGS="ar ca cs da de el en es eu fi fr gl he hu ia id it ja nb nn pl pt_BR pt_PT ro ru sk sr sv tr uk zh_CN zh_TW"
61 +
62 +for X in ${LANGS}; do
63 + IUSE="${IUSE} linguas_${X}"
64 +done
65 +
66 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
67 +
68 +RDEPEND="${PYTHON_DEPS}
69 + dev-libs/boost:=
70 + dev-texlive/texlive-fontsextra
71 + sys-apps/file
72 + sys-libs/zlib
73 + virtual/imagemagick-tools[png,svg?]
74 + aspell? ( app-text/aspell )
75 + cups? ( net-print/cups )
76 + dia? ( app-office/dia )
77 + docbook? ( app-text/sgmltools-lite )
78 + dot? ( media-gfx/graphviz )
79 + enchant? ( app-text/enchant )
80 + gnumeric? ( app-office/gnumeric )
81 + html? ( dev-tex/html2latex )
82 + hunspell? ( app-text/hunspell )
83 + latex? (
84 + app-text/dvipng
85 + app-text/ghostscript-gpl
86 + app-text/noweb
87 + app-text/ps2eps
88 + app-text/texlive
89 + dev-tex/chktex
90 + dev-tex/dvipost
91 + dev-texlive/texlive-fontsrecommended
92 + dev-texlive/texlive-latexextra
93 + dev-texlive/texlive-pictures
94 + || ( dev-texlive/texlive-mathscience dev-texlive/texlive-science )
95 + || ( dev-texlive/texlive-plaingeneric dev-texlive/texlive-genericextra )
96 + || (
97 + dev-tex/hevea
98 + dev-tex/latex2html
99 + dev-tex/tex4ht[java]
100 + dev-tex/tth
101 + )
102 + )
103 + linguas_he? ( dev-tex/culmus-latex )
104 + !qt5? (
105 + dev-qt/qtcore:4
106 + dev-qt/qtgui:4
107 + )
108 + qt5? (
109 + dev-qt/qtcore:5
110 + dev-qt/qtgui:5
111 + dev-qt/qtsvg:5
112 + dev-qt/qtwidgets:5
113 + )
114 + rcs? ( dev-vcs/rcs )
115 + rtf? (
116 + app-text/unrtf
117 + dev-tex/html2latex
118 + dev-tex/latex2rtf
119 + )
120 + subversion? ( dev-vcs/subversion )
121 + svg? ( || ( gnome-base/librsvg media-gfx/inkscape ) )
122 +"
123 +DEPEND="${RDEPEND}
124 + virtual/pkgconfig
125 + nls? ( sys-devel/gettext )
126 + !qt5? ( dev-qt/qtsvg:4 )
127 + qt5? (
128 + dev-qt/qtconcurrent:5
129 + dev-qt/qtx11extras:5
130 + )
131 +"
132 +
133 +DOCS=( ANNOUNCE NEWS README RELEASE-NOTES UPGRADING )
134 +
135 +PATCHES=( "${FILESDIR}"/2.1-python.patch )
136 +
137 +pkg_setup() {
138 + python-single-r1_pkg_setup
139 + font_pkg_setup
140 +}
141 +
142 +src_prepare() {
143 + default
144 + sed "s:python -tt:${EPYTHON} -tt:g" -i lib/configure.py || die
145 +}
146 +
147 +src_configure() {
148 + tc-export CXX
149 + #bug 221921
150 + export VARTEXFONTS=${T}/fonts
151 +
152 + econf \
153 + $(use_with aspell) \
154 + $(use_enable debug) \
155 + $(use_with enchant) \
156 + $(use_with hunspell) \
157 + $(use_enable monolithic-build) \
158 + $(use_enable nls) \
159 + $(use_enable qt5) \
160 + --with-qt-dir=$(usex qt5 $(qt5_get_libdir)/qt5 $(qt4_get_libdir)) \
161 + --disable-stdlib-debug \
162 + --without-included-boost \
163 + --with-packaging=posix
164 +}
165 +
166 +src_install() {
167 + default
168 +
169 + if use linguas_he ; then
170 + echo "\bind_file cua" > "${T}"/hebrew.bind
171 + echo "\bind \"F12\" \"language hebrew\"" >> "${T}"/hebrew.bind
172 +
173 + insinto /usr/share/lyx/bind
174 + doins "${T}"/hebrew.bind
175 + fi
176 +
177 + newicon -s 32 "${S}/development/Win32/packaging/icons/lyx_32x32.png" ${PN}.png
178 + doicon -s 48 "${S}/lib/images/lyx.png"
179 + doicon -s scalable "${S}/lib/images/lyx.svg"
180 +
181 + # fix for bug 91108
182 + if use latex ; then
183 + dosym ../../../lyx/tex /usr/share/texmf-site/tex/latex/lyx
184 + fi
185 +
186 + # fonts needed for proper math display, see also bug #15629
187 + font_src_install
188 +
189 + python_fix_shebang "${ED}"/usr/share/${PN}
190 +
191 + if use hunspell ; then
192 + dosym ../myspell /usr/share/lyx/dicts
193 + dosym ../myspell /usr/share/lyx/thes
194 + fi
195 +}
196 +
197 +pkg_preinst() {
198 + gnome2_icon_savelist
199 +}
200 +
201 +pkg_postinst() {
202 + font_pkg_postinst
203 + gnome2_icon_cache_update
204 + xdg_desktop_database_update
205 +
206 + # fix for bug 91108
207 + if use latex ; then
208 + texhash
209 + fi
210 +
211 + # instructions for RTL support. See also bug 168331.
212 + if use linguas_he || use linguas_ar; then
213 + elog
214 + elog "Enabling RTL support in LyX:"
215 + elog "If you intend to use a RTL language (such as Hebrew or Arabic)"
216 + elog "You must enable RTL support in LyX. To do so start LyX and go to"
217 + elog "Tools->Preferences->Language settings->Language"
218 + elog "and make sure the \"Right-to-left language support\" is checked"
219 + elog
220 + fi
221 +}
222 +
223 +pkg_postrm() {
224 + gnome2_icon_cache_update
225 + xdg_desktop_database_update
226 +
227 + if use latex ; then
228 + texhash
229 + fi
230 +}