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

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.20