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

Contents of /eclass/elisp.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (hide annotations) (download)
Sun Sep 21 01:40:41 2003 UTC (11 years, 3 months ago) by mkennedy
Branch: MAIN
Changes since 1.7: +13 -43 lines
separated elisp into elisp and elisp-common

1 vapier 1.4 # Copyright 1999-2003 Gentoo Technologies, Inc.
2 mkennedy 1.1 # Distributed under the terms of the GNU General Public License v2
3 mkennedy 1.8 # $Header: /home/cvsroot/gentoo-x86/eclass/elisp.eclass,v 1.7 2003/09/20 22:27:08 mkennedy Exp $
4 vapier 1.4 #
5 mkennedy 1.1 # Author Matthew Kennedy <mkennedy@gentoo.org>
6 vapier 1.4 #
7 mkennedy 1.1 # This eclass sets the site-lisp directory for emacs-related packages.
8    
9 mkennedy 1.8 inherit elisp-common
10    
11 mkennedy 1.1 ECLASS=elisp
12     INHERITED="$INHERITED $ECLASS"
13    
14 mkennedy 1.8 source /usr/portage/eclass/elisp-common.eclass
15 mkennedy 1.5
16     # SRC_URI should be set to wherever the primary app-emacs/ maintainer
17     # keeps the local elisp mirror, since most app-emacs packages are
18 mkennedy 1.8 # upstream as a single .el file.
19    
20     # Note: This is no longer necessary.
21 mkennedy 1.5
22     SRC_URI="http://cvs.gentoo.org/~mkennedy/app-emacs/${P}.el.bz2"
23     S="${WORKDIR}/"
24 mkennedy 1.8 newdepend "virtual/emacs"
25 mkennedy 1.5 IUSE=""
26    
27     src_unpack() {
28     unpack ${A}
29     if [ "${SIMPLE_ELISP}" = 't' ]
30     then
31     cd ${S} && mv ${P}.el ${PN}.el
32     fi
33     }
34    
35     src_compile() {
36     emacs --batch -f batch-byte-compile --no-site-file --no-init-file *.el || die
37     }
38    
39     src_install() {
40     elisp-install ${PN} *.el *.elc
41     elisp-site-file-install ${FILESDIR}/${SITEFILE}
42     }
43    
44     pkg_postinst() {
45     elisp-site-regen
46     }
47    
48     pkg_postrm() {
49     elisp-site-regen
50     }
51    
52 mkennedy 1.8 # Local Variables: ***
53     # mode: shell-script ***
54     # tab-width: 4 ***
55     # indent-tabs-mode: t ***
56     # End: ***

  ViewVC Help
Powered by ViewVC 1.1.20