1 # Copyright 1999-2008 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 inherit qt4 eutils flag-o-matic font toolchain-funcs
10 S
="${WORKDIR}/${MY_P}"
11 FONT_P
="latex-xft-fonts-0.1"
12 FONT_S
="${WORKDIR}/${FONT_P}"
13 DESCRIPTION
="WYSIWYM frontend for LaTeX, DocBook, etc."
14 HOMEPAGE
="http://www.lyx.org/"
15 SRC_URI
="ftp://ftp.lyx.org/pub/lyx/stable/${P}.tar.bz2
16 ftp://ftp.lyx.org/pub/lyx/contrib/${FONT_P}.tar.gz
18 http://cs.haifa.ac.il/~dekelts/lyx/files/hebrew.bind
19 http://cs.haifa.ac.il/~dekelts/lyx/files/preferences
24 KEYWORDS
="alpha amd64 hppa ia64 ppc ppc64 sparc x86"
25 IUSE
="cups debug nls pch linguas_he latex"
28 RDEPEND
="x11-libs/qt:4
46 app-text/sgmltools-lite
63 linguas_he? ( dev-tex/ivritex )"
67 nls? ( sys-devel/gettext )"
72 epatch
"${FILESDIR}"/${PN}-1.5
.0-gentoo.
patch || die
76 append-flags
"$(test-flags -fno-stack-protector -fno-stack-protector-all)"
77 replace-flags
"-Os" "-O2"
86 --with-aspell --without-included-boost || die
"econf failed"
87 emake || die
"emake failed"
91 local mylinguas
="${LINGUAS}"
94 emake DESTDIR
="${D}" install || die
"emake install failed"
96 LINGUAS
="${mylinguas}"
98 dodoc ANNOUNCE ChangeLog NEWS README RELEASE-NOTES UPGRADING
100 if use linguas_he
; then
101 insinto
/usr
/share
/lyx
/bind
102 doins
"${DISTDIR}"/hebrew.
bind
103 dodoc
"${DISTDIR}"/preferences
106 domenu
"${FILESDIR}"/lyx.desktop
108 cd "${WORKDIR}"/${FONT_P}
109 emake DESTDIR
="${D}" install || die
"Font installation failed"
114 dosym ..
/..
/..
/lyx
/tex
/usr
/share
/texmf
/tex
/latex
/lyx
125 if use linguas_he
; then
127 elog
"How to use Hebrew in LyX:"
128 elog
"bunzip2 /usr/share/doc/${PF}/preferences.bz2 into ~/.lyx/preferences"
129 elog
"or, read http://cs.haifa.ac.il/~dekelts/lyx/instructions2.html"
130 elog
"for instructions on using lyx's own preferences dialog to equal effect."
135 elog
"There are known issues in the case of 1.4->1.5 config files transition."
136 elog
"In case your File->Export list is incomplete try reconfiguring or even"
137 elog
"remove the old configuration files in ~/.lyx ."