/[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.45 Revision 1.46
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.45 2008/09/01 10:45:26 ulm Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/elisp-common.eclass,v 1.46 2008/09/19 08:12:48 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>
177 177
178# #FUNCTION: elisp-comp 178# #FUNCTION: elisp-comp
179# #USAGE: <list of elisp files> 179# #USAGE: <list of elisp files>
180# #DESCRIPTION: 180# #DESCRIPTION:
181# Byte-compile interdependent Emacs Lisp files. 181# Byte-compile interdependent Emacs Lisp files.
182# THIS FUNCTION IS DEPRECATED.
182# 183#
183# This function byte-compiles all ".el" files which are part of its 184# This function byte-compiles all ".el" files which are part of its
184# arguments, using GNU Emacs, and puts the resulting ".elc" files into the 185# arguments, using GNU Emacs, and puts the resulting ".elc" files into the
185# current directory, so disregarding the original directories used in ".el" 186# current directory, so disregarding the original directories used in ".el"
186# arguments. 187# arguments.
191 192
192elisp-comp() { 193elisp-comp() {
193 # Copyright 1995 Free Software Foundation, Inc. 194 # Copyright 1995 Free Software Foundation, Inc.
194 # Fran├žois Pinard <pinard@iro.umontreal.ca>, 1995. 195 # Fran├žois Pinard <pinard@iro.umontreal.ca>, 1995.
195 # Originally taken from GNU autotools. 196 # Originally taken from GNU autotools.
197
198 ewarn "Function elisp-comp is deprecated and may be removed in future."
199 ewarn "Please use function elisp-compile instead, or report a bug about"
200 ewarn "${CATEGORY}/${PF} at <http://bugs.gentoo.org/>."
201 echo
196 202
197 [ $# -gt 0 ] || return 1 203 [ $# -gt 0 ] || return 1
198 204
199 ebegin "Compiling GNU Emacs Elisp files" 205 ebegin "Compiling GNU Emacs Elisp files"
200 206
389 else 395 else
390 mv "${tmpdir}"/site-gentoo.el "${ROOT}${SITELISP}"/site-gentoo.el 396 mv "${tmpdir}"/site-gentoo.el "${ROOT}${SITELISP}"/site-gentoo.el
391 [ -f "${tmpdir}"/site-start.el ] \ 397 [ -f "${tmpdir}"/site-start.el ] \
392 && [ ! -e "${ROOT}${SITELISP}"/site-start.el ] \ 398 && [ ! -e "${ROOT}${SITELISP}"/site-start.el ] \
393 && mv "${tmpdir}"/site-start.el "${ROOT}${SITELISP}"/site-start.el 399 && mv "${tmpdir}"/site-start.el "${ROOT}${SITELISP}"/site-start.el
394 echo; einfo 400 echo
395 for sf in "${sflist[@]##*/}"; do 401 for sf in "${sflist[@]##*/}"; do
396 einfo " Adding ${sf} ..." 402 einfo " Adding ${sf} ..."
397 done 403 done
398 einfo "Regenerated ${SITELISP}/site-gentoo.el." 404 einfo "Regenerated ${SITELISP}/site-gentoo.el."
399 405
416 EOF 422 EOF
417 echo 423 echo
418 fi 424 fi
419 425
420 if [ "${obsolete}" ]; then 426 if [ "${obsolete}" ]; then
427 echo
421 while read line; do ewarn "${line}"; done <<-EOF 428 while read line; do ewarn "${line}"; done <<-EOF
422 Site-initialisation files of Emacs packages are now installed in 429 Site-initialisation files of Emacs packages are now installed in
423 /usr/share/emacs/site-lisp/site-gentoo.d/. We strongly recommend 430 /usr/share/emacs/site-lisp/site-gentoo.d/. We strongly recommend
424 that you use /usr/sbin/emacs-updater to rebuild the installed 431 that you use app-admin/emacs-updater to rebuild the installed
425 Emacs packages. 432 Emacs packages.
426 EOF 433 EOF
427 echo
428 434
429 # Kludge for backwards compatibility: During pkg_postrm, old versions 435 # Kludge for backwards compatibility: During pkg_postrm, old versions
430 # of this eclass (saved in the VDB) won't find packages' site-init 436 # of this eclass (saved in the VDB) won't find packages' site-init
431 # files in the new location. So we copy them to an auxiliary file 437 # files in the new location. So we copy them to an auxiliary file
432 # that is visible to old eclass versions. 438 # that is visible to old eclass versions.

Legend:
Removed from v.1.45  
changed lines
  Added in v.1.46

  ViewVC Help
Powered by ViewVC 1.1.20