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

Contents of /eclass/elisp.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.12 - (hide annotations) (download)
Wed Jul 6 20:20:03 2005 UTC (9 years, 1 month 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 vapier 1.11 # Copyright 1999-2004 Gentoo Foundation
2 mkennedy 1.1 # Distributed under the terms of the GNU General Public License v2
3 agriffis 1.12 # $Header: /var/cvsroot/gentoo-x86/eclass/elisp.eclass,v 1.11 2004/06/25 00:39:48 vapier 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 INHERITED="$INHERITED $ECLASS"
12    
13 mkennedy 1.5 # 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 mkennedy 1.8 # upstream as a single .el file.
16    
17     # Note: This is no longer necessary.
18 mkennedy 1.5
19     SRC_URI="http://cvs.gentoo.org/~mkennedy/app-emacs/${P}.el.bz2"
20 mkennedy 1.9 if [ "${SIMPLE_ELISP}" = 't' ]; then
21     S="${WORKDIR}/"
22     #else
23     # Use default value
24     # S="${WORKDIR}/${P}"
25     fi
26    
27 usata 1.10 DEPEND="virtual/emacs"
28 mkennedy 1.5 IUSE=""
29    
30 mkennedy 1.9 elisp_src_unpack() {
31 mkennedy 1.5 unpack ${A}
32     if [ "${SIMPLE_ELISP}" = 't' ]
33 mkennedy 1.9 then
34 mkennedy 1.5 cd ${S} && mv ${P}.el ${PN}.el
35     fi
36     }
37    
38 mkennedy 1.9 elisp_src_compile() {
39     elisp-compile *.el || die
40 mkennedy 1.5 }
41    
42 mkennedy 1.9 elisp_src_install() {
43 mkennedy 1.5 elisp-install ${PN} *.el *.elc
44     elisp-site-file-install ${FILESDIR}/${SITEFILE}
45     }
46    
47 mkennedy 1.9 elisp_pkg_postinst() {
48 mkennedy 1.5 elisp-site-regen
49     }
50    
51 mkennedy 1.9 elisp_pkg_postrm() {
52 mkennedy 1.5 elisp-site-regen
53     }
54 mkennedy 1.9
55     EXPORT_FUNCTIONS src_unpack src_compile src_install \
56     pkg_postinst pkg_postrm
57 mkennedy 1.5
58 mkennedy 1.8 # 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