blob: 079ed327557e2e991bdc4ad35a3e30ebb25411d2 (
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
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-emacs/remember/remember-1.9-r1.ebuild,v 1.1 2007/06/25 18:43:22 ulm Exp $
inherit elisp eutils
DESCRIPTION="Simplify writing short notes in emacs"
HOMEPAGE="http://www.emacswiki.org/cgi-bin/wiki/RememberMode"
SRC_URI="http://download.gna.org/remember-el/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~sparc ~x86"
IUSE="bbdb planner"
RDEPEND="bbdb? ( app-emacs/bbdb )
planner? ( app-emacs/planner )"
DEPEND="${RDEPEND}"
SITEFILE=50${PN}-gentoo.el
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}/${P}-make-elc.patch"
# don't try to compile files with unsatisfied dependencies
mkdir nocompile
mv remember-{bibl,blosxom,emacs-wiki-journal}.el nocompile
if ! use bbdb; then
elog "bbdb USE flag not set - removing remember-bbdb.el"
rm -f remember-bbdb.el
fi
if ! use planner; then
elog "planner USE flag not set - removing remember-planner.el"
rm -f remember-{planner,experimental}.el
fi
}
src_compile() {
emake || die "emake failed"
}
src_install() {
elisp-install ${PN} *.{el,elc} nocompile/*.el
elisp-site-file-install "${FILESDIR}/${SITEFILE}"
doinfo remember-el.info
dodoc ChangeLog
}
|