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.5.6.ebuild
Date: Tue, 05 Aug 2008 07:51:18
Message-Id: E1KQHK7-0003Tw-Av@stork.gentoo.org
1 aballier 08/08/05 07:51:15
2
3 Modified: ChangeLog
4 Added: lyx-1.5.6.ebuild
5 Log:
6 version bump, thanks Pavel.
7 (Portage version: 2.2_rc6/cvs/Linux 2.6.25.7 x86_64)
8
9 Revision Changes Path
10 1.142 app-office/lyx/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/lyx/ChangeLog?rev=1.142&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/lyx/ChangeLog?rev=1.142&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/lyx/ChangeLog?r1=1.141&r2=1.142
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/app-office/lyx/ChangeLog,v
19 retrieving revision 1.141
20 retrieving revision 1.142
21 diff -u -r1.141 -r1.142
22 --- ChangeLog 3 Aug 2008 10:44:01 -0000 1.141
23 +++ ChangeLog 5 Aug 2008 07:51:14 -0000 1.142
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.141 2008/08/03 10:44:01 ulm Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/app-office/lyx/ChangeLog,v 1.142 2008/08/05 07:51:14 aballier Exp $
29 +
30 +*lyx-1.5.6 (05 Aug 2008)
31 +
32 + 05 Aug 2008; Alexis Ballier <aballier@g.o> +lyx-1.5.6.ebuild:
33 + version bump, thanks Pavel.
34
35 03 Aug 2008; Ulrich Mueller <ulm@g.o> metadata.xml:
36 Add USE flag description to metadata wrt GLEP 56.
37
38
39
40 1.1 app-office/lyx/lyx-1.5.6.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/lyx/lyx-1.5.6.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/lyx/lyx-1.5.6.ebuild?rev=1.1&content-type=text/plain
44
45 Index: lyx-1.5.6.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.5.6.ebuild,v 1.1 2008/08/05 07:51:14 aballier Exp $
50
51 EAPI=1
52
53 inherit qt4 eutils flag-o-matic font toolchain-funcs
54
55 MY_P="${P/_}"
56 S="${WORKDIR}/${MY_P}"
57 FONT_P="latex-xft-fonts-0.1"
58 FONT_S="${WORKDIR}/${FONT_P}"
59 DESCRIPTION="WYSIWYM frontend for LaTeX, DocBook, etc."
60 HOMEPAGE="http://www.lyx.org/"
61 SRC_URI="ftp://ftp.lyx.org/pub/lyx/stable/${P}.tar.bz2
62 ftp://ftp.lyx.org/pub/lyx/contrib/${FONT_P}.tar.gz
63 linguas_he? (
64 http://cs.haifa.ac.il/~dekelts/lyx/files/hebrew.bind
65 http://cs.haifa.ac.il/~dekelts/lyx/files/preferences
66 )"
67
68 LICENSE="GPL-2"
69 SLOT="0"
70 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
71 IUSE="cups debug nls linguas_he latex"
72 RESTRICT="test"
73
74 RDEPEND="|| ( ( x11-libs/qt-gui x11-libs/qt-core ) =x11-libs/qt-4.3*:4 )
75 x11-libs/libXrandr
76 x11-libs/libXcursor
77 x11-libs/libXrender
78 x11-libs/libXfixes
79 x11-libs/libXext
80 x11-libs/libSM
81 x11-libs/libICE
82 x11-libs/libX11
83 x11-libs/libXau
84 x11-libs/libXdmcp
85 media-gfx/imagemagick
86 media-libs/libpng
87 media-libs/fontconfig
88 media-libs/freetype
89 dev-libs/libxml2
90 app-text/aiksaurus
91 app-text/sgmltools-lite
92 virtual/aspell-dict
93 >=dev-lang/python-2.3.4
94 cups? ( virtual/lpr )
95 latex? (
96 virtual/latex-base
97 virtual/ghostscript
98 app-text/noweb
99 dev-tex/dvipost
100 dev-tex/chktex
101 || (
102 dev-tex/latex2html
103 dev-tex/tth
104 dev-tex/hevea
105 dev-tex/tex4ht
106 )
107 )
108 linguas_he? ( dev-tex/ivritex )"
109
110 DEPEND="${RDEPEND}
111 x11-proto/xproto
112 nls? ( sys-devel/gettext )"
113
114 src_unpack() {
115 unpack ${A}
116 cd "${S}"
117 # bug #125309
118 epatch "${FILESDIR}"/${PN}-1.5.0-gentoo.patch || die
119 }
120
121 src_compile() {
122 append-flags "$(test-flags -fno-stack-protector -fno-stack-protector-all)"
123 replace-flags "-Os" "-O2"
124 tc-export CXX
125
126 unset LINGUAS
127 econf \
128 $(use_enable nls) \
129 $(use_enable debug) \
130 --with-aspell || die "econf failed"
131 emake || die "emake failed"
132 }
133
134 src_install() {
135 local mylinguas="${LINGUAS}"
136
137 unset LINGUAS
138 emake DESTDIR="${D}" install || die "emake install failed"
139
140 LINGUAS="${mylinguas}"
141
142 dodoc ANNOUNCE ChangeLog NEWS README RELEASE-NOTES UPGRADING
143
144 if use linguas_he ; then
145 insinto /usr/share/lyx/bind
146 doins "${DISTDIR}"/hebrew.bind
147 dodoc "${DISTDIR}"/preferences
148 fi
149
150 domenu "${FILESDIR}"/lyx.desktop
151
152 # install the latex-xft fonts, which should fix
153 # the problems outlined in bug #15629
154 # <obz@g.o>
155 cd "${WORKDIR}"/${FONT_P}
156 emake DESTDIR="${D}" install || die "Font installation failed"
157
158 font_src_install
159
160 # fix for bug 91108
161 if use latex ; then
162 dosym ../../../lyx/tex /usr/share/texmf/tex/latex/lyx
163 fi
164 }
165
166 pkg_postinst() {
167 font_pkg_postinst
168
169 # fix for bug 91108
170 if use latex ; then
171 texhash
172 fi
173
174 if use linguas_he ; then
175 elog
176 elog "How to use Hebrew in LyX:"
177 elog "bunzip2 /usr/share/doc/${PF}/preferences.bz2 into ~/.lyx/preferences"
178 elog "or, read http://cs.haifa.ac.il/~dekelts/lyx/instructions2.html"
179 elog "for instructions on using lyx's own preferences dialog to equal effect."
180 elog
181 fi
182
183 elog
184 elog "There are known issues in the case of 1.4->1.5 config files transition."
185 elog "In case your File->Export list is incomplete try reconfiguring or even"
186 elog "remove the old configuration files in ~/.lyx ."
187 elog
188 }
189
190 pkg_postrm() {
191 if use latex ; then
192 texhash
193 fi
194 }