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

Diff of /eclass/elisp.eclass

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

Revision 1.57 Revision 1.58
1# Copyright 1999-2013 Gentoo Foundation 1# Copyright 1999-2014 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.57 2013/03/16 08:55:30 ulm Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/elisp.eclass,v 1.58 2014/06/07 10:28:16 ulm Exp $
4# 4#
5# @ECLASS: elisp.eclass 5# @ECLASS: elisp.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# Gentoo Emacs team <emacs@gentoo.org> 7# Gentoo Emacs team <emacs@gentoo.org>
8# @AUTHOR: 8# @AUTHOR:
27# ${PN}.el in src_unpack(). 27# ${PN}.el in src_unpack().
28 28
29# @ECLASS-VARIABLE: NEED_EMACS 29# @ECLASS-VARIABLE: NEED_EMACS
30# @DEFAULT_UNSET 30# @DEFAULT_UNSET
31# @DESCRIPTION: 31# @DESCRIPTION:
32# If you need anything different from Emacs 21, use the NEED_EMACS 32# If you need anything different from Emacs 23, use the NEED_EMACS
33# variable before inheriting elisp.eclass. Set it to the major version 33# variable before inheriting elisp.eclass. Set it to the major version
34# your package uses and the dependency will be adjusted. 34# your package uses and the dependency will be adjusted.
35 35
36# @ECLASS-VARIABLE: ELISP_PATCHES 36# @ECLASS-VARIABLE: ELISP_PATCHES
37# @DEFAULT_UNSET 37# @DEFAULT_UNSET
72 pkg_{setup,postinst,postrm} ;; 72 pkg_{setup,postinst,postrm} ;;
73 *) EXPORT_FUNCTIONS src_{unpack,prepare,configure,compile,install} \ 73 *) EXPORT_FUNCTIONS src_{unpack,prepare,configure,compile,install} \
74 pkg_{setup,postinst,postrm} ;; 74 pkg_{setup,postinst,postrm} ;;
75esac 75esac
76 76
77DEPEND=">=virtual/emacs-${NEED_EMACS:-21}" 77DEPEND=">=virtual/emacs-${NEED_EMACS:-23}"
78RDEPEND="${DEPEND}" 78RDEPEND="${DEPEND}"
79 79
80# @FUNCTION: elisp_pkg_setup 80# @FUNCTION: elisp_pkg_setup
81# @DESCRIPTION: 81# @DESCRIPTION:
82# Test if the eselected Emacs version is sufficient to fulfil the major 82# Test if the eselected Emacs version is sufficient to fulfil the major
83# version requirement of the NEED_EMACS variable. 83# version requirement of the NEED_EMACS variable.
84 84
85elisp_pkg_setup() { 85elisp_pkg_setup() {
86 elisp-need-emacs "${NEED_EMACS:-21}" 86 elisp-need-emacs "${NEED_EMACS:-23}"
87 case $? in 87 case $? in
88 0) ;; 88 0) ;;
89 1) die "Emacs version too low" ;; 89 1) die "Emacs version too low" ;;
90 *) die "Could not determine Emacs version" ;; 90 *) die "Could not determine Emacs version" ;;
91 esac 91 esac

Legend:
Removed from v.1.57  
changed lines
  Added in v.1.58

  ViewVC Help
Powered by ViewVC 1.1.20