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

Contents of /eclass/elisp.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Sun Feb 9 09:40:43 2003 UTC (11 years, 5 months ago) by mkennedy
Branch: MAIN
Changes since 1.1: +2 -2 lines
Made the file search more robust as per Sascha Ludecke
<sascha@meta-x.de> suggestion in bug #13277.

1 mkennedy 1.1 # Copyright 1999-2002 Gentoo Technologies, Inc.
2     # Distributed under the terms of the GNU General Public License v2
3     # Author Matthew Kennedy <mkennedy@gentoo.org>
4 mkennedy 1.2 # $Header: /home/cvsroot/gentoo-x86/eclass/elisp.eclass,v 1.1 2002/10/29 04:40:18 mkennedy Exp $
5 mkennedy 1.1
6     # This eclass sets the site-lisp directory for emacs-related packages.
7    
8     ECLASS=elisp
9     INHERITED="$INHERITED $ECLASS"
10    
11     SITELISP=/usr/share/emacs/site-lisp
12    
13     elisp-install() {
14     local subdir=$1
15     dodir ${SITELISP}/${subdir}
16     insinto ${SITELISP}/${subdir}
17     shift
18     doins $@
19     }
20    
21     elisp-site-file-install() {
22     local sitefile=$1
23     pushd ${S}
24     cp ${sitefile} .
25     D=${S}/ dosed "s:@SITELISP@:${SITELISP}/${PN}:g" $(basename ${sitefile})
26     insinto ${SITELISP}
27     doins ${S}/$(basename ${sitefile})
28     popd
29     }
30    
31     elisp-site-regen() {
32     einfo "Regenerating ${SITELISP}/site-start.el..."
33     einfo ""
34     cat <<EOF >${SITELISP}/site-start.el
35     ;;; DO NOT EDIT THIS FILE -- IT IS GENERATED AUTOMATICALLY BY PORTAGE
36     ;;; -----------------------------------------------------------------
37    
38     EOF
39 mkennedy 1.2 ls ${SITELISP}/[0-9][0-9]* |sort -n |grep -vE '~$' | \
40 mkennedy 1.1 while read sf
41     do
42     einfo " Addding $sf..."
43     # Great for debugging, too noisy and slow for users though
44     # echo "(message \"Loading $sf...\")" >>${SITELISP}/site-start.el
45     cat $sf >>${SITELISP}/site-start.el
46     done
47     einfo ""
48     }

  ViewVC Help
Powered by ViewVC 1.1.20