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

Diff of /eclass/elisp.eclass

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

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

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.15

  ViewVC Help
Powered by ViewVC 1.1.20