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: metadata.xml ChangeLog lyx-1.6.2.ebuild
Date: Wed, 25 Mar 2009 07:09:21
Message-Id: E1LmNEl-0000aa-LP@stork.gentoo.org
1 aballier 09/03/25 07:09:19
2
3 Modified: metadata.xml ChangeLog
4 Added: lyx-1.6.2.ebuild
5 Log:
6 version bump, thanks Pavel
7 (Portage version: 2.2_rc27/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.6 app-office/lyx/metadata.xml
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/lyx/metadata.xml?rev=1.6&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/lyx/metadata.xml?rev=1.6&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/lyx/metadata.xml?r1=1.5&r2=1.6
15
16 Index: metadata.xml
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/app-office/lyx/metadata.xml,v
19 retrieving revision 1.5
20 retrieving revision 1.6
21 diff -u -r1.5 -r1.6
22 --- metadata.xml 3 Aug 2008 10:44:01 -0000 1.5
23 +++ metadata.xml 25 Mar 2009 07:09:19 -0000 1.6
24 @@ -13,6 +13,7 @@
25 </maintainer>
26 <use>
27 <flag name='docbook'>Add support for docbook export</flag>
28 + <flag name='dia'>Add support for diagrams (<pkg>app-office/dia</pkg>)</flag>
29 <flag name='dot'>Add support for DOT import (<pkg>media-gfx/graphviz</pkg>)
30 </flag>
31 <flag name='html'>Add support for HTML import</flag>
32
33
34
35 1.164 app-office/lyx/ChangeLog
36
37 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/lyx/ChangeLog?rev=1.164&view=markup
38 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/lyx/ChangeLog?rev=1.164&content-type=text/plain
39 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/lyx/ChangeLog?r1=1.163&r2=1.164
40
41 Index: ChangeLog
42 ===================================================================
43 RCS file: /var/cvsroot/gentoo-x86/app-office/lyx/ChangeLog,v
44 retrieving revision 1.163
45 retrieving revision 1.164
46 diff -u -r1.163 -r1.164
47 --- ChangeLog 9 Jan 2009 18:37:26 -0000 1.163
48 +++ ChangeLog 25 Mar 2009 07:09:19 -0000 1.164
49 @@ -1,6 +1,12 @@
50 # ChangeLog for app-office/lyx
51 # Copyright 2002-2009 Gentoo Foundation; Distributed under the GPL v2
52 -# $Header: /var/cvsroot/gentoo-x86/app-office/lyx/ChangeLog,v 1.163 2009/01/09 18:37:26 josejx Exp $
53 +# $Header: /var/cvsroot/gentoo-x86/app-office/lyx/ChangeLog,v 1.164 2009/03/25 07:09:19 aballier Exp $
54 +
55 +*lyx-1.6.2 (25 Mar 2009)
56 +
57 + 25 Mar 2009; Alexis Ballier <aballier@g.o> metadata.xml,
58 + +lyx-1.6.2.ebuild:
59 + version bump, thanks Pavel
60
61 09 Jan 2009; Joseph Jezak <josejx@g.o> lyx-1.6.0.ebuild,
62 lyx-1.6.1.ebuild:
63
64
65
66 1.1 app-office/lyx/lyx-1.6.2.ebuild
67
68 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/lyx/lyx-1.6.2.ebuild?rev=1.1&view=markup
69 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/lyx/lyx-1.6.2.ebuild?rev=1.1&content-type=text/plain
70
71 Index: lyx-1.6.2.ebuild
72 ===================================================================
73 # Copyright 1999-2009 Gentoo Foundation
74 # Distributed under the terms of the GNU General Public License v2
75 # $Header: /var/cvsroot/gentoo-x86/app-office/lyx/lyx-1.6.2.ebuild,v 1.1 2009/03/25 07:09:19 aballier Exp $
76
77 EAPI=1
78
79 inherit qt4 eutils flag-o-matic font toolchain-funcs
80
81 MY_P="${P/_}"
82
83 S="${WORKDIR}/${MY_P}"
84 FONT_S="${S}/lib/fonts"
85 FONT_SUFFIX="ttf"
86 DESCRIPTION="WYSIWYM frontend for LaTeX, DocBook, etc."
87 HOMEPAGE="http://www.lyx.org/"
88 SRC_URI="ftp://ftp.devel.lyx.org/pub/lyx/stable/${P}.tar.bz2"
89 #SRC_URI="http://www.lyx.org/~jamatos/lyx-1.6/${MY_P}.tar.bz2 #for betas
90 #SRC_URI="ftp://ftp.lyx.org/pub/lyx/stable/${P}.tar.bz2"
91 #SRC_URI="ftp://ftp.devel.lyx.org/pub/lyx/pre/${MY_P}.tar.bz2"
92
93 LICENSE="GPL-2"
94 SLOT="0"
95 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
96 IUSE="cups debug nls latex monolithic-build html rtf dot docbook dia"
97 RESTRICT="test"
98
99 LANGS="ar ca cs de en es eu fi fr gl he hu it ja nb nn pl pt ro ru tr uk zh_CN zh_TW"
100 for X in ${LANGS}; do
101 IUSE="${IUSE} linguas_${X}"
102 done
103
104 COMMONDEPEND="|| ( ( x11-libs/qt-gui x11-libs/qt-core ) =x11-libs/qt-4.3*:4 )
105 x11-libs/libXrandr
106 x11-libs/libXcursor
107 x11-libs/libXrender
108 x11-libs/libXfixes
109 x11-libs/libXext
110 x11-libs/libSM
111 x11-libs/libICE
112 x11-libs/libX11
113 x11-libs/libXau
114 x11-libs/libXdmcp
115 dev-libs/libxml2
116 app-text/aiksaurus
117 virtual/aspell-dict
118 >=dev-lang/python-2.3.4
119 media-libs/fontconfig
120 media-libs/freetype
121 >=dev-libs/boost-1.34"
122
123 RDEPEND="${COMMONDEPEND}
124 || ( dev-texlive/texlive-fontsextra app-text/tetex app-text/ptex )
125 media-gfx/imagemagick
126 cups? ( virtual/lpr )
127 latex? (
128 virtual/latex-base
129 virtual/ghostscript
130 app-text/noweb
131 dev-tex/dvipost
132 dev-tex/chktex
133 || (
134 dev-tex/latex2html
135 dev-tex/tth
136 dev-tex/hevea
137 dev-tex/tex4ht
138 )
139 )
140 html? ( dev-tex/html2latex )
141 rtf? (
142 dev-tex/latex2rtf
143 app-text/unrtf
144 dev-tex/html2latex
145 )
146 linguas_he? ( dev-tex/culmus-latex )
147 docbook? ( app-text/sgmltools-lite )
148 dot? ( media-gfx/graphviz )
149 dia? ( app-office/dia )"
150
151 DEPEND="${COMMONDEPEND}
152 x11-proto/xproto
153 dev-util/pkgconfig
154 nls? ( sys-devel/gettext )"
155
156 #bug 189925
157 QT4_BUILT_WITH_USE_CHECK="png"
158
159 src_compile() {
160 tc-export CXX
161 #bug 221921
162 export VARTEXFONTS=${T}/fonts
163
164 if use monolithic-build ; then
165 MONOLITHIC=" --enable-monolithic-boost --enable-monolithic-client \
166 --enable-monolithic-insets --enable-monolithic-mathed \
167 --enable-monolithic-core --enable-monolithic-tex2lyx \
168 --enable-monolithic-frontend-qt4 "
169 fi
170
171 econf \
172 $(use_enable nls) \
173 $(use_enable debug) \
174 $MONOLITHIC \
175 --with-aspell --without-included-boost --disable-stdlib-debug
176 emake || die "emake failed"
177 }
178
179 src_install() {
180 emake DESTDIR="${D}" install || die "emake install failed"
181
182 dodoc ANNOUNCE NEWS README RELEASE-NOTES UPGRADING "${FONT_S}"/*.txt
183
184 if use linguas_he ; then
185 echo "\bind_file cua" > "${T}"/hebrew.bind
186 echo "\bind \"F12\" \"language hebrew\"" >> "${T}"/hebrew.bind
187
188 insinto /usr/share/lyx/bind
189 doins "${T}"/hebrew.bind
190 fi
191
192 doicon ${PN} "$S/development/Win32/packaging/icons/lyx_32x32.png"
193 make_desktop_entry ${PN} "LyX" "/usr/share/pixmaps/lyx_32x32.png" "Office"
194
195 # fix for bug 91108
196 if use latex ; then
197 dosym ../../../lyx/tex /usr/share/texmf/tex/latex/lyx
198 fi
199
200 # fonts needed for proper math display, see also bug #15629
201 font_src_install
202 }
203
204 pkg_postinst() {
205 font_pkg_postinst
206
207 # fix for bug 91108
208 if use latex ; then
209 texhash
210 fi
211
212 # instructions for RTL support. See also bug 168331.
213 if use linguas_he || use linguas_ar; then
214 elog
215 elog "Enabling RTL support in LyX:"
216 elog "If you intend to use a RTL language (such as Hebrew or Arabic)"
217 elog "You must enable RTL support in LyX. To do so start LyX and go to"
218 elog "Tools->Preferences->Language settings->Language"
219 elog "and make sure the \"Right-to-left language support\" is checked"
220 elog
221 fi
222
223 elog
224 elog "Be warned that LyX 1.6 changed syntax of key-binding functions."
225 elog "If some of usual editation keys stopped working you may need to fix"
226 elog "your private settings of shortcuts done for version 1.5."
227 elog
228 }
229
230 pkg_postrm() {
231 if use latex ; then
232 texhash
233 fi
234 }