/[gentoo-x86]/app-emacs/yatex/yatex-1.76.ebuild
Gentoo

Diff of /app-emacs/yatex/yatex-1.76.ebuild

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.4 Revision 1.14
1# Copyright 1999-2012 Gentoo Foundation 1# Copyright 1999-2012 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/app-emacs/yatex/yatex-1.76.ebuild,v 1.4 2012/10/10 15:39:16 ranger Exp $ 3# $Header: /var/cvsroot/gentoo-x86/app-emacs/yatex/yatex-1.76.ebuild,v 1.14 2012/10/17 11:26:05 blueness Exp $
4 4
5EAPI=4 5EAPI=4
6 6
7inherit elisp eutils 7inherit elisp eutils
8 8
9DESCRIPTION="Yet Another TeX mode for Emacs" 9DESCRIPTION="Yet Another TeX mode for Emacs"
10HOMEPAGE="http://www.yatex.org/" 10HOMEPAGE="http://www.yatex.org/"
11SRC_URI="http://www.yatex.org/${P/-/}.tar.gz" 11SRC_URI="http://www.yatex.org/${P/-/}.tar.gz"
12 12
13KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86" 13KEYWORDS="amd64 ppc ~ppc64 x86"
14SLOT="0" 14SLOT="0"
15LICENSE="YaTeX" 15LICENSE="YaTeX"
16IUSE="linguas_ja" 16IUSE="linguas_ja"
17 17
18S=${WORKDIR}/${P/-/} 18S="${WORKDIR}/${P/-/}"
19ELISP_PATCHES="${PN}-1.76-gentoo.patch
20 ${PN}-1.76-direntry.patch"
19SITEFILE="50${PN}-gentoo.el" 21SITEFILE="50${PN}-gentoo.el"
20
21src_prepare() {
22 epatch "${FILESDIR}/${PN}-1.76-gentoo.patch"
23}
24 22
25src_compile() { 23src_compile() {
26 # byte-compilation fails (as of 1.74): yatexlib.el requires fonts 24 # byte-compilation fails (as of 1.74): yatexlib.el requires fonts
27 # that are only available under X 25 # that are only available under X
28 26
29 cd docs 27 cd docs
30 cp yatexe yatex.info || die 28 makeinfo yatexe.tex yahtmle.tex || die
31 cp yahtmle yahtml.info || die 29
32 if use linguas_ja; then 30 if use linguas_ja; then
33 iconv -f ISO-2022-JP -t EUC-JP yatexj > yatex-ja.info || die 31 iconv -f WINDOWS-31J -t UTF-8 yatexj.tex >yatex-ja.texi || die
34 iconv -f ISO-2022-JP -t EUC-JP yahtmlj > yahtml-ja.info || die 32 iconv -f WINDOWS-31J -t UTF-8 yahtmlj.tex >yahtml-ja.texi || die
33 makeinfo yatex-ja.texi yahtml-ja.texi || die
35 fi 34 fi
36} 35}
37 36
38src_install() { 37src_install() {
39 elisp-install ${PN} *.el || die 38 elisp-install ${PN} *.el || die
40 elisp-site-file-install "${FILESDIR}/${SITEFILE}" || die 39 elisp-site-file-install "${FILESDIR}/${SITEFILE}" || die
41 40
42 insinto ${SITEETC}/${PN} 41 insinto ${SITEETC}/${PN}
43 doins help/YATEXHLP.eng 42 doins help/YATEXHLP.eng
44 43 doinfo docs/yatex.info* docs/yahtml.info*
45 doinfo docs/*.info
46 dodoc docs/*.eng 44 dodoc docs/*.eng
47 45
48 if use linguas_ja; then 46 if use linguas_ja; then
49 doins help/YATEXHLP.jp 47 doins help/YATEXHLP.jp
48 doinfo docs/yatex-ja.info* docs/yahtml-ja.info*
50 dodoc 00readme install docs/{htmlqa,qanda} docs/*.doc 49 dodoc 00readme install docs/{htmlqa,qanda} docs/*.doc
51 fi 50 fi
52} 51}

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.14

  ViewVC Help
Powered by ViewVC 1.1.20