1 |
ulm 10/08/22 08:30:32 |
2 |
|
3 |
Modified: elisp.eclass elisp-common.eclass |
4 |
Log: |
5 |
Sync eclasses from Emacs overlay (revision 1506). |
6 |
|
7 |
elisp.eclass: |
8 |
Update documentation. |
9 |
|
10 |
elisp-common.eclass: |
11 |
The nullglob shell option is not needed in elisp-site-regen, because |
12 |
inside the loop we test for existence of all files. See also bug 328863. |
13 |
The temporary file needs only be removed in the no changes case. |
14 |
|
15 |
Revision Changes Path |
16 |
1.45 eclass/elisp.eclass |
17 |
|
18 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/elisp.eclass?rev=1.45&view=markup |
19 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/elisp.eclass?rev=1.45&content-type=text/plain |
20 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/elisp.eclass?r1=1.44&r2=1.45 |
21 |
|
22 |
Index: elisp.eclass |
23 |
=================================================================== |
24 |
RCS file: /var/cvsroot/gentoo-x86/eclass/elisp.eclass,v |
25 |
retrieving revision 1.44 |
26 |
retrieving revision 1.45 |
27 |
diff -u -r1.44 -r1.45 |
28 |
--- elisp.eclass 30 Jan 2010 22:54:00 -0000 1.44 |
29 |
+++ elisp.eclass 22 Aug 2010 08:30:32 -0000 1.45 |
30 |
@@ -1,6 +1,6 @@ |
31 |
# Copyright 1999-2010 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.44 2010/01/30 22:54:00 ulm Exp $ |
34 |
+# $Header: /var/cvsroot/gentoo-x86/eclass/elisp.eclass,v 1.45 2010/08/22 08:30:32 ulm Exp $ |
35 |
# |
36 |
# Copyright 2002-2003 Matthew Kennedy <mkennedy@g.o> |
37 |
# Copyright 2003 Jeremy Maitin-Shepard <jbms@×××××.com> |
38 |
@@ -28,17 +28,20 @@ |
39 |
# ${PN}.el in src_unpack(). |
40 |
|
41 |
# @ECLASS-VARIABLE: NEED_EMACS |
42 |
+# @DEFAULT_UNSET |
43 |
# @DESCRIPTION: |
44 |
# If you need anything different from Emacs 21, use the NEED_EMACS |
45 |
# variable before inheriting elisp.eclass. Set it to the major version |
46 |
# your package uses and the dependency will be adjusted. |
47 |
|
48 |
# @ECLASS-VARIABLE: ELISP_PATCHES |
49 |
+# @DEFAULT_UNSET |
50 |
# @DESCRIPTION: |
51 |
# Any patches to apply after unpacking the sources. Patches are searched |
52 |
# both in ${PWD} and ${FILESDIR}. |
53 |
|
54 |
# @ECLASS-VARIABLE: SITEFILE |
55 |
+# @DEFAULT_UNSET |
56 |
# @DESCRIPTION: |
57 |
# Name of package's site-init file. The filename must match the shell |
58 |
# pattern "[1-8][0-9]*-gentoo.el"; numbers below 10 and above 89 are |
59 |
@@ -46,11 +49,13 @@ |
60 |
# in most cases. |
61 |
|
62 |
# @ECLASS-VARIABLE: ELISP_TEXINFO |
63 |
+# @DEFAULT_UNSET |
64 |
# @DESCRIPTION: |
65 |
# Space separated list of Texinfo sources. Respective GNU Info files |
66 |
# will be generated in src_compile() and installed in src_install(). |
67 |
|
68 |
# @ECLASS-VARIABLE: DOCS |
69 |
+# @DEFAULT_UNSET |
70 |
# @DESCRIPTION: |
71 |
# DOCS="blah.txt ChangeLog" is automatically used to install the given |
72 |
# files by dodoc in src_install(). |
73 |
|
74 |
|
75 |
|
76 |
1.66 eclass/elisp-common.eclass |
77 |
|
78 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/elisp-common.eclass?rev=1.66&view=markup |
79 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/elisp-common.eclass?rev=1.66&content-type=text/plain |
80 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/elisp-common.eclass?r1=1.65&r2=1.66 |
81 |
|
82 |
Index: elisp-common.eclass |
83 |
=================================================================== |
84 |
RCS file: /var/cvsroot/gentoo-x86/eclass/elisp-common.eclass,v |
85 |
retrieving revision 1.65 |
86 |
retrieving revision 1.66 |
87 |
diff -u -r1.65 -r1.66 |
88 |
--- elisp-common.eclass 29 Dec 2009 20:15:12 -0000 1.65 |
89 |
+++ elisp-common.eclass 22 Aug 2010 08:30:32 -0000 1.66 |
90 |
@@ -1,12 +1,12 @@ |
91 |
-# Copyright 1999-2009 Gentoo Foundation |
92 |
+# Copyright 1999-2010 Gentoo Foundation |
93 |
# Distributed under the terms of the GNU General Public License v2 |
94 |
-# $Header: /var/cvsroot/gentoo-x86/eclass/elisp-common.eclass,v 1.65 2009/12/29 20:15:12 ulm Exp $ |
95 |
+# $Header: /var/cvsroot/gentoo-x86/eclass/elisp-common.eclass,v 1.66 2010/08/22 08:30:32 ulm Exp $ |
96 |
# |
97 |
# Copyright 2002-2004 Matthew Kennedy <mkennedy@g.o> |
98 |
# Copyright 2003 Jeremy Maitin-Shepard <jbms@×××××.com> |
99 |
# Copyright 2004-2005 Mamoru Komachi <usata@g.o> |
100 |
# Copyright 2007-2008 Christian Faulhammer <fauli@g.o> |
101 |
-# Copyright 2007-2009 Ulrich Müller <ulm@g.o> |
102 |
+# Copyright 2007-2010 Ulrich Müller <ulm@g.o> |
103 |
# |
104 |
# @ECLASS: elisp-common.eclass |
105 |
# @MAINTAINER: |
106 |
@@ -303,10 +303,6 @@ |
107 |
# auxiliary file for backwards compatibility. Remove any such file. |
108 |
rm -f "${sitelisp}"/00site-gentoo.el |
109 |
|
110 |
- # set nullglob option, there may be a directory without matching files |
111 |
- local old_shopts=$(shopt -p nullglob) |
112 |
- shopt -s nullglob |
113 |
- |
114 |
for sf in "${sitelisp}"/[0-9][0-9]*-gentoo.el \ |
115 |
"${sitelisp}"/site-gentoo.d/[0-9][0-9]*.el |
116 |
do |
117 |
@@ -319,8 +315,6 @@ |
118 |
sflist[i]=${sf} |
119 |
done |
120 |
|
121 |
- eval "${old_shopts}" |
122 |
- |
123 |
cat <<-EOF >"${T}"/site-gentoo.el |
124 |
;;; site-gentoo.el --- site initialisation for Gentoo-installed packages |
125 |
|
126 |
@@ -349,6 +343,7 @@ |
127 |
# This prevents outputting unnecessary text when there |
128 |
# was actually no change. |
129 |
# A case is a remerge where we have doubled output. |
130 |
+ rm -f "${T}"/site-gentoo.el |
131 |
echo " no changes." |
132 |
else |
133 |
mv "${T}"/site-gentoo.el "${sitelisp}"/site-gentoo.el |
134 |
@@ -360,8 +355,5 @@ |
135 |
esac |
136 |
fi |
137 |
|
138 |
- # cleanup |
139 |
- rm -f "${T}"/site-gentoo.el |
140 |
- |
141 |
return 0 |
142 |
} |