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

Diff of /eclass/elisp.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.4 Revision 1.5
1# Copyright 1999-2003 Gentoo Technologies, Inc. 1# Copyright 1999-2003 Gentoo Technologies, Inc.
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/elisp.eclass,v 1.4 2003/02/16 04:26:21 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/elisp.eclass,v 1.5 2003/05/23 06:06:19 mkennedy Exp $
4# 4#
5# Author Matthew Kennedy <mkennedy@gentoo.org> 5# Author Matthew Kennedy <mkennedy@gentoo.org>
6# 6#
7# This eclass sets the site-lisp directory for emacs-related packages. 7# This eclass sets the site-lisp directory for emacs-related packages.
8 8
45# echo "(message \"Loading $sf...\")" >>${SITELISP}/site-start.el 45# echo "(message \"Loading $sf...\")" >>${SITELISP}/site-start.el
46 cat $sf >>${SITELISP}/site-start.el 46 cat $sf >>${SITELISP}/site-start.el
47 done 47 done
48 einfo "" 48 einfo ""
49} 49}
50
51# DEFAULT OVERRIDES
52
53# SRC_URI should be set to wherever the primary app-emacs/ maintainer
54# keeps the local elisp mirror, since most app-emacs packages are
55# upstream as a single .el file
56
57SRC_URI="http://cvs.gentoo.org/~mkennedy/app-emacs/${P}.el.bz2"
58S="${WORKDIR}/"
59DEPEND="virtual/emacs"
60IUSE=""
61
62src_unpack() {
63 unpack ${A}
64 if [ "${SIMPLE_ELISP}" = 't' ]
65 then
66 cd ${S} && mv ${P}.el ${PN}.el
67 fi
68}
69
70src_compile() {
71 emacs --batch -f batch-byte-compile --no-site-file --no-init-file *.el || die
72}
73
74src_install() {
75 elisp-install ${PN} *.el *.elc
76 elisp-site-file-install ${FILESDIR}/${SITEFILE}
77}
78
79pkg_postinst() {
80 elisp-site-regen
81}
82
83pkg_postrm() {
84 elisp-site-regen
85}
86

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

  ViewVC Help
Powered by ViewVC 1.1.20