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

Contents of /eclass/elisp.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.1.1 - (hide annotations) (download) (vendor branch)
Wed Nov 30 09:59:37 2005 UTC (9 years, 4 months ago) by chriswhite
Changes since 1.1: +52 -39 lines
*** empty log message ***

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

  ViewVC Help
Powered by ViewVC 1.1.20