1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
5 # Copyright 2007-2011 Hans de Graaff <graaff@gentoo.org>
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>
12 # @ECLASS: xemacs-elisp.eclass
15 # @BLURB: Eclass for XEmacs Lisp packages
17 # Emacs support for other than pure elisp packages is handled by
18 # xemacs-elisp-common.eclass where you won't have a dependency on XEmacs
19 # itself. All elisp-* functions are documented there.
21 # @ECLASS-VARIABLE: SIMPLE_ELISP
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().
29 inherit xemacs-elisp-common
31 if [ "${SIMPLE_ELISP}" = 't' ]; then
36 DEPEND="app-editors/xemacs"
39 xemacs-elisp_src_unpack() {
41 if [ "${SIMPLE_ELISP}" = 't' ]
43 cd "${S}" && mv ${P}.el ${PN}.el
47 xemacs-elisp_src_compile() {
48 xemacs-elisp-compile *.el
51 xemacs-elisp_src_install () {
52 xemacs-elisp-install "${PN}" *.el *.elc
55 EXPORT_FUNCTIONS src_unpack src_compile src_install