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.0_rc5.ebuild
Date: Wed, 29 Oct 2008 08:58:17
Message-Id: E1Kv6sY-00028a-F6@stork.gentoo.org
1 aballier 08/10/29 08:58:14
2
3 Modified: ChangeLog
4 Added: lyx-1.6.0_rc5.ebuild
5 Log:
6 Version bump, thanks Pavel
7 (Portage version: 2.2_rc12/cvs/Linux 2.6.27.3 x86_64)
8
9 Revision Changes Path
10 1.149 app-office/lyx/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/lyx/ChangeLog?rev=1.149&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/lyx/ChangeLog?rev=1.149&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/lyx/ChangeLog?r1=1.148&r2=1.149
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/app-office/lyx/ChangeLog,v
19 retrieving revision 1.148
20 retrieving revision 1.149
21 diff -u -r1.148 -r1.149
22 --- ChangeLog 24 Oct 2008 08:39:40 -0000 1.148
23 +++ ChangeLog 29 Oct 2008 08:58:14 -0000 1.149
24 @@ -1,6 +1,11 @@
25 # ChangeLog for app-office/lyx
26 # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/app-office/lyx/ChangeLog,v 1.148 2008/10/24 08:39:40 aballier Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/app-office/lyx/ChangeLog,v 1.149 2008/10/29 08:58:14 aballier Exp $
29 +
30 +*lyx-1.6.0_rc5 (29 Oct 2008)
31 +
32 + 29 Oct 2008; Alexis Ballier <aballier@g.o> +lyx-1.6.0_rc5.ebuild:
33 + Version bump, thanks Pavel
34
35 *lyx-1.6.0_rc4 (24 Oct 2008)
36
37
38
39
40 1.1 app-office/lyx/lyx-1.6.0_rc5.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/lyx/lyx-1.6.0_rc5.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/lyx/lyx-1.6.0_rc5.ebuild?rev=1.1&content-type=text/plain
44
45 Index: lyx-1.6.0_rc5.ebuild
46 ===================================================================
47 # Copyright 1999-2008 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.0_rc5.ebuild,v 1.1 2008/10/29 08:58:14 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.lyx.org/pub/lyx/stable/${P}.tar.bz2 #for stable release
63 #SRC_URI="http://www.lyx.org/~jamatos/lyx-1.6/${MY_P}.tar.bz2 #for betas
64 SRC_URI="ftp://ftp.devel.lyx.org/pub/lyx/pre/${MY_P}.tar.bz2"
65
66 LICENSE="GPL-2"
67 SLOT="0"
68 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
69 IUSE="cups debug nls latex monolithic-build html rtf dot docbook"
70 RESTRICT="test"
71
72 LANGS="ar ca cs de en es eu fi fr gl he hu it ja ko nb nn pl pt ro ru 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 x11-libs/qt-core ) =x11-libs/qt-4.3*:4 )
78 x11-libs/libXrandr
79 x11-libs/libXcursor
80 x11-libs/libXrender
81 x11-libs/libXfixes
82 x11-libs/libXext
83 x11-libs/libSM
84 x11-libs/libICE
85 x11-libs/libX11
86 x11-libs/libXau
87 x11-libs/libXdmcp
88 dev-libs/libxml2
89 app-text/aiksaurus
90 virtual/aspell-dict
91 >=dev-lang/python-2.3.4
92 media-libs/fontconfig
93 media-libs/freetype
94 >=dev-libs/boost-1.34"
95
96 RDEPEND="${COMMONDEPEND}
97 media-gfx/imagemagick
98 cups? ( virtual/lpr )
99 latex? (
100 virtual/latex-base
101 virtual/ghostscript
102 app-text/noweb
103 dev-tex/dvipost
104 dev-tex/chktex
105 || (
106 dev-tex/latex2html
107 dev-tex/tth
108 dev-tex/hevea
109 dev-tex/tex4ht
110 )
111 )
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
122 DEPEND="${COMMONDEPEND}
123 x11-proto/xproto
124 dev-util/pkgconfig
125 nls? ( sys-devel/gettext )"
126
127 src_compile() {
128 tc-export CXX
129 #bug 221921
130 export VARTEXFONTS=${T}/fonts
131
132 if use monolithic-build ; then
133 MONOLITHIC=" --enable-monolithic-boost --enable-monolithic-client \
134 --enable-monolithic-insets --enable-monolithic-mathed \
135 --enable-monolithic-core --enable-monolithic-tex2lyx \
136 --enable-monolithic-frontend-qt4 "
137 fi
138
139 econf \
140 $(use_enable nls) \
141 $(use_enable debug) \
142 $MONOLITHIC \
143 --with-aspell --without-included-boost --disable-stdlib-debug
144 emake || die "emake failed"
145 }
146
147 src_install() {
148 emake DESTDIR="${D}" install || die "emake install failed"
149
150 dodoc ANNOUNCE NEWS README RELEASE-NOTES UPGRADING "${FONT_S}"/*.txt
151
152 if use linguas_he ; then
153 echo "\bind_file cua" > "${T}"/hebrew.bind
154 echo "\bind \"F12\" \"language hebrew\"" >> "${T}"/hebrew.bind
155
156 insinto /usr/share/lyx/bind
157 doins "${T}"/hebrew.bind
158 fi
159
160 doicon ${PN} "$S/development/Win32/packaging/icons/lyx_32x32.png"
161 make_desktop_entry ${PN} "LyX" "/usr/share/pixmaps/lyx_32x32.png" "Office"
162
163 # fix for bug 91108
164 if use latex ; then
165 dosym ../../../lyx/tex /usr/share/texmf/tex/latex/lyx
166 fi
167
168 # fonts needed for proper math display, see also bug #15629
169 font_src_install
170 }
171
172 pkg_postinst() {
173 font_pkg_postinst
174
175 # fix for bug 91108
176 if use latex ; then
177 texhash
178 fi
179
180 # instructions for RTL support. See also bug 168331.
181 if use linguas_he || use linguas_ar; then
182 elog
183 elog "Enabling RTL support in LyX:"
184 elog "If you intend to use a RTL language (such as Hebrew or Arabic)"
185 elog "You must enable RTL support in LyX. To do so start LyX and go to"
186 elog "Tools->Preferences->Language settings->Language"
187 elog "and make sure the \"Right-to-left language support\" is checked"
188 elog
189 fi
190
191 elog
192 elog "This is not stable version of LyX. Expect bugs, crashes and further"
193 elog "fileformat changes. Do not use it for production work."
194 elog
195 }
196
197 pkg_postrm() {
198 if use latex ; then
199 texhash
200 fi
201 }