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

Contents of /eclass/elisp.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (hide annotations) (download)
Sun Feb 16 04:26:21 2003 UTC (11 years, 6 months ago) by vapier
Branch: MAIN
Changes since 1.3: +5 -4 lines
header fixes

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 vapier 1.4 # $Header: $
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     ECLASS=elisp
10     INHERITED="$INHERITED $ECLASS"
11    
12     SITELISP=/usr/share/emacs/site-lisp
13    
14     elisp-install() {
15     local subdir=$1
16     dodir ${SITELISP}/${subdir}
17     insinto ${SITELISP}/${subdir}
18     shift
19     doins $@
20     }
21    
22     elisp-site-file-install() {
23     local sitefile=$1
24     pushd ${S}
25     cp ${sitefile} .
26     D=${S}/ dosed "s:@SITELISP@:${SITELISP}/${PN}:g" $(basename ${sitefile})
27     insinto ${SITELISP}
28     doins ${S}/$(basename ${sitefile})
29     popd
30     }
31    
32     elisp-site-regen() {
33     einfo "Regenerating ${SITELISP}/site-start.el..."
34     einfo ""
35     cat <<EOF >${SITELISP}/site-start.el
36     ;;; DO NOT EDIT THIS FILE -- IT IS GENERATED AUTOMATICALLY BY PORTAGE
37     ;;; -----------------------------------------------------------------
38    
39     EOF
40 mkennedy 1.2 ls ${SITELISP}/[0-9][0-9]* |sort -n |grep -vE '~$' | \
41 mkennedy 1.1 while read sf
42     do
43 mkennedy 1.3 einfo " Adding $sf..."
44 mkennedy 1.1 # Great for debugging, too noisy and slow for users though
45     # echo "(message \"Loading $sf...\")" >>${SITELISP}/site-start.el
46     cat $sf >>${SITELISP}/site-start.el
47     done
48     einfo ""
49 vapier 1.4 }

  ViewVC Help
Powered by ViewVC 1.1.20