1 |
vapier |
1.11 |
# Copyright 1999-2004 Gentoo Foundation |
2 |
mkennedy |
1.1 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
vapier |
1.15 |
# $Header: /var/cvsroot/gentoo-x86/eclass/elisp.eclass,v 1.14 2005/07/11 15:08:06 swegener Exp $ |
4 |
vapier |
1.4 |
# |
5 |
mkennedy |
1.9 |
# Copyright 2002-2003 Matthew Kennedy <mkennedy@gentoo.org> |
6 |
|
|
# Copyright 2003 Jeremy Maitin-Shepard <jbms@attbi.com> |
7 |
vapier |
1.4 |
# |
8 |
mkennedy |
1.1 |
# This eclass sets the site-lisp directory for emacs-related packages. |
9 |
|
|
|
10 |
mkennedy |
1.8 |
inherit elisp-common |
11 |
mkennedy |
1.1 |
|
12 |
mkennedy |
1.5 |
# SRC_URI should be set to wherever the primary app-emacs/ maintainer |
13 |
|
|
# keeps the local elisp mirror, since most app-emacs packages are |
14 |
mkennedy |
1.8 |
# upstream as a single .el file. |
15 |
|
|
|
16 |
|
|
# Note: This is no longer necessary. |
17 |
mkennedy |
1.5 |
|
18 |
|
|
SRC_URI="http://cvs.gentoo.org/~mkennedy/app-emacs/${P}.el.bz2" |
19 |
mkennedy |
1.9 |
if [ "${SIMPLE_ELISP}" = 't' ]; then |
20 |
|
|
S="${WORKDIR}/" |
21 |
|
|
#else |
22 |
|
|
# Use default value |
23 |
|
|
# S="${WORKDIR}/${P}" |
24 |
|
|
fi |
25 |
|
|
|
26 |
usata |
1.10 |
DEPEND="virtual/emacs" |
27 |
mkennedy |
1.5 |
IUSE="" |
28 |
|
|
|
29 |
mkennedy |
1.9 |
elisp_src_unpack() { |
30 |
mkennedy |
1.5 |
unpack ${A} |
31 |
|
|
if [ "${SIMPLE_ELISP}" = 't' ] |
32 |
mkennedy |
1.9 |
then |
33 |
mkennedy |
1.5 |
cd ${S} && mv ${P}.el ${PN}.el |
34 |
swegener |
1.14 |
fi |
35 |
mkennedy |
1.5 |
} |
36 |
|
|
|
37 |
mkennedy |
1.9 |
elisp_src_compile() { |
38 |
|
|
elisp-compile *.el || die |
39 |
mkennedy |
1.5 |
} |
40 |
|
|
|
41 |
mkennedy |
1.9 |
elisp_src_install() { |
42 |
mkennedy |
1.5 |
elisp-install ${PN} *.el *.elc |
43 |
|
|
elisp-site-file-install ${FILESDIR}/${SITEFILE} |
44 |
|
|
} |
45 |
|
|
|
46 |
mkennedy |
1.9 |
elisp_pkg_postinst() { |
47 |
mkennedy |
1.5 |
elisp-site-regen |
48 |
|
|
} |
49 |
|
|
|
50 |
mkennedy |
1.9 |
elisp_pkg_postrm() { |
51 |
mkennedy |
1.5 |
elisp-site-regen |
52 |
|
|
} |
53 |
mkennedy |
1.9 |
|
54 |
vapier |
1.15 |
EXPORT_FUNCTIONS src_unpack src_compile src_install pkg_postinst pkg_postrm |
55 |
mkennedy |
1.5 |
|
56 |
mkennedy |
1.8 |
# Local Variables: *** |
57 |
|
|
# mode: shell-script *** |
58 |
|
|
# tab-width: 4 *** |
59 |
|
|
# indent-tabs-mode: t *** |
60 |
|
|
# End: *** |