summaryrefslogtreecommitdiff
blob: 5b1f670feb49e8f5c6fd13a02d54ce843b82fb82 (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
53
54
55
56
57
58
59
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-emacs/ess/ess-5.1.24.ebuild,v 1.3 2004/05/11 04:10:37 weeve Exp $

inherit elisp

IUSE=""

DESCRIPTION="Emacs Speaks Statistics"
HOMEPAGE="http://www.analytics.washington.edu/statcomp/projects/ess/"
SRC_URI="http://www.analytics.washington.edu/downloads/ess/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~sparc"

DEPEND="virtual/emacs
	app-text/texi2html
	sys-apps/sed
	virtual/tetex"
RDEPEND="virtual/emacs"

SITEFILE=50ess-gentoo.el

src_compile() {
	einfo "Compiling lisp sources..."
	pushd ${S}/lisp && make;
	popd;
	einfo "Making documentation..."
	# The -glossary option doesn't work with Gentoo texi2html.
	sed "s:-glossary::g" ${S}/doc/Makefile > ${T}/Makefile;
	mv -f ${T}/Makefile ${S}/doc/Makefile;
	pushd ${S}/doc && make;
	popd;
}

src_install() {
	elisp-install ${PN} lisp/*.el lisp/*.elc;
	elisp-site-file-install ${FILESDIR}/${SITEFILE};
	doinfo ${S}/doc/*.info*;
	dohtml ${S}/doc/*.html;
	dodoc ${S}/doc/[N-Z]*;
	dodoc ${S}/etc/{sas-keys.ps,ess-sas-sh-command,ess-s?.S}
	insinto /usr/share/doc/${P}
	doins ${S}/doc/ess-intro.pdf
	insinto /usr/share/doc/${P}/examples
	doins ${S}/etc/function-outline.S
	cp -Rf ${S}/etc/other/S-spread ${D}/usr/share/doc/${P}/examples
}

pkg_postinst() {
	elisp-site-regen
	einfo "Please see /usr/share/doc/${P} for the complete documentation."
	einfo "Usage hints are in /usr/share/emacs/site-lisp/${PN}/ess-site.el."
}

pkg_postrm() {
	elisp-site-regen
}