/[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.22 Revision 1.23
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-common.eclass,v 1.22 2007/07/02 06:19:18 opfer Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/elisp-common.eclass,v 1.23 2007/07/09 13:40:58 flameeyes Exp $
4# 4#
5# Copyright 2007 Christian Faulhammer <opfer@gentoo.org> 5# Copyright 2007 Christian Faulhammer <opfer@gentoo.org>
6# Copyright 2002-2007 Matthew Kennedy <mkennedy@gentoo.org> 6# Copyright 2002-2007 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>
119# elisp-emacs-version() outputs the version of the currently active Emacs. 119# elisp-emacs-version() outputs the version of the currently active Emacs.
120# 120#
121# As always: Feel free to contact Emacs team through emacs@gentoo.org if you 121# As always: Feel free to contact Emacs team through emacs@gentoo.org if you
122# have problems, suggestions or questions. 122# have problems, suggestions or questions.
123 123
124IUSE="userland_GNU"
125
124SITELISP=/usr/share/emacs/site-lisp 126SITELISP=/usr/share/emacs/site-lisp
125 127
126elisp-compile() { 128elisp-compile() {
127 einfo "Compiling GNU Emacs Elisp files ..." 129 einfo "Compiling GNU Emacs Elisp files ..."
128 /usr/bin/emacs -batch -q --no-site-file -f batch-byte-compile $* 130 /usr/bin/emacs -batch -q --no-site-file -f batch-byte-compile $*
203 # This prevents outputting unnecessary text when there 205 # This prevents outputting unnecessary text when there
204 # was actually no change 206 # was actually no change
205 # A case is a remerge where we have doubled output 207 # A case is a remerge where we have doubled output
206 einfo "... no changes" 208 einfo "... no changes"
207 else 209 else
210 local mvopts=""
211 use userland_GNU && mvopts="-b"
208 mv -b "${T}"/site-gentoo.el "${ROOT}${SITELISP}"/site-gentoo.el 212 mv ${mvopts} "${T}"/site-gentoo.el "${ROOT}${SITELISP}"/site-gentoo.el
209 einfo "" 213 einfo ""
210 for sf in ${sflist}; do 214 for sf in ${sflist}; do
211 einfo " Adding ${sf} ..." 215 einfo " Adding ${sf} ..."
212 done 216 done
213 while read line; do einfo "${line}"; done <<EOF 217 while read line; do einfo "${line}"; done <<EOF

Legend:
Removed from v.1.22  
changed lines
  Added in v.1.23

  ViewVC Help
Powered by ViewVC 1.1.20