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