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

Diff of /eclass/elisp.eclass

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

Revision 1.24 Revision 1.25
1# Copyright 1999-2007 Gentoo Foundation 1# Copyright 1999-2007 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.24 2007/10/14 22:12:30 ulm Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/elisp.eclass,v 1.25 2007/12/04 13:11:15 ulm Exp $
4# 4#
5# Copyright 2007 Christian Faulhammer <opfer@gentoo.org> 5# Copyright 2007 Christian Faulhammer <opfer@gentoo.org>
6# Copyright 2002-2003 Matthew Kennedy <mkennedy@gentoo.org> 6# Copyright 2002-2003 Matthew Kennedy <mkennedy@gentoo.org>
7# Copyright 2003 Jeremy Maitin-Shepard <jbms@attbi.com> 7# Copyright 2003 Jeremy Maitin-Shepard <jbms@attbi.com>
8# Copyright 2007 Ulrich Mueller <ulm@gentoo.org> 8# Copyright 2007 Ulrich Mueller <ulm@gentoo.org>
43VERSION=${NEED_EMACS:-21} 43VERSION=${NEED_EMACS:-21}
44DEPEND=">=virtual/emacs-${VERSION}" 44DEPEND=">=virtual/emacs-${VERSION}"
45RDEPEND=">=virtual/emacs-${VERSION}" 45RDEPEND=">=virtual/emacs-${VERSION}"
46IUSE="" 46IUSE=""
47 47
48if [ "${SIMPLE_ELISP}" = 't' ]; then
49 S="${WORKDIR}"
50fi
51
52elisp_pkg_setup() { 48elisp_pkg_setup() {
53 local emacs_version="$(elisp-emacs-version)" 49 local emacs_version="$(elisp-emacs-version)"
54 if ! version_is_at_least "${VERSION}" "${emacs_version}"; then 50 if ! version_is_at_least "${VERSION}" "${emacs_version}"; then
55 eerror "This package needs at least Emacs ${VERSION}." 51 eerror "This package needs at least Emacs ${VERSION}."
56 eerror "Use \"eselect emacs\" to select the active version." 52 eerror "Use \"eselect emacs\" to select the active version."
57 die "Emacs version ${emacs_version} is too low." 53 die "Emacs version ${emacs_version} is too low."
58 fi 54 fi
55
56 if [ "${SIMPLE_ELISP}" = 't' ]; then
57 S="${WORKDIR}"
58 fi
59} 59}
60 60
61elisp_src_unpack() { 61elisp_src_unpack() {
62 unpack ${A} 62 unpack ${A}
63 if [ "${SIMPLE_ELISP}" = 't' ]; then 63 if [ "${SIMPLE_ELISP}" = 't' ]; then
64 cd "${S}" && mv ${P}.el ${PN}.el 64 cd "${S}" && mv ${P}.el ${PN}.el \
65 || die "mv ${P}.el ${PN}.el failed"
65 fi 66 fi
66} 67}
67 68
68elisp_src_compile() { 69elisp_src_compile() {
69 elisp-compile *.el || die "elisp-compile failed" 70 elisp-compile *.el || die "elisp-compile failed"

Legend:
Removed from v.1.24  
changed lines
  Added in v.1.25

  ViewVC Help
Powered by ViewVC 1.1.20