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

Diff of /eclass/xemacs-elisp.eclass

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

Revision 1.1 Revision 1.4
1# Copyright 1999-2007 Gentoo Foundation 1# Copyright 1999-2011 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/xemacs-elisp.eclass,v 1.1 2007/09/15 07:19:22 graaff Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/xemacs-elisp.eclass,v 1.4 2011/12/27 17:55:13 fauli Exp $
4# 4#
5# Copyright 2007 Hans de Graaff <graaff@gentoo.org> 5# Copyright 2007-2011 Hans de Graaff <graaff@gentoo.org>
6# 6#
7# Based on elisp.eclass: 7# Based on elisp.eclass:
8# Copyright 2007 Christian Faulhammer <opfer@gentoo.org> 8# Copyright 2007 Christian Faulhammer <opfer@gentoo.org>
9# Copyright 2002-2003 Matthew Kennedy <mkennedy@gentoo.org> 9# Copyright 2002-2003 Matthew Kennedy <mkennedy@gentoo.org>
10# Copyright 2003 Jeremy Maitin-Shepard <jbms@attbi.com> 10# Copyright 2003 Jeremy Maitin-Shepard <jbms@attbi.com>
12# @ECLASS: xemacs-elisp.eclass 12# @ECLASS: xemacs-elisp.eclass
13# @MAINTAINER: 13# @MAINTAINER:
14# xemacs@gentoo.org 14# xemacs@gentoo.org
15# @BLURB: Eclass for XEmacs Lisp packages 15# @BLURB: Eclass for XEmacs Lisp packages
16# @DESCRIPTION: 16# @DESCRIPTION:
17#
18# Emacs support for other than pure elisp packages is handled by 17# 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 18# xemacs-elisp-common.eclass where you won't have a dependency on XEmacs
20# itself. All elisp-* functions are documented there. 19# itself. All elisp-* functions are documented there.
21# 20
22# @VARIABLE: SIMPLE_ELISP 21# @ECLASS-VARIABLE: SIMPLE_ELISP
22# @DEFAULT_UNSET
23# @DESCRIPTION: 23# @DESCRIPTION:
24# Setting SIMPLE_ELISP=t in an ebuild means, that the package's source 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 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 26# ${PN}-${PV}. This eclass will then redefine ${S}, and move
27# ${PN}-${PV}.el to ${PN}.el in src_unpack(). 27# ${PN}-${PV}.el to ${PN}.el in src_unpack().
43 cd "${S}" && mv ${P}.el ${PN}.el 43 cd "${S}" && mv ${P}.el ${PN}.el
44 fi 44 fi
45} 45}
46 46
47xemacs-elisp_src_compile() { 47xemacs-elisp_src_compile() {
48 xemacs-elisp-compile *.el || die "Compilation of lisp files failed" 48 xemacs-elisp-compile *.el
49} 49}
50 50
51xemacs-elisp_src_install () { 51xemacs-elisp_src_install () {
52 xemacs-elisp-install "${PN}" *.el *.elc 52 xemacs-elisp-install "${PN}" *.el *.elc
53} 53}

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.4

  ViewVC Help
Powered by ViewVC 1.1.20