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

Diff of /eclass/elisp-common.eclass

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

Revision 1.50 Revision 1.52
1# Copyright 1999-2008 Gentoo Foundation 1# Copyright 1999-2008 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-common.eclass,v 1.50 2008/10/16 09:28:58 ulm Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/elisp-common.eclass,v 1.52 2008/11/24 14:21:04 ulm Exp $
4# 4#
5# Copyright 2002-2004 Matthew Kennedy <mkennedy@gentoo.org> 5# Copyright 2002-2004 Matthew Kennedy <mkennedy@gentoo.org>
6# Copyright 2003 Jeremy Maitin-Shepard <jbms@attbi.com> 6# Copyright 2003 Jeremy Maitin-Shepard <jbms@attbi.com>
7# Copyright 2004-2005 Mamoru Komachi <usata@gentoo.org> 7# Copyright 2004-2005 Mamoru Komachi <usata@gentoo.org>
8# Copyright 2007-2008 Christian Faulhammer <opfer@gentoo.org> 8# Copyright 2007-2008 Christian Faulhammer <opfer@gentoo.org>
136 136
137# @ECLASS-VARIABLE: SITEETC 137# @ECLASS-VARIABLE: SITEETC
138# @DESCRIPTION: 138# @DESCRIPTION:
139# Directory where packages install miscellaneous (not Lisp) files. 139# Directory where packages install miscellaneous (not Lisp) files.
140SITEETC=/usr/share/emacs/etc 140SITEETC=/usr/share/emacs/etc
141
142# @ECLASS-VARIABLE: SITEFILE
143# @DESCRIPTION:
144# Name of package's site-init file.
145SITEFILE=50${PN}-gentoo.el
146 141
147# @ECLASS-VARIABLE: EMACS 142# @ECLASS-VARIABLE: EMACS
148# @DESCRIPTION: 143# @DESCRIPTION:
149# Path of Emacs executable. 144# Path of Emacs executable.
150EMACS=/usr/bin/emacs 145EMACS=/usr/bin/emacs
294elisp-site-file-install() { 289elisp-site-file-install() {
295 local sf="${T}/${1##*/}" my_pn="${2:-${PN}}" ret 290 local sf="${T}/${1##*/}" my_pn="${2:-${PN}}" ret
296 ebegin "Installing site initialisation file for GNU Emacs" 291 ebegin "Installing site initialisation file for GNU Emacs"
297 cp "$1" "${sf}" 292 cp "$1" "${sf}"
298 sed -i -e "s:@SITELISP@:${SITELISP}/${my_pn}:g" \ 293 sed -i -e "s:@SITELISP@:${SITELISP}/${my_pn}:g" \
299 -e "s:@SITEETC@:${SITEETC}/${my_pn}:g" "${sf}" 294 -e "s:@SITEETC@:${SITEETC}/${my_pn}:g;\$q" "${sf}"
300 ( # subshell to avoid pollution of calling environment 295 ( # subshell to avoid pollution of calling environment
301 insinto "${SITELISP}/site-gentoo.d" 296 insinto "${SITELISP}/site-gentoo.d"
302 doins "${sf}" 297 doins "${sf}"
303 ) 298 )
304 ret=$? 299 ret=$?

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

  ViewVC Help
Powered by ViewVC 1.1.20