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" # dev-tex/ivritex
25 IUSE
="cups debug nls linguas_he latex"
52 app-text/sgmltools-lite
54 >=dev-lang/python-2.3.4
69 linguas_he? ( dev-tex/ivritex )"
73 nls? ( sys-devel/gettext )"
79 epatch
"${FILESDIR}"/${PN}-1.5
.0-gentoo.
patch || die
83 append-flags
"$(test-flags -fno-stack-protector -fno-stack-protector-all)"
84 replace-flags
"-Os" "-O2"
92 --disable-pch --with-aspell --without-included-boost || \
94 emake || die
"emake failed"
98 local mylinguas
="${LINGUAS}"
101 emake DESTDIR
="${D}" install || die
"emake install failed"
103 LINGUAS
="${mylinguas}"
105 dodoc ANNOUNCE ChangeLog NEWS README RELEASE-NOTES UPGRADING
107 if use linguas_he
; then
108 insinto
/usr
/share
/lyx
/bind
109 doins
"${DISTDIR}"/hebrew.
bind
110 dodoc
"${DISTDIR}"/preferences
113 domenu
"${FILESDIR}"/lyx.desktop
115 # install the latex-xft fonts, which should fix
116 # the problems outlined in bug #15629
118 cd "${WORKDIR}"/${FONT_P}
119 emake DESTDIR
="${D}" install || die
"Font installation failed"
125 dosym ..
/..
/..
/lyx
/tex
/usr
/share
/texmf
/tex
/latex
/lyx
137 if use linguas_he
; then
139 elog
"How to use Hebrew in LyX:"
140 elog
"bunzip2 /usr/share/doc/${PF}/preferences.bz2 into ~/.lyx/preferences"
141 elog
"or, read http://cs.haifa.ac.il/~dekelts/lyx/instructions2.html"
142 elog
"for instructions on using lyx's own preferences dialog to equal effect."
147 elog
"There are known issues in the case of 1.4->1.5 config files transition."
148 elog
"In case your File->Export list is incomplete try reconfiguring or even"
149 elog
"remove the old configuration files in ~/.lyx ."