summaryrefslogtreecommitdiff
blob: d901c16bf7e4f0dafb23a2882a15d01bae23c2fd (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
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-emacs/emacs-jabber/emacs-jabber-0.7-r1.ebuild,v 1.1 2007/03/13 10:59:25 opfer Exp $

inherit distutils elisp

IUSE="sasl"

DESCRIPTION="A Jabber client for Emacs."
HOMEPAGE="http://emacs-jabber.sourceforge.net/
	http://emacswiki.org/cgi-bin/wiki/JabberEl"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~sparc ~amd64 ~ppc"

# emacs-jabber depends on >= gnus-5.10 which is available in
# app-emacs/gnus or bundled with app-editors/emacs-cvs.	 emacs 21.4a
# includes gnus-5.9

DEPEND="|| ( app-emacs/gnus app-editors/emacs-cvs )
	sasl? ( app-emacs/flim )"

SITEFILE="70emacs-jabber-gentoo.el"

src_unpack() {
	unpack ${A}
	rm "${S}"/{sha1,hex-util}.el
	use sasl || rm "${S}/jabber-sasl.el"
}
src_compile() {
	elisp-comp *.el || die "elisp-comp failed"
	makeinfo jabber.texi || die "makeinfo failed"
}

src_install() {
	elisp-install ${PN} *.{el,elc}
	elisp-site-file-install "${FILESDIR}/${SITEFILE}"
	doinfo jabber.info
	dohtml html/*
	dodoc AUTHORS NEWS README
}