Gentoo Archives: gentoo-commits

From: "Ulrich Mueller (ulm)" <ulm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in eclass: elisp.eclass elisp-common.eclass
Date: Thu, 08 Oct 2009 10:50:38
Message-Id: E1MvqZv-00033W-Pp@stork.gentoo.org
1 ulm 09/10/08 10:50:35
2
3 Modified: elisp.eclass elisp-common.eclass
4 Log:
5 Sync from Emacs overlay (revision 1453).
6
7 elisp.eclass:
8 Generate Info files from Texinfo sources listed in ELISP_TEXINFO.
9
10 elisp-common.eclass:
11 Mark site-gentoo.el as buffer-read-only, in order to prevent
12 unintentional edits. Add null strings to inhibit local variables
13 detection in the eclass file itself.
14
15 Revision Changes Path
16 1.43 eclass/elisp.eclass
17
18 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/elisp.eclass?rev=1.43&view=markup
19 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/elisp.eclass?rev=1.43&content-type=text/plain
20 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/elisp.eclass?r1=1.42&r2=1.43
21
22 Index: elisp.eclass
23 ===================================================================
24 RCS file: /var/cvsroot/gentoo-x86/eclass/elisp.eclass,v
25 retrieving revision 1.42
26 retrieving revision 1.43
27 diff -u -r1.42 -r1.43
28 --- elisp.eclass 25 Aug 2009 12:53:55 -0000 1.42
29 +++ elisp.eclass 8 Oct 2009 10:50:35 -0000 1.43
30 @@ -1,6 +1,6 @@
31 # Copyright 1999-2009 Gentoo Foundation
32 # Distributed under the terms of the GNU General Public License v2
33 -# $Header: /var/cvsroot/gentoo-x86/eclass/elisp.eclass,v 1.42 2009/08/25 12:53:55 ulm Exp $
34 +# $Header: /var/cvsroot/gentoo-x86/eclass/elisp.eclass,v 1.43 2009/10/08 10:50:35 ulm Exp $
35 #
36 # Copyright 2002-2003 Matthew Kennedy <mkennedy@g.o>
37 # Copyright 2003 Jeremy Maitin-Shepard <jbms@×××××.com>
38 @@ -33,11 +33,6 @@
39 # variable before inheriting elisp.eclass. Set it to the major version
40 # your package uses and the dependency will be adjusted.
41
42 -# @ECLASS-VARIABLE: DOCS
43 -# @DESCRIPTION:
44 -# DOCS="blah.txt ChangeLog" is automatically used to install the given
45 -# files by dodoc in src_install().
46 -
47 # @ECLASS-VARIABLE: ELISP_PATCHES
48 # @DESCRIPTION:
49 # Any patches to apply after unpacking the sources. Patches are searched
50 @@ -50,6 +45,16 @@
51 # reserved for internal use. "50${PN}-gentoo.el" is a reasonable choice
52 # in most cases.
53
54 +# @ECLASS-VARIABLE: ELISP_TEXINFO
55 +# @DESCRIPTION:
56 +# Space separated list of Texinfo sources. Respective GNU Info files
57 +# will be generated in src_compile() and installed in src_install().
58 +
59 +# @ECLASS-VARIABLE: DOCS
60 +# @DESCRIPTION:
61 +# DOCS="blah.txt ChangeLog" is automatically used to install the given
62 +# files by dodoc in src_install().
63 +
64 inherit elisp-common eutils
65
66 case "${EAPI:-0}" in
67 @@ -105,6 +110,9 @@
68
69 elisp_src_compile() {
70 elisp-compile *.el || die
71 + if [ -n "${ELISP_TEXINFO}" ]; then
72 + makeinfo ${ELISP_TEXINFO} || die
73 + fi
74 }
75
76 elisp_src_install() {
77 @@ -112,6 +120,10 @@
78 if [ -n "${SITEFILE}" ]; then
79 elisp-site-file-install "${FILESDIR}/${SITEFILE}" || die
80 fi
81 + if [ -n "${ELISP_TEXINFO}" ]; then
82 + set -- ${ELISP_TEXINFO}
83 + doinfo ${@/%.*/.info*} || die
84 + fi
85 if [ -n "${DOCS}" ]; then
86 dodoc ${DOCS} || die
87 fi
88
89
90
91 1.62 eclass/elisp-common.eclass
92
93 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/elisp-common.eclass?rev=1.62&view=markup
94 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/elisp-common.eclass?rev=1.62&content-type=text/plain
95 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/elisp-common.eclass?r1=1.61&r2=1.62
96
97 Index: elisp-common.eclass
98 ===================================================================
99 RCS file: /var/cvsroot/gentoo-x86/eclass/elisp-common.eclass,v
100 retrieving revision 1.61
101 retrieving revision 1.62
102 diff -u -r1.61 -r1.62
103 --- elisp-common.eclass 25 May 2009 16:25:32 -0000 1.61
104 +++ elisp-common.eclass 8 Oct 2009 10:50:35 -0000 1.62
105 @@ -1,6 +1,6 @@
106 # Copyright 1999-2009 Gentoo Foundation
107 # Distributed under the terms of the GNU General Public License v2
108 -# $Header: /var/cvsroot/gentoo-x86/eclass/elisp-common.eclass,v 1.61 2009/05/25 16:25:32 fauli Exp $
109 +# $Header: /var/cvsroot/gentoo-x86/eclass/elisp-common.eclass,v 1.62 2009/10/08 10:50:35 ulm Exp $
110 #
111 # Copyright 2002-2004 Matthew Kennedy <mkennedy@g.o>
112 # Copyright 2003 Jeremy Maitin-Shepard <jbms@×××××.com>
113 @@ -196,11 +196,11 @@
114 # Generate a file with autoload definitions for the lisp functions.
115
116 elisp-make-autoload-file() {
117 - local f="${1:-${PN}-autoloads.el}"
118 + local f="${1:-${PN}-autoloads.el}" null="" page=$'\f'
119 shift
120 ebegin "Generating autoload file for GNU Emacs"
121
122 - sed 's/^FF/\f/' >"${f}" <<-EOF
123 + cat >"${f}" <<-EOF
124 ;;; ${f##*/} --- autoloads for ${P}
125
126 ;;; Commentary:
127 @@ -208,12 +208,13 @@
128 ;; DO NOT EDIT THIS FILE
129
130 ;;; Code:
131 - FF
132 - ;; Local Variables:
133 + ${page}
134 + ;; Local ${null}Variables:
135 ;; version-control: never
136 ;; no-byte-compile: t
137 ;; no-update-autoloads: t
138 ;; End:
139 +
140 ;;; ${f##*/} ends here
141 EOF
142
143 @@ -282,7 +283,7 @@
144 # location is still supported when generating site-gentoo.el.
145
146 elisp-site-regen() {
147 - local i sf line obsolete
148 + local i sf line obsolete null="" page=$'\f'
149 local -a sflist
150
151 if [ ! -d "${ROOT}${SITELISP}" ]; then
152 @@ -336,9 +337,12 @@
153
154 (provide 'site-gentoo)
155
156 - ;; Local Variables:
157 + ${page}
158 + ;; Local ${null}Variables:
159 ;; no-byte-compile: t
160 + ;; buffer-read-only: t
161 ;; End:
162 +
163 ;;; site-gentoo.el ends here
164 EOF