1 # Copyright 1999-2008 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 inherit 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
22 KEYWORDS
="alpha amd64 hppa ia64 ppc ppc64 sparc x86"
23 IUSE
="cups debug nls pch linguas_he latex"
50 app-text/sgmltools-lite
67 linguas_he? ( dev-tex/ivritex )"
71 nls? ( sys-devel/gettext )"
76 subversion_fetch || die
"Fetch with SVN failed kthnx."
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"
93 --with-aspell --without-included-boost || die
"econf failed"
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 cd "${WORKDIR}"/${FONT_P}
116 emake DESTDIR
="${D}" install || die
"Font installation failed"
121 dosym ..
/..
/..
/lyx
/tex
/usr
/share
/texmf
/tex
/latex
/lyx
132 if use linguas_he
; then
134 elog
"How to use Hebrew in LyX:"
135 elog
"bunzip2 /usr/share/doc/${PF}/preferences.bz2 into ~/.lyx/preferences"
136 elog
"or, read http://cs.haifa.ac.il/~dekelts/lyx/instructions2.html"
137 elog
"for instructions on using lyx's own preferences dialog to equal effect."
142 elog
"There are known issues in the case of 1.4->1.5 config files transition."
143 elog
"In case your File->Export list is incomplete try reconfiguring or even"
144 elog
"remove the old configuration files in ~/.lyx ."