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