/[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.55
1# Copyright 1999-2011 Gentoo Foundation 1# Copyright 1999-2012 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.55 2012/08/17 20:29:24 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.
117 epatch "${FILESDIR}/${patch}" 122 epatch "${FILESDIR}/${patch}"
118 else 123 else
119 die "Cannot find ${patch}" 124 die "Cannot find ${patch}"
120 fi 125 fi
121 done 126 done
127
128 # apply any user patches
129 epatch_user
130
131 if [[ -n ${ELISP_REMOVE} ]]; then
132 rm ${ELISP_REMOVE} || die
133 fi
122} 134}
123 135
124# @FUNCTION: elisp_src_configure 136# @FUNCTION: elisp_src_configure
125# @DESCRIPTION: 137# @DESCRIPTION:
126# Do nothing, because Emacs packages seldomly bring a full build system. 138# Do nothing, because Emacs packages seldomly bring a full build system.

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

  ViewVC Help
Powered by ViewVC 1.1.20