1 # Copyright 1999-2008 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 inherit 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 linguas_he latex"
49 app-text/sgmltools-lite
66 linguas_he? ( dev-tex/ivritex )"
70 nls? ( sys-devel/gettext )"
75 epatch
"${FILESDIR}"/${PN}-1.5
.0-gentoo.
patch || die
79 append-flags
"$(test-flags -fno-stack-protector -fno-stack-protector-all)"
80 replace-flags
"-Os" "-O2"
88 --disable-pch --with-aspell --without-included-boost || \
90 emake || die
"emake failed"
94 local mylinguas
="${LINGUAS}"
97 emake DESTDIR
="${D}" install || die
"emake install failed"
99 LINGUAS
="${mylinguas}"
101 dodoc ANNOUNCE ChangeLog NEWS README RELEASE-NOTES UPGRADING
103 if use linguas_he
; then
104 insinto
/usr
/share
/lyx
/bind
105 doins
"${DISTDIR}"/hebrew.
bind
106 dodoc
"${DISTDIR}"/preferences
109 domenu
"${FILESDIR}"/lyx.desktop
111 cd "${WORKDIR}"/${FONT_P}
112 emake DESTDIR
="${D}" install || die
"Font installation failed"
117 dosym ..
/..
/..
/lyx
/tex
/usr
/share
/texmf
/tex
/latex
/lyx
128 if use linguas_he
; then
130 elog
"How to use Hebrew in LyX:"
131 elog
"bunzip2 /usr/share/doc/${PF}/preferences.bz2 into ~/.lyx/preferences"
132 elog
"or, read http://cs.haifa.ac.il/~dekelts/lyx/instructions2.html"
133 elog
"for instructions on using lyx's own preferences dialog to equal effect."
138 elog
"There are known issues in the case of 1.4->1.5 config files transition."
139 elog
"In case your File->Export list is incomplete try reconfiguring or even"
140 elog
"remove the old configuration files in ~/.lyx ."