Gentoo Archives: gentoo-commits

From: "Alexis Ballier (aballier)" <aballier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-office/lyx: lyx-2.0.4.ebuild ChangeLog
Date: Tue, 03 Jul 2012 13:07:15
Message-Id: 20120703130654.20A412004B@flycatcher.gentoo.org
1 aballier 12/07/03 13:06:54
2
3 Modified: ChangeLog
4 Added: lyx-2.0.4.ebuild
5 Log:
6 version bump, thanks pavel
7
8 (Portage version: 2.2.0_alpha115/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.268 app-office/lyx/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/lyx/ChangeLog?rev=1.268&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/lyx/ChangeLog?rev=1.268&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/lyx/ChangeLog?r1=1.267&r2=1.268
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-office/lyx/ChangeLog,v
20 retrieving revision 1.267
21 retrieving revision 1.268
22 diff -u -r1.267 -r1.268
23 --- ChangeLog 1 Jul 2012 14:34:10 -0000 1.267
24 +++ ChangeLog 3 Jul 2012 13:06:54 -0000 1.268
25 @@ -1,6 +1,11 @@
26 # ChangeLog for app-office/lyx
27 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/app-office/lyx/ChangeLog,v 1.267 2012/07/01 14:34:10 armin76 Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/app-office/lyx/ChangeLog,v 1.268 2012/07/03 13:06:54 aballier Exp $
30 +
31 +*lyx-2.0.4 (03 Jul 2012)
32 +
33 + 03 Jul 2012; Alexis Ballier <aballier@g.o> +lyx-2.0.4.ebuild:
34 + version bump, thanks pavel
35
36 01 Jul 2012; Raúl Porcel <armin76@g.o> lyx-2.0.3.ebuild:
37 ia64 stable
38
39
40
41 1.1 app-office/lyx/lyx-2.0.4.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/lyx/lyx-2.0.4.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/lyx/lyx-2.0.4.ebuild?rev=1.1&content-type=text/plain
45
46 Index: lyx-2.0.4.ebuild
47 ===================================================================
48 # Copyright 1999-2012 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/app-office/lyx/lyx-2.0.4.ebuild,v 1.1 2012/07/03 13:06:54 aballier Exp $
51
52 EAPI=3
53
54 PYTHON_DEPEND="2"
55
56 inherit gnome2-utils qt4-r2 eutils flag-o-matic font python toolchain-funcs
57
58 MY_P="${P/_}"
59
60 S="${WORKDIR}/${MY_P}"
61 FONT_S="${S}/lib/fonts"
62 FONT_SUFFIX="ttf"
63 DESCRIPTION="WYSIWYM frontend for LaTeX, DocBook, etc."
64 HOMEPAGE="http://www.lyx.org/"
65 SRC_URI="ftp://ftp.lyx.org/pub/lyx/stable/2.0.x/${P}.tar.xz"
66 #SRC_URI="ftp://ftp.lyx.org/pub/lyx/devel/lyx-2.0/rc3/${MY_P}.tar.xz"
67
68 LICENSE="GPL-2"
69 SLOT="0"
70 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x64-macos ~x86-macos"
71 IUSE="cups debug nls +latex xetex luatex monolithic-build html rtf dot docbook dia subversion rcs svg gnumeric +hunspell aspell enchant"
72
73 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"
74
75 for X in ${LANGS}; do
76 IUSE="${IUSE} linguas_${X}"
77 done
78
79 COMMONDEPEND="x11-libs/qt-gui:4
80 x11-libs/qt-core:4
81 dev-libs/libxml2
82 media-libs/fontconfig
83 media-libs/freetype
84 >=dev-libs/boost-1.34"
85
86 RDEPEND="${COMMONDEPEND}
87 dev-texlive/texlive-fontsextra
88 || ( media-gfx/imagemagick[png] media-gfx/graphicsmagick[png] )
89 cups? ( net-print/cups )
90 latex? (
91 virtual/latex-base
92 app-text/ghostscript-gpl
93 app-text/noweb
94 app-text/dvipng
95 dev-tex/dvipost
96 dev-tex/chktex
97 app-text/ps2eps
98 dev-texlive/texlive-latexextra
99 dev-texlive/texlive-pictures
100 dev-texlive/texlive-science
101 dev-texlive/texlive-genericextra
102 dev-texlive/texlive-fontsrecommended
103 || (
104 dev-tex/latex2html
105 dev-tex/tth
106 dev-tex/hevea
107 dev-tex/tex4ht
108 )
109 )
110 xetex? ( dev-texlive/texlive-xetex )
111 luatex? ( >=dev-texlive/texlive-luatex-2010 )
112 html? ( dev-tex/html2latex )
113 rtf? (
114 dev-tex/latex2rtf
115 app-text/unrtf
116 dev-tex/html2latex
117 )
118 linguas_he? ( dev-tex/culmus-latex )
119 docbook? ( app-text/sgmltools-lite )
120 dot? ( media-gfx/graphviz )
121 dia? ( app-office/dia )
122 subversion? ( <dev-vcs/subversion-1.7.0 )
123 rcs? ( dev-vcs/rcs )
124 svg? ( || ( media-gfx/imagemagick[svg] media-gfx/graphicsmagick[svg] )
125 || ( gnome-base/librsvg media-gfx/inkscape )
126 )
127 gnumeric? ( app-office/gnumeric )
128 hunspell? ( app-text/hunspell )
129 aspell? ( app-text/aspell )
130 enchant? ( app-text/enchant )"
131
132 DEPEND="${COMMONDEPEND}
133 sys-devel/bc
134 virtual/pkgconfig
135 nls? ( sys-devel/gettext )"
136
137 pkg_setup() {
138 python_set_active_version 2
139 font_pkg_setup
140 }
141
142 src_prepare() {
143 epatch "${FILESDIR}"/2.0-python.patch
144 echo "#!/bin/sh" > config/py-compile
145 sed "s:python -tt:$(PYTHON) -tt:g" -i lib/configure.py || die
146 }
147
148 src_configure() {
149 tc-export CXX
150 #bug 221921
151 export VARTEXFONTS=${T}/fonts
152
153 econf \
154 $(use_enable nls) \
155 $(use_enable debug) \
156 $(use_enable monolithic-build) \
157 $(use_with hunspell) \
158 $(use_with aspell) \
159 $(use_with enchant) \
160 --without-included-boost \
161 --disable-stdlib-debug \
162 --with-packaging=posix
163 }
164
165 src_install() {
166 emake DESTDIR="${D}" install || die "emake install failed"
167
168 dodoc ANNOUNCE NEWS README RELEASE-NOTES UPGRADING "${FONT_S}"/*.txt || die
169
170 if use linguas_he ; then
171 echo "\bind_file cua" > "${T}"/hebrew.bind
172 echo "\bind \"F12\" \"language hebrew\"" >> "${T}"/hebrew.bind
173
174 insinto /usr/share/lyx/bind
175 doins "${T}"/hebrew.bind || die
176 fi
177
178 newicon -s 32 "$S/development/Win32/packaging/icons/lyx_32x32.png" ${PN}.png
179 make_desktop_entry ${PN} "LyX" "${PN}" "Office" "MimeType=application/x-lyx;"
180
181 # fix for bug 91108
182 if use latex ; then
183 dosym ../../../lyx/tex /usr/share/texmf/tex/latex/lyx || die
184 fi
185
186 # fonts needed for proper math display, see also bug #15629
187 font_src_install
188
189 python_convert_shebangs -r 2 "${ED}"/usr/share/${PN}
190
191 if use hunspell ; then
192 dosym /usr/share/myspell /usr/share/lyx/dicts
193 dosym /usr/share/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
205 # fix for bug 91108
206 if use latex ; then
207 texhash
208 fi
209
210 # instructions for RTL support. See also bug 168331.
211 if use linguas_he || use linguas_ar; then
212 elog
213 elog "Enabling RTL support in LyX:"
214 elog "If you intend to use a RTL language (such as Hebrew or Arabic)"
215 elog "You must enable RTL support in LyX. To do so start LyX and go to"
216 elog "Tools->Preferences->Language settings->Language"
217 elog "and make sure the \"Right-to-left language support\" is checked"
218 elog
219 fi
220 }
221
222 pkg_postrm() {
223 gnome2_icon_cache_update
224
225 if use latex ; then
226 texhash
227 fi
228 }