| 1 |
naota |
1.1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
|
|
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
armin76 |
1.10 |
# $Header: /var/cvsroot/gentoo-x86/app-emacs/yatex/yatex-1.76.ebuild,v 1.9 2012/10/11 18:59:14 ulm Exp $
|
| 4 |
ulm |
1.2 |
|
| 5 |
|
|
EAPI=4
|
| 6 |
naota |
1.1 |
|
| 7 |
|
|
inherit elisp eutils
|
| 8 |
|
|
|
| 9 |
|
|
DESCRIPTION="Yet Another TeX mode for Emacs"
|
| 10 |
|
|
HOMEPAGE="http://www.yatex.org/"
|
| 11 |
|
|
SRC_URI="http://www.yatex.org/${P/-/}.tar.gz"
|
| 12 |
|
|
|
| 13 |
armin76 |
1.10 |
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
|
| 14 |
naota |
1.1 |
SLOT="0"
|
| 15 |
ulm |
1.2 |
LICENSE="YaTeX"
|
| 16 |
naota |
1.1 |
IUSE="linguas_ja"
|
| 17 |
|
|
|
| 18 |
ulm |
1.8 |
S="${WORKDIR}/${P/-/}"
|
| 19 |
ulm |
1.9 |
ELISP_PATCHES="${PN}-1.76-gentoo.patch
|
| 20 |
|
|
${PN}-1.76-direntry.patch"
|
| 21 |
naota |
1.1 |
SITEFILE="50${PN}-gentoo.el"
|
| 22 |
|
|
|
| 23 |
|
|
src_compile() {
|
| 24 |
|
|
# byte-compilation fails (as of 1.74): yatexlib.el requires fonts
|
| 25 |
|
|
# that are only available under X
|
| 26 |
ulm |
1.9 |
|
| 27 |
|
|
local texi="yatexe.tex yahtmle.tex"
|
| 28 |
|
|
use linguas_ja && texi+=" yatexj.tex yahtmlj.tex"
|
| 29 |
|
|
|
| 30 |
|
|
cd docs
|
| 31 |
|
|
# makeinfo fails, so use Emacs to generate Info from Texinfo
|
| 32 |
|
|
${EMACS} ${EMACSFLAGS} -l texinfmt -f batch-texinfo-format ${texi} || die
|
| 33 |
naota |
1.1 |
}
|
| 34 |
|
|
|
| 35 |
|
|
src_install() {
|
| 36 |
|
|
elisp-install ${PN} *.el || die
|
| 37 |
|
|
elisp-site-file-install "${FILESDIR}/${SITEFILE}" || die
|
| 38 |
|
|
|
| 39 |
|
|
insinto ${SITEETC}/${PN}
|
| 40 |
ulm |
1.2 |
doins help/YATEXHLP.eng
|
| 41 |
ulm |
1.9 |
doinfo docs/yatex.info docs/yahtml.info
|
| 42 |
ulm |
1.2 |
dodoc docs/*.eng
|
| 43 |
naota |
1.1 |
|
| 44 |
|
|
if use linguas_ja; then
|
| 45 |
ulm |
1.2 |
doins help/YATEXHLP.jp
|
| 46 |
ulm |
1.9 |
doinfo docs/yatex-ja.info docs/yahtml-ja.info
|
| 47 |
ulm |
1.2 |
dodoc 00readme install docs/{htmlqa,qanda} docs/*.doc
|
| 48 |
naota |
1.1 |
fi
|
| 49 |
|
|
}
|