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

Diff of /eclass/elisp.eclass

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

Revision 1.56 Revision 1.57
1# Copyright 1999-2013 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.56 2013/01/04 21:22:43 ulm Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/elisp.eclass,v 1.57 2013/03/16 08:55:30 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:
149# Call elisp-compile to byte-compile all Emacs Lisp (*.el) files. 149# Call elisp-compile to byte-compile all Emacs Lisp (*.el) files.
150# If ELISP_TEXINFO lists any Texinfo sources, call makeinfo to generate 150# If ELISP_TEXINFO lists any Texinfo sources, call makeinfo to generate
151# GNU Info files from them. 151# GNU Info files from them.
152 152
153elisp_src_compile() { 153elisp_src_compile() {
154 elisp-compile *.el || die 154 elisp-compile *.el
155 if [[ -n ${ELISP_TEXINFO} ]]; then 155 if [[ -n ${ELISP_TEXINFO} ]]; then
156 makeinfo ${ELISP_TEXINFO} || die 156 makeinfo ${ELISP_TEXINFO} || die
157 fi 157 fi
158} 158}
159 159
163# If the SITEFILE variable specifies a site-init file, install it with 163# If the SITEFILE variable specifies a site-init file, install it with
164# elisp-site-file-install. Also install any GNU Info files listed in 164# elisp-site-file-install. Also install any GNU Info files listed in
165# ELISP_TEXINFO and documentation listed in the DOCS variable. 165# ELISP_TEXINFO and documentation listed in the DOCS variable.
166 166
167elisp_src_install() { 167elisp_src_install() {
168 elisp-install ${PN} *.el *.elc || die 168 elisp-install ${PN} *.el *.elc
169 if [[ -n ${SITEFILE} ]]; then 169 if [[ -n ${SITEFILE} ]]; then
170 elisp-site-file-install "${FILESDIR}/${SITEFILE}" || die 170 elisp-site-file-install "${FILESDIR}/${SITEFILE}"
171 fi 171 fi
172 if [[ -n ${ELISP_TEXINFO} ]]; then 172 if [[ -n ${ELISP_TEXINFO} ]]; then
173 set -- ${ELISP_TEXINFO} 173 set -- ${ELISP_TEXINFO}
174 set -- ${@##*/} 174 set -- ${@##*/}
175 doinfo ${@/%.*/.info*} || die 175 doinfo ${@/%.*/.info*} || die
176 fi 176 fi
177 if [[ -n ${DOCS} ]]; then 177 if [[ -n ${DOCS} ]]; then
178 dodoc ${DOCS} || die 178 dodoc ${DOCS} || die
179 fi 179 fi
180 if declare -f readme.gentoo_create_doc >/dev/null; then
181 readme.gentoo_create_doc
182 fi
180} 183}
181 184
182# @FUNCTION: elisp_pkg_postinst 185# @FUNCTION: elisp_pkg_postinst
183# @DESCRIPTION: 186# @DESCRIPTION:
184# Call elisp-site-regen, in order to collect the site initialisation for 187# Call elisp-site-regen, in order to collect the site initialisation for
185# all installed Emacs Lisp packages in the site-gentoo.el file. 188# all installed Emacs Lisp packages in the site-gentoo.el file.
186 189
187elisp_pkg_postinst() { 190elisp_pkg_postinst() {
188 elisp-site-regen 191 elisp-site-regen
192 if declare -f readme.gentoo_print_elog >/dev/null; then
193 readme.gentoo_print_elog
194 fi
189} 195}
190 196
191# @FUNCTION: elisp_pkg_postrm 197# @FUNCTION: elisp_pkg_postrm
192# @DESCRIPTION: 198# @DESCRIPTION:
193# Call elisp-site-regen, in order to collect the site initialisation for 199# Call elisp-site-regen, in order to collect the site initialisation for

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

  ViewVC Help
Powered by ViewVC 1.1.20