1 # Copyright 1999-2008 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 inherit autotools subversion eutils flag-o-matic font toolchain-funcs
9 FONT_P
="latex-xft-fonts-0.1"
11 DESCRIPTION
="WYSIWYM frontend for LaTeX, DocBook, etc."
12 HOMEPAGE
="http://www.lyx.org/"
13 ESVN_REPO_URI
="svn://svn.lyx.org/lyx/lyx-devel/trunk"
14 SRC_URI
="ftp://ftp.lyx.org/pub/lyx/contrib/${FONT_P}.tar.gz
16 http://cs.haifa.ac.il/~dekelts/lyx/files/hebrew.bind
17 http://cs.haifa.ac.il/~dekelts/lyx/files/preferences
23 IUSE
="cups debug nls pch linguas_he latex"
51 app-text/sgmltools-lite
68 linguas_he? ( dev-tex/ivritex )"
72 nls? ( sys-devel/gettext )"
77 subversion_fetch || die
"Fetch with SVN failed kthnx."
80 epatch
"${FILESDIR}"/${PN}-1.5
.0-gentoo.
patch || die
82 # trunk needs to regen with autotools
83 # lets use gentoo tools instead of the lyx script,
84 # which calls aclocal, autoheader, automake, autoconf
85 rm -rf "${S}"/autom4te.cache
93 append-flags
"$(test-flags -fno-stack-protector -fno-stack-protector-all)"
94 replace-flags
"-Os" "-O2"
101 $
(use_enable debug
) \
103 --with-aspell --without-included-boost || die
"econf failed"
104 emake || die
"emake failed"
108 local mylinguas
="${LINGUAS}"
111 emake DESTDIR
="${D}" install || die
"emake install failed"
113 LINGUAS
="${mylinguas}"
115 dodoc ANNOUNCE ChangeLog NEWS README RELEASE-NOTES UPGRADING
117 if use linguas_he
; then
118 insinto
/usr
/share
/lyx
/bind
119 doins
"${DISTDIR}"/hebrew.
bind
120 dodoc
"${DISTDIR}"/preferences
123 domenu
"${FILESDIR}"/lyx.desktop
125 cd "${WORKDIR}"/${FONT_P}
126 emake DESTDIR
="${D}" install || die
"Font installation failed"
131 dosym ..
/..
/..
/lyx
/tex
/usr
/share
/texmf
/tex
/latex
/lyx
142 if use linguas_he
; then
144 elog
"How to use Hebrew in LyX:"
145 elog
"bunzip2 /usr/share/doc/${PF}/preferences.bz2 into ~/.lyx/preferences"
146 elog
"or, read http://cs.haifa.ac.il/~dekelts/lyx/instructions2.html"
147 elog
"for instructions on using lyx's own preferences dialog to equal effect."
152 elog
"There are known issues in the case of 1.4->1.5 config files transition."
153 elog
"In case your File->Export list is incomplete try reconfiguring or even"
154 elog
"remove the old configuration files in ~/.lyx ."