blob: c8dcd9e4d3dfacda93f12532741512a407c52e59 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-emacs/ess/ess-5.3.5.ebuild,v 1.3 2007/09/21 16:05:09 opfer Exp $
inherit elisp
IUSE=""
DESCRIPTION="Emacs Speaks Statistics"
HOMEPAGE="http://stat.ethz.ch/ESS/"
SRC_URI="http://stat.ethz.ch/ESS/downloads/ess/${P}.tgz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~ppc sparc x86"
DEPEND="app-text/texi2html
virtual/tetex"
RDEPEND=""
SITEFILE=50ess-gentoo.el
src_compile() {
# The -glossary option doesn't work with Gentoo texi2html.
sed "s:-glossary::g" "${S}/doc/Makefile" > "${T}"/Makefile;
emake PREFIX=/usr \
INFODIR=/usr/share/info \
LISPDIR=/usr/share/emacs/site-lisp/ess \
|| die "emake failed"
}
src_install() {
einstall PREFIX="${D}/usr" \
INFODIR="${D}/usr/share/info" \
LISPDIR="${D}/usr/share/emacs/site-lisp/ess" \
|| die "einstall failed"
elisp-site-file-install "${FILESDIR}/${SITEFILE}";
elisp-install ${PN} lisp/*.el
dodir /usr/share/emacs/etc/ess
cp -pPR etc/* "${D}/usr/share/emacs/etc/ess"
dohtml "${S}"/doc/html/*.html
dodoc "${S}"/doc/{NEWS,README,TODO}
insinto /usr/share/doc/${P}
doins "${S}/doc/ess-intro.pdf"
}
pkg_postinst() {
elisp-site-regen
elog "Please see /usr/share/doc/${P} for the complete documentation."
elog "Usage hints are in /usr/share/emacs/site-lisp/${PN}/ess-site.el."
}
|