blob: 97c1791c75c415928806975161a24eb343e53ba5 (
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
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-emacs/distel/distel-4.03.ebuild,v 1.2 2009/02/20 18:22:43 ulm Exp $
EAPI=2
inherit elisp eutils
DESCRIPTION="Distributed Emacs Lisp for Erlang"
HOMEPAGE="http://fresh.homeunix.net/~luke/distel/"
SRC_URI="http://distel.googlecode.com/files/${P}.tgz"
# "New BSD License" according to http://code.google.com/p/distel/
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="doc"
DEPEND=">=dev-lang/erlang-11.2.5[emacs]"
RDEPEND="${DEPEND}"
SITEFILE="50${PN}-gentoo.el"
src_prepare() {
epatch "${FILESDIR}/${P}-fix-ebin-path.patch"
}
src_compile() {
emake base info || die "emake failed"
cd elisp
elisp-compile *.el || die
}
src_install() {
emake prefix="${D}"/usr \
ELISP_DIR="${D}${SITELISP}/${PN}" install \
|| die "emake install failed"
elisp-site-file-install "${FILESDIR}/${SITEFILE}" || die
doinfo doc/distel.info || die "doinfo failed"
dohtml doc/distel/*.html || die "dohtml failed"
dodoc AUTHORS ChangeLog NEWS README* || die "dodoc failed"
if use doc; then
dodoc doc/gorrie02distel.pdf || die "dodoc failed"
fi
}
|