/[gentoo-x86]/eclass/elisp.eclass
Gentoo

Contents of /eclass/elisp.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.12 - (show annotations) (download)
Wed Jul 6 20:20:03 2005 UTC (9 years, 2 months ago) by agriffis
Branch: MAIN
Changes since 1.11: +1 -2 lines
Remove ECLASS= and INHERITED= which haven't been necessary for a long time now

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

  ViewVC Help
Powered by ViewVC 1.1.20