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

Contents of /eclass/xemacs-elisp.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Tue Sep 25 18:27:12 2007 UTC (6 years, 11 months ago) by graaff
Branch: MAIN
Changes since 1.1: +1 -1 lines
Add xemacs-elisp-comp to allow compiling of interdependent elisp
files, needed for octave ebuild patch. Fix documentation. Die
consistently at the same level and document this behavior.

1 # Copyright 1999-2007 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/eclass/elisp.eclass,v 1.18 2007/04/16 15:41:02 opfer Exp $
4 #
5 # Copyright 2007 Hans de Graaff <graaff@gentoo.org>
6 #
7 # Based on elisp.eclass:
8 # Copyright 2007 Christian Faulhammer <opfer@gentoo.org>
9 # Copyright 2002-2003 Matthew Kennedy <mkennedy@gentoo.org>
10 # Copyright 2003 Jeremy Maitin-Shepard <jbms@attbi.com>
11 #
12 # @ECLASS: xemacs-elisp.eclass
13 # @MAINTAINER:
14 # xemacs@gentoo.org
15 # @BLURB: Eclass for XEmacs Lisp packages
16 # @DESCRIPTION:
17 #
18 # Emacs support for other than pure elisp packages is handled by
19 # xemacs-elisp-common.eclass where you won't have a dependency on XEmacs
20 # itself. All elisp-* functions are documented there.
21 #
22 # @VARIABLE: SIMPLE_ELISP
23 # @DESCRIPTION:
24 # Setting SIMPLE_ELISP=t in an ebuild means, that the package's source
25 # is a single (in whatever way) compressed elisp file with the file name
26 # ${PN}-${PV}. This eclass will then redefine ${S}, and move
27 # ${PN}-${PV}.el to ${PN}.el in src_unpack().
28
29 inherit xemacs-elisp-common
30
31 if [ "${SIMPLE_ELISP}" = 't' ]; then
32 S="${WORKDIR}/"
33 fi
34
35
36 DEPEND="app-editors/xemacs"
37 IUSE=""
38
39 xemacs-elisp_src_unpack() {
40 unpack ${A}
41 if [ "${SIMPLE_ELISP}" = 't' ]
42 then
43 cd "${S}" && mv ${P}.el ${PN}.el
44 fi
45 }
46
47 xemacs-elisp_src_compile() {
48 xemacs-elisp-compile *.el
49 }
50
51 xemacs-elisp_src_install () {
52 xemacs-elisp-install "${PN}" *.el *.elc
53 }
54
55 EXPORT_FUNCTIONS src_unpack src_compile src_install

  ViewVC Help
Powered by ViewVC 1.1.20