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

Diff of /eclass/elisp.eclass

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

Revision 1.11 Revision 1.16
1# Copyright 1999-2004 Gentoo Foundation 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.11 2004/06/25 00:39:48 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/elisp.eclass,v 1.16 2007/04/16 15:33:58 opfer Exp $
4# 4#
5# Copyright 2002-2003 Matthew Kennedy <mkennedy@gentoo.org> 5# Copyright 2002-2003 Matthew Kennedy <mkennedy@gentoo.org>
6# Copyright 2003 Jeremy Maitin-Shepard <jbms@attbi.com> 6# Copyright 2003 Jeremy Maitin-Shepard <jbms@attbi.com>
7# 7#
8# This eclass sets the site-lisp directory for emacs-related packages. 8# This eclass sets the site-lisp directory for emacs-related packages.
9 9
10inherit elisp-common 10inherit elisp-common
11ECLASS=elisp
12INHERITED="$INHERITED $ECLASS"
13 11
14# 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
15# keeps the local elisp mirror, since most app-emacs packages are 13# keeps the local elisp mirror, since most app-emacs packages are
16# upstream as a single .el file. 14# upstream as a single .el file.
17 15
19 17
20SRC_URI="http://cvs.gentoo.org/~mkennedy/app-emacs/${P}.el.bz2" 18SRC_URI="http://cvs.gentoo.org/~mkennedy/app-emacs/${P}.el.bz2"
21if [ "${SIMPLE_ELISP}" = 't' ]; then 19if [ "${SIMPLE_ELISP}" = 't' ]; then
22 S="${WORKDIR}/" 20 S="${WORKDIR}/"
23#else 21#else
24# Use default value 22# Use default value
25# S="${WORKDIR}/${P}" 23# S="${WORKDIR}/${P}"
26fi 24fi
27 25
28DEPEND="virtual/emacs" 26DEPEND="virtual/emacs"
29IUSE="" 27IUSE=""
31elisp_src_unpack() { 29elisp_src_unpack() {
32 unpack ${A} 30 unpack ${A}
33 if [ "${SIMPLE_ELISP}" = 't' ] 31 if [ "${SIMPLE_ELISP}" = 't' ]
34 then 32 then
35 cd ${S} && mv ${P}.el ${PN}.el 33 cd ${S} && mv ${P}.el ${PN}.el
36 fi 34 fi
37} 35}
38 36
39elisp_src_compile() { 37elisp_src_compile() {
40 elisp-compile *.el || die 38 elisp-compile *.el || die
41} 39}
51 49
52elisp_pkg_postrm() { 50elisp_pkg_postrm() {
53 elisp-site-regen 51 elisp-site-regen
54} 52}
55 53
56EXPORT_FUNCTIONS src_unpack src_compile src_install \ 54EXPORT_FUNCTIONS src_unpack src_compile src_install pkg_postinst pkg_postrm
57 pkg_postinst pkg_postrm
58 55
59# Local Variables: *** 56# Local Variables: ***
60# mode: shell-script *** 57# mode: shell-script ***
61# tab-width: 4 *** 58# tab-width: 4 ***
62# indent-tabs-mode: t *** 59# indent-tabs-mode: t ***

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.16

  ViewVC Help
Powered by ViewVC 1.1.20