Gentoo Archives: gentoo-commits

From: Pacho Ramos <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-office/lyx/
Date: Sat, 23 Jan 2021 08:36:15
Message-Id: 1611390961.5cc7cb2d1e023d9ae491e883a4954ebaba19ebce.pacho@gentoo
1 commit: 5cc7cb2d1e023d9ae491e883a4954ebaba19ebce
2 Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jan 23 08:36:01 2021 +0000
4 Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
5 CommitDate: Sat Jan 23 08:36:01 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5cc7cb2d
7
8 app-office/lyx: Bump to 2.3.6.1
9
10 Closes: https://bugs.gentoo.org/765586
11 Package-Manager: Portage-3.0.13, Repoman-3.0.2
12 Signed-off-by: Pacho Ramos <pacho <AT> gentoo.org>
13
14 app-office/lyx/Manifest | 1 +
15 app-office/lyx/lyx-2.3.6.1.ebuild | 172 ++++++++++++++++++++++++++++++++++++++
16 2 files changed, 173 insertions(+)
17
18 diff --git a/app-office/lyx/Manifest b/app-office/lyx/Manifest
19 index 442dc33d944..e20b033ee95 100644
20 --- a/app-office/lyx/Manifest
21 +++ b/app-office/lyx/Manifest
22 @@ -1 +1,2 @@
23 DIST lyx-2.3.5.2.tar.xz 16139804 BLAKE2B e6ea7b2fbec330bfe31b8f88e0a5cc25ff65991421f99b04e98d26945bba48a95f389e2a7e6023d4c9720d43f80136682eb40ac4be51799f01e038e4b0fad206 SHA512 90c5459ad0a77568d588e05a360482985988382927583b14914d6a23b788756e957d0237c18b9ab0681dfc2ad7aa34d21e97304e3a74d19ef047c38f692fba03
24 +DIST lyx-2.3.6.1.tar.xz 16242608 BLAKE2B d59c6db79d7760902f93405e3737974fa9c6bd79c5ab4b02010021532903c76a77701f1f99a0838b4379c548f3f37dcdd9eeb492b733c4162162d868d1d92970 SHA512 233f6c54d4a036ad12f33c6705810bfb99747bdbd015550a8a0a9d7b664d3be50a06dc337191b820c42de4407c5f790efa50c706a45fb2260a71f772fb22c872
25
26 diff --git a/app-office/lyx/lyx-2.3.6.1.ebuild b/app-office/lyx/lyx-2.3.6.1.ebuild
27 new file mode 100644
28 index 00000000000..f6c61446572
29 --- /dev/null
30 +++ b/app-office/lyx/lyx-2.3.6.1.ebuild
31 @@ -0,0 +1,172 @@
32 +# Copyright 1999-2021 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +PYTHON_COMPAT=( python3_{6..9} )
38 +
39 +MY_P="${P/_}"
40 +inherit desktop flag-o-matic font python-single-r1 qmake-utils toolchain-funcs xdg-utils
41 +
42 +DESCRIPTION="WYSIWYM frontend for LaTeX, DocBook, etc."
43 +HOMEPAGE="https://www.lyx.org/"
44 +SRC_URI="ftp://ftp.lyx.org/pub/lyx/stable/2.3.x/${MY_P}.tar.xz
45 + ftp://ftp.lyx.org/pub/lyx/devel/lyx-2.3/${MY_P}/${MY_P}.tar.xz"
46 +
47 +LICENSE="GPL-2"
48 +SLOT="0"
49 +KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86 ~x64-macos"
50 +IUSE="aspell cups debug dia dot enchant gnumeric html +hunspell +latex monolithic-build nls rcs rtf svg l10n_he"
51 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
52 +
53 +BDEPEND="
54 + virtual/pkgconfig
55 + nls? ( sys-devel/gettext )
56 +"
57 +RDEPEND="${PYTHON_DEPS}
58 + app-text/mythes
59 + dev-libs/boost:=
60 + dev-qt/qtcore:5
61 + dev-qt/qtgui:5
62 + dev-qt/qtsvg:5
63 + dev-qt/qtwidgets:5
64 + dev-qt/qtx11extras:5
65 + dev-texlive/texlive-fontsextra
66 + sys-apps/file
67 + sys-libs/zlib
68 + virtual/imagemagick-tools[png,svg?]
69 + aspell? ( app-text/aspell )
70 + cups? ( net-print/cups )
71 + dia? ( app-office/dia )
72 + dot? ( media-gfx/graphviz )
73 + enchant? ( app-text/enchant:2 )
74 + gnumeric? ( app-office/gnumeric )
75 + html? ( dev-tex/html2latex )
76 + hunspell? ( app-text/hunspell )
77 + l10n_he? ( dev-tex/culmus-latex )
78 + latex? (
79 + app-text/dvipng
80 + app-text/ghostscript-gpl
81 + app-text/ps2eps
82 + app-text/texlive
83 + dev-texlive/texlive-fontsrecommended
84 + dev-texlive/texlive-latexextra
85 + dev-texlive/texlive-mathscience
86 + dev-texlive/texlive-pictures
87 + dev-texlive/texlive-plaingeneric
88 + || (
89 + dev-tex/hevea
90 + dev-tex/latex2html
91 + dev-tex/tex4ht[java]
92 + dev-tex/tth
93 + )
94 + )
95 + rcs? ( dev-vcs/rcs )
96 + rtf? (
97 + app-text/unrtf
98 + dev-tex/html2latex
99 + dev-tex/latex2rtf
100 + )
101 + svg? ( || ( gnome-base/librsvg media-gfx/inkscape ) )
102 +"
103 +DEPEND="${RDEPEND}
104 + dev-qt/qtconcurrent:5
105 +"
106 +
107 +DOCS=( ANNOUNCE NEWS README RELEASE-NOTES UPGRADING )
108 +
109 +S="${WORKDIR}/${MY_P}"
110 +
111 +FONT_S="${S}/lib/fonts"
112 +FONT_SUFFIX="ttf"
113 +
114 +pkg_setup() {
115 + python-single-r1_pkg_setup
116 + font_pkg_setup
117 +}
118 +
119 +src_prepare() {
120 + default
121 + sed "s:python -tt:${EPYTHON} -tt:g" -i lib/configure.py || die
122 +}
123 +
124 +src_configure() {
125 + tc-export CXX
126 + #bug 221921
127 + export VARTEXFONTS="${T}"/fonts
128 +
129 + econf \
130 + $(use_with aspell) \
131 + $(use_enable debug) \
132 + $(use_with enchant) \
133 + $(use_with hunspell) \
134 + $(use_enable monolithic-build) \
135 + $(use_enable nls) \
136 + --enable-qt5 \
137 + --with-qt-dir=$(qt5_get_libdir)/qt5 \
138 + --disable-stdlib-debug \
139 + --without-included-boost \
140 + --with-packaging=posix
141 +}
142 +
143 +src_install() {
144 + default
145 +
146 + if use l10n_he ; then
147 + echo "\bind_file cua" > "${T}"/hebrew.bind || die
148 + echo "\bind \"F12\" \"language hebrew\"" >> "${T}"/hebrew.bind || die
149 +
150 + insinto /usr/share/lyx/bind
151 + doins "${T}"/hebrew.bind
152 + fi
153 +
154 + newicon -s 32 "development/Win32/packaging/icons/lyx_32x32.png" ${PN}.png
155 + doicon -s 48 "lib/images/lyx.png"
156 + doicon -s scalable "lib/images/lyx.svg"
157 +
158 + # fix for bug 91108
159 + if use latex ; then
160 + dosym ../../../lyx/tex /usr/share/texmf-site/tex/latex/lyx
161 + fi
162 +
163 + # fonts needed for proper math display, see also bug #15629
164 + font_src_install
165 +
166 + python_fix_shebang "${ED}"/usr/share/${PN}
167 +
168 + if use hunspell ; then
169 + dosym ../myspell /usr/share/lyx/dicts
170 + dosym ../myspell /usr/share/lyx/thes
171 + fi
172 +}
173 +
174 +pkg_postinst() {
175 + font_pkg_postinst
176 + xdg_icon_cache_update
177 + xdg_desktop_database_update
178 +
179 + # fix for bug 91108
180 + if use latex ; then
181 + texhash || die
182 + fi
183 +
184 + # instructions for RTL support. See also bug 168331.
185 + if use l10n_he || has he ${LINGUAS} || has ar ${LINGUAS} ; then
186 + elog
187 + elog "Enabling RTL support in LyX:"
188 + elog "If you intend to use a RTL language (such as Hebrew or Arabic)"
189 + elog "You must enable RTL support in LyX. To do so start LyX and go to"
190 + elog "Tools->Preferences->Language settings->Language"
191 + elog "and make sure the \"Right-to-left language support\" is checked"
192 + elog
193 + fi
194 +}
195 +
196 +pkg_postrm() {
197 + xdg_icon_cache_update
198 + xdg_desktop_database_update
199 +
200 + if use latex ; then
201 + texhash || die
202 + fi
203 +}