/[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.12
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.12 2005/07/06 20:20:03 agriffis 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" 11INHERITED="$INHERITED $ECLASS"
13
14source /usr/portage/eclass/elisp-common.eclass
15 12
16# SRC_URI should be set to wherever the primary app-emacs/ maintainer 13# SRC_URI should be set to wherever the primary app-emacs/ maintainer
17# keeps the local elisp mirror, since most app-emacs packages are 14# keeps the local elisp mirror, since most app-emacs packages are
18# upstream as a single .el file. 15# upstream as a single .el file.
19 16
20# Note: This is no longer necessary. 17# Note: This is no longer necessary.
21 18
22SRC_URI="http://cvs.gentoo.org/~mkennedy/app-emacs/${P}.el.bz2" 19SRC_URI="http://cvs.gentoo.org/~mkennedy/app-emacs/${P}.el.bz2"
20if [ "${SIMPLE_ELISP}" = 't' ]; then
23S="${WORKDIR}/" 21 S="${WORKDIR}/"
24newdepend "virtual/emacs" 22#else
23# Use default value
24# S="${WORKDIR}/${P}"
25fi
26
27DEPEND="virtual/emacs"
25IUSE="" 28IUSE=""
26 29
27src_unpack() { 30elisp_src_unpack() {
28 unpack ${A} 31 unpack ${A}
29 if [ "${SIMPLE_ELISP}" = 't' ] 32 if [ "${SIMPLE_ELISP}" = 't' ]
30 then 33 then
31 cd ${S} && mv ${P}.el ${PN}.el 34 cd ${S} && mv ${P}.el ${PN}.el
32 fi 35 fi
33} 36}
34 37
35src_compile() { 38elisp_src_compile() {
36 emacs --batch -f batch-byte-compile --no-site-file --no-init-file *.el || die 39 elisp-compile *.el || die
37} 40}
38 41
39src_install() { 42elisp_src_install() {
40 elisp-install ${PN} *.el *.elc 43 elisp-install ${PN} *.el *.elc
41 elisp-site-file-install ${FILESDIR}/${SITEFILE} 44 elisp-site-file-install ${FILESDIR}/${SITEFILE}
42} 45}
43 46
44pkg_postinst() { 47elisp_pkg_postinst() {
45 elisp-site-regen 48 elisp-site-regen
46} 49}
47 50
48pkg_postrm() { 51elisp_pkg_postrm() {
49 elisp-site-regen 52 elisp-site-regen
50} 53}
54
55EXPORT_FUNCTIONS src_unpack src_compile src_install \
56 pkg_postinst pkg_postrm
51 57
52# Local Variables: *** 58# Local Variables: ***
53# mode: shell-script *** 59# mode: shell-script ***
54# tab-width: 4 *** 60# tab-width: 4 ***
55# indent-tabs-mode: t *** 61# indent-tabs-mode: t ***

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

  ViewVC Help
Powered by ViewVC 1.1.20