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

Contents of /eclass/elisp.eclass

Parent Directory Parent Directory | Revision Log Revision Log


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

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.11 # $Header: /home/cvsroot/gentoo-x86/eclass/elisp.eclass,v 1.10 2004/04/10 13:02:38 usata 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 ECLASS=elisp
12     INHERITED="$INHERITED $ECLASS"
13    
14 mkennedy 1.5 # 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 mkennedy 1.8 # upstream as a single .el file.
17    
18     # Note: This is no longer necessary.
19 mkennedy 1.5
20     SRC_URI="http://cvs.gentoo.org/~mkennedy/app-emacs/${P}.el.bz2"
21 mkennedy 1.9 if [ "${SIMPLE_ELISP}" = 't' ]; then
22     S="${WORKDIR}/"
23     #else
24     # Use default value
25     # S="${WORKDIR}/${P}"
26     fi
27    
28 usata 1.10 DEPEND="virtual/emacs"
29 mkennedy 1.5 IUSE=""
30    
31 mkennedy 1.9 elisp_src_unpack() {
32 mkennedy 1.5 unpack ${A}
33     if [ "${SIMPLE_ELISP}" = 't' ]
34 mkennedy 1.9 then
35 mkennedy 1.5 cd ${S} && mv ${P}.el ${PN}.el
36     fi
37     }
38    
39 mkennedy 1.9 elisp_src_compile() {
40     elisp-compile *.el || die
41 mkennedy 1.5 }
42    
43 mkennedy 1.9 elisp_src_install() {
44 mkennedy 1.5 elisp-install ${PN} *.el *.elc
45     elisp-site-file-install ${FILESDIR}/${SITEFILE}
46     }
47    
48 mkennedy 1.9 elisp_pkg_postinst() {
49 mkennedy 1.5 elisp-site-regen
50     }
51    
52 mkennedy 1.9 elisp_pkg_postrm() {
53 mkennedy 1.5 elisp-site-regen
54     }
55 mkennedy 1.9
56     EXPORT_FUNCTIONS src_unpack src_compile src_install \
57     pkg_postinst pkg_postrm
58 mkennedy 1.5
59 mkennedy 1.8 # 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