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

Diff of /eclass/elisp.eclass

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

Revision 1.52 Revision 1.56
1# Copyright 1999-2011 Gentoo Foundation 1# Copyright 1999-2013 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.52 2011/08/30 20:10:13 ulm Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/elisp.eclass,v 1.56 2013/01/04 21:22:43 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:
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
38# @DESCRIPTION: 38# @DESCRIPTION:
39# Any patches to apply after unpacking the sources. Patch files are 39# Space separated list of patches to apply after unpacking the sources.
40# searched for in the current working dir, WORKDIR, and FILESDIR. 40# Patch files are searched for in the current working dir, WORKDIR, and
41# FILESDIR.
42
43# @ECLASS-VARIABLE: ELISP_REMOVE
44# @DEFAULT_UNSET
45# @DESCRIPTION:
46# Space separated list of files to remove after unpacking the sources.
41 47
42# @ECLASS-VARIABLE: SITEFILE 48# @ECLASS-VARIABLE: SITEFILE
43# @DEFAULT_UNSET 49# @DEFAULT_UNSET
44# @DESCRIPTION: 50# @DESCRIPTION:
45# Name of package's site-init file. The filename must match the shell 51# Name of package's site-init file. The filename must match the shell
68 pkg_{setup,postinst,postrm} ;; 74 pkg_{setup,postinst,postrm} ;;
69esac 75esac
70 76
71DEPEND=">=virtual/emacs-${NEED_EMACS:-21}" 77DEPEND=">=virtual/emacs-${NEED_EMACS:-21}"
72RDEPEND="${DEPEND}" 78RDEPEND="${DEPEND}"
73IUSE=""
74 79
75# @FUNCTION: elisp_pkg_setup 80# @FUNCTION: elisp_pkg_setup
76# @DESCRIPTION: 81# @DESCRIPTION:
77# 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
78# version requirement of the NEED_EMACS variable. 83# version requirement of the NEED_EMACS variable.
79 84
80elisp_pkg_setup() { 85elisp_pkg_setup() {
81 elisp-need-emacs "${NEED_EMACS:-21}" || die "Emacs version too low" 86 elisp-need-emacs "${NEED_EMACS:-21}"
87 case $? in
88 0) ;;
89 1) die "Emacs version too low" ;;
90 *) die "Could not determine Emacs version" ;;
91 esac
82} 92}
83 93
84# @FUNCTION: elisp_src_unpack 94# @FUNCTION: elisp_src_unpack
85# @DESCRIPTION: 95# @DESCRIPTION:
86# Unpack the sources; also handle the case of a single *.el file in 96# Unpack the sources; also handle the case of a single *.el file in
117 epatch "${FILESDIR}/${patch}" 127 epatch "${FILESDIR}/${patch}"
118 else 128 else
119 die "Cannot find ${patch}" 129 die "Cannot find ${patch}"
120 fi 130 fi
121 done 131 done
132
133 # apply any user patches
134 epatch_user
135
136 if [[ -n ${ELISP_REMOVE} ]]; then
137 rm ${ELISP_REMOVE} || die
138 fi
122} 139}
123 140
124# @FUNCTION: elisp_src_configure 141# @FUNCTION: elisp_src_configure
125# @DESCRIPTION: 142# @DESCRIPTION:
126# Do nothing, because Emacs packages seldomly bring a full build system. 143# Do nothing, because Emacs packages seldomly bring a full build system.

Legend:
Removed from v.1.52  
changed lines
  Added in v.1.56

  ViewVC Help
Powered by ViewVC 1.1.20