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

Diff of /eclass/elisp.eclass

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

Revision 1.26 Revision 1.27
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.26 2007/12/07 00:16:24 opfer Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/elisp.eclass,v 1.27 2007/12/07 13:52:20 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
48elisp_pkg_setup() { 52elisp_pkg_setup() {
49 local emacs_version="$(elisp-emacs-version)" 53 local emacs_version="$(elisp-emacs-version)"
50 if ! version_is_at_least "${VERSION}" "${emacs_version}"; then 54 if ! version_is_at_least "${VERSION}" "${emacs_version}"; then
51 eerror "This package needs at least Emacs ${VERSION}." 55 eerror "This package needs at least Emacs ${VERSION}."
52 eerror "Use \"eselect emacs\" to select the active version." 56 eerror "Use \"eselect emacs\" to select the active version."
53 die "Emacs version ${emacs_version} is too low." 57 die "Emacs version ${emacs_version} is too low."
54 fi 58 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 "${WORKDIR}" && mv ${P}.el ${PN}.el \ 64 mv ${P}.el ${PN}.el || die "mv ${P}.el ${PN}.el failed"
65 || die "mv ${P}.el ${PN}.el failed"
66 fi 65 fi
67} 66}
68 67
69elisp_src_compile() { 68elisp_src_compile() {
70 elisp-compile *.el || die "elisp-compile failed" 69 elisp-compile *.el || die "elisp-compile failed"

Legend:
Removed from v.1.26  
changed lines
  Added in v.1.27

  ViewVC Help
Powered by ViewVC 1.1.20