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

Contents of /eclass/elisp.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (show annotations) (download)
Fri Jun 25 00:39:48 2004 UTC (10 years, 6 months ago) by vapier
Branch: MAIN
Changes since 1.10: +2 -2 lines
update the copyright info

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

  ViewVC Help
Powered by ViewVC 1.1.20