| 1 |
# Copyright 1999-2010 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/app-emacs/ess/ess-5.11.ebuild,v 1.4 2010/10/10 18:55:30 armin76 Exp $
|
| 4 |
|
| 5 |
EAPI=3
|
| 6 |
|
| 7 |
inherit elisp
|
| 8 |
|
| 9 |
DESCRIPTION="Emacs Speaks Statistics"
|
| 10 |
HOMEPAGE="http://ess.r-project.org/"
|
| 11 |
SRC_URI="http://ess.r-project.org/downloads/ess/${P}.tgz"
|
| 12 |
|
| 13 |
LICENSE="GPL-2"
|
| 14 |
SLOT="0"
|
| 15 |
KEYWORDS="alpha amd64 ~ppc sparc x86 ~amd64-linux ~x86-linux ~x86-macos"
|
| 16 |
IUSE=""
|
| 17 |
|
| 18 |
DEPEND="app-text/texi2html
|
| 19 |
virtual/latex-base"
|
| 20 |
RDEPEND=""
|
| 21 |
|
| 22 |
SITEFILE="50${PN}-gentoo.el"
|
| 23 |
|
| 24 |
src_compile() {
|
| 25 |
emake || die "emake failed"
|
| 26 |
}
|
| 27 |
|
| 28 |
src_install() {
|
| 29 |
emake PREFIX="${ED}/usr" \
|
| 30 |
INFODIR="${ED}/usr/share/info" \
|
| 31 |
LISPDIR="${ED}${SITELISP}/ess" \
|
| 32 |
DOCDIR="${ED}/usr/share/doc/${PF}" \
|
| 33 |
install || die "emake install failed"
|
| 34 |
|
| 35 |
elisp-site-file-install "${FILESDIR}/${SITEFILE}" || die
|
| 36 |
|
| 37 |
# Most documentation is installed by the package's build system
|
| 38 |
rm -f "${ED}${SITELISP}/ess/lisp/ChangeLog"
|
| 39 |
dodoc ChangeLog *NEWS doc/{TODO,ess-intro.pdf} || die "dodoc failed"
|
| 40 |
newdoc lisp/ChangeLog ChangeLog-lisp || die "newdoc failed"
|
| 41 |
prepalldocs
|
| 42 |
}
|
| 43 |
|
| 44 |
pkg_postinst() {
|
| 45 |
elisp-site-regen
|
| 46 |
elog "Please see /usr/share/doc/${PF} for the complete documentation."
|
| 47 |
elog "Usage hints are in ${SITELISP}/${PN}/ess-site.el ."
|
| 48 |
}
|