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 AT_M4DIR
="-I m4 -I config"
86 rm -rf "${S}"/autom4te.cache
94 append-flags
"$(test-flags -fno-stack-protector -fno-stack-protector-all)"
95 replace-flags
"-Os" "-O2"
102 $
(use_enable debug
) \
104 --with-aspell --without-included-boost || die
"econf failed"
105 emake || die
"emake failed"
109 local mylinguas
="${LINGUAS}"
112 emake DESTDIR
="${D}" install || die
"emake install failed"
114 LINGUAS
="${mylinguas}"
116 dodoc ANNOUNCE ChangeLog NEWS README RELEASE-NOTES UPGRADING
118 if use linguas_he
; then
119 insinto
/usr
/share
/lyx
/bind
120 doins
"${DISTDIR}"/hebrew.
bind
121 dodoc
"${DISTDIR}"/preferences
124 domenu
"${FILESDIR}"/lyx.desktop
126 cd "${WORKDIR}"/${FONT_P}
127 emake DESTDIR
="${D}" install || die
"Font installation failed"
132 dosym ..
/..
/..
/lyx
/tex
/usr
/share
/texmf
/tex
/latex
/lyx
143 if use linguas_he
; then
145 elog
"How to use Hebrew in LyX:"
146 elog
"bunzip2 /usr/share/doc/${PF}/preferences.bz2 into ~/.lyx/preferences"
147 elog
"or, read http://cs.haifa.ac.il/~dekelts/lyx/instructions2.html"
148 elog
"for instructions on using lyx's own preferences dialog to equal effect."
153 elog
"There are known issues in the case of 1.4->1.5 config files transition."
154 elog
"In case your File->Export list is incomplete try reconfiguring or even"
155 elog
"remove the old configuration files in ~/.lyx ."