1 |
ulm 09/06/19 22:42:51 |
2 |
|
3 |
Modified: ChangeLog emacs-cvs-23.0.9999-r1.ebuild |
4 |
emacs-cvs-23.0.93.ebuild emacs-cvs-23.0.94.ebuild |
5 |
Added: emacs-cvs-23.0.95.ebuild |
6 |
Removed: emacs-cvs-23.0.90.ebuild emacs-cvs-23.0.92.ebuild |
7 |
emacs-cvs-23.0.91.ebuild |
8 |
Log: |
9 |
New pretest version. Don't assign FULL_VERSION twice. Remove old. |
10 |
(Portage version: 2.2_rc33/cvs/Linux i686) |
11 |
|
12 |
Revision Changes Path |
13 |
1.250 app-editors/emacs-cvs/ChangeLog |
14 |
|
15 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/emacs-cvs/ChangeLog?rev=1.250&view=markup |
16 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/emacs-cvs/ChangeLog?rev=1.250&content-type=text/plain |
17 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/emacs-cvs/ChangeLog?r1=1.249&r2=1.250 |
18 |
|
19 |
Index: ChangeLog |
20 |
=================================================================== |
21 |
RCS file: /var/cvsroot/gentoo-x86/app-editors/emacs-cvs/ChangeLog,v |
22 |
retrieving revision 1.249 |
23 |
retrieving revision 1.250 |
24 |
diff -u -r1.249 -r1.250 |
25 |
--- ChangeLog 7 Jun 2009 16:00:03 -0000 1.249 |
26 |
+++ ChangeLog 19 Jun 2009 22:42:51 -0000 1.250 |
27 |
@@ -1,6 +1,13 @@ |
28 |
# ChangeLog for app-editors/emacs-cvs |
29 |
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
30 |
-# $Header: /var/cvsroot/gentoo-x86/app-editors/emacs-cvs/ChangeLog,v 1.249 2009/06/07 16:00:03 ulm Exp $ |
31 |
+# $Header: /var/cvsroot/gentoo-x86/app-editors/emacs-cvs/ChangeLog,v 1.250 2009/06/19 22:42:51 ulm Exp $ |
32 |
+ |
33 |
+*emacs-cvs-23.0.95 (19 Jun 2009) |
34 |
+ |
35 |
+ 19 Jun 2009; Ulrich Mueller <ulm@g.o> -emacs-cvs-23.0.90.ebuild, |
36 |
+ -emacs-cvs-23.0.91.ebuild, -emacs-cvs-23.0.92.ebuild, |
37 |
+ +emacs-cvs-23.0.95.ebuild, emacs-cvs-23.0.9999-r1.ebuild: |
38 |
+ New pretest version. Don't assign FULL_VERSION twice. Remove old. |
39 |
|
40 |
07 Jun 2009; Ulrich Mueller <ulm@g.o> emacs-cvs-23.0.90.ebuild, |
41 |
emacs-cvs-23.0.91.ebuild, emacs-cvs-23.0.92.ebuild, |
42 |
|
43 |
|
44 |
|
45 |
1.13 app-editors/emacs-cvs/emacs-cvs-23.0.9999-r1.ebuild |
46 |
|
47 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/emacs-cvs/emacs-cvs-23.0.9999-r1.ebuild?rev=1.13&view=markup |
48 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/emacs-cvs/emacs-cvs-23.0.9999-r1.ebuild?rev=1.13&content-type=text/plain |
49 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/emacs-cvs/emacs-cvs-23.0.9999-r1.ebuild?r1=1.12&r2=1.13 |
50 |
|
51 |
Index: emacs-cvs-23.0.9999-r1.ebuild |
52 |
=================================================================== |
53 |
RCS file: /var/cvsroot/gentoo-x86/app-editors/emacs-cvs/emacs-cvs-23.0.9999-r1.ebuild,v |
54 |
retrieving revision 1.12 |
55 |
retrieving revision 1.13 |
56 |
diff -u -r1.12 -r1.13 |
57 |
--- emacs-cvs-23.0.9999-r1.ebuild 7 Jun 2009 16:00:03 -0000 1.12 |
58 |
+++ emacs-cvs-23.0.9999-r1.ebuild 19 Jun 2009 22:42:51 -0000 1.13 |
59 |
@@ -1,6 +1,6 @@ |
60 |
# Copyright 1999-2009 Gentoo Foundation |
61 |
# Distributed under the terms of the GNU General Public License v2 |
62 |
-# $Header: /var/cvsroot/gentoo-x86/app-editors/emacs-cvs/emacs-cvs-23.0.9999-r1.ebuild,v 1.12 2009/06/07 16:00:03 ulm Exp $ |
63 |
+# $Header: /var/cvsroot/gentoo-x86/app-editors/emacs-cvs/emacs-cvs-23.0.9999-r1.ebuild,v 1.13 2009/06/19 22:42:51 ulm Exp $ |
64 |
|
65 |
EAPI=2 |
66 |
|
67 |
@@ -14,7 +14,6 @@ |
68 |
ECVS_LOCALNAME="emacs" |
69 |
inherit cvs |
70 |
SRC_URI="" |
71 |
- FULL_VERSION="" |
72 |
S="${WORKDIR}/${ECVS_LOCALNAME}" |
73 |
else |
74 |
SRC_URI="mirror://gentoo/emacs-${PV}.tar.gz |
75 |
@@ -80,7 +79,7 @@ |
76 |
SITEFILE="20${PN}-${SLOT}-gentoo.el" |
77 |
|
78 |
src_prepare() { |
79 |
- if [ -z "${FULL_VERSION}" ]; then |
80 |
+ if [ "${PV##*.}" = "9999" ]; then |
81 |
FULL_VERSION=$(grep 'defconst[ ]*emacs-version' lisp/version.el \ |
82 |
| sed -e 's/^[^"]*"\([^"]*\)".*$/\1/') |
83 |
[ "${FULL_VERSION}" ] || die "Cannot determine current Emacs version" |
84 |
|
85 |
|
86 |
|
87 |
1.5 app-editors/emacs-cvs/emacs-cvs-23.0.93.ebuild |
88 |
|
89 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/emacs-cvs/emacs-cvs-23.0.93.ebuild?rev=1.5&view=markup |
90 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/emacs-cvs/emacs-cvs-23.0.93.ebuild?rev=1.5&content-type=text/plain |
91 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/emacs-cvs/emacs-cvs-23.0.93.ebuild?r1=1.4&r2=1.5 |
92 |
|
93 |
Index: emacs-cvs-23.0.93.ebuild |
94 |
=================================================================== |
95 |
RCS file: /var/cvsroot/gentoo-x86/app-editors/emacs-cvs/emacs-cvs-23.0.93.ebuild,v |
96 |
retrieving revision 1.4 |
97 |
retrieving revision 1.5 |
98 |
diff -u -r1.4 -r1.5 |
99 |
--- emacs-cvs-23.0.93.ebuild 7 Jun 2009 16:00:03 -0000 1.4 |
100 |
+++ emacs-cvs-23.0.93.ebuild 19 Jun 2009 22:42:51 -0000 1.5 |
101 |
@@ -1,6 +1,6 @@ |
102 |
# Copyright 1999-2009 Gentoo Foundation |
103 |
# Distributed under the terms of the GNU General Public License v2 |
104 |
-# $Header: /var/cvsroot/gentoo-x86/app-editors/emacs-cvs/emacs-cvs-23.0.93.ebuild,v 1.4 2009/06/07 16:00:03 ulm Exp $ |
105 |
+# $Header: /var/cvsroot/gentoo-x86/app-editors/emacs-cvs/emacs-cvs-23.0.93.ebuild,v 1.5 2009/06/19 22:42:51 ulm Exp $ |
106 |
|
107 |
EAPI=2 |
108 |
|
109 |
@@ -14,7 +14,6 @@ |
110 |
ECVS_LOCALNAME="emacs" |
111 |
inherit cvs |
112 |
SRC_URI="" |
113 |
- FULL_VERSION="" |
114 |
S="${WORKDIR}/${ECVS_LOCALNAME}" |
115 |
else |
116 |
SRC_URI="mirror://gentoo/emacs-${PV}.tar.gz |
117 |
@@ -80,7 +79,7 @@ |
118 |
SITEFILE="20${PN}-${SLOT}-gentoo.el" |
119 |
|
120 |
src_prepare() { |
121 |
- if [ -z "${FULL_VERSION}" ]; then |
122 |
+ if [ "${PV##*.}" = "9999" ]; then |
123 |
FULL_VERSION=$(grep 'defconst[ ]*emacs-version' lisp/version.el \ |
124 |
| sed -e 's/^[^"]*"\([^"]*\)".*$/\1/') |
125 |
[ "${FULL_VERSION}" ] || die "Cannot determine current Emacs version" |
126 |
|
127 |
|
128 |
|
129 |
1.5 app-editors/emacs-cvs/emacs-cvs-23.0.94.ebuild |
130 |
|
131 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/emacs-cvs/emacs-cvs-23.0.94.ebuild?rev=1.5&view=markup |
132 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/emacs-cvs/emacs-cvs-23.0.94.ebuild?rev=1.5&content-type=text/plain |
133 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/emacs-cvs/emacs-cvs-23.0.94.ebuild?r1=1.4&r2=1.5 |
134 |
|
135 |
Index: emacs-cvs-23.0.94.ebuild |
136 |
=================================================================== |
137 |
RCS file: /var/cvsroot/gentoo-x86/app-editors/emacs-cvs/emacs-cvs-23.0.94.ebuild,v |
138 |
retrieving revision 1.4 |
139 |
retrieving revision 1.5 |
140 |
diff -u -r1.4 -r1.5 |
141 |
--- emacs-cvs-23.0.94.ebuild 7 Jun 2009 16:00:03 -0000 1.4 |
142 |
+++ emacs-cvs-23.0.94.ebuild 19 Jun 2009 22:42:51 -0000 1.5 |
143 |
@@ -1,6 +1,6 @@ |
144 |
# Copyright 1999-2009 Gentoo Foundation |
145 |
# Distributed under the terms of the GNU General Public License v2 |
146 |
-# $Header: /var/cvsroot/gentoo-x86/app-editors/emacs-cvs/emacs-cvs-23.0.94.ebuild,v 1.4 2009/06/07 16:00:03 ulm Exp $ |
147 |
+# $Header: /var/cvsroot/gentoo-x86/app-editors/emacs-cvs/emacs-cvs-23.0.94.ebuild,v 1.5 2009/06/19 22:42:51 ulm Exp $ |
148 |
|
149 |
EAPI=2 |
150 |
|
151 |
@@ -14,7 +14,6 @@ |
152 |
ECVS_LOCALNAME="emacs" |
153 |
inherit cvs |
154 |
SRC_URI="" |
155 |
- FULL_VERSION="" |
156 |
S="${WORKDIR}/${ECVS_LOCALNAME}" |
157 |
else |
158 |
SRC_URI="mirror://gentoo/emacs-${PV}.tar.gz |
159 |
@@ -80,7 +79,7 @@ |
160 |
SITEFILE="20${PN}-${SLOT}-gentoo.el" |
161 |
|
162 |
src_prepare() { |
163 |
- if [ -z "${FULL_VERSION}" ]; then |
164 |
+ if [ "${PV##*.}" = "9999" ]; then |
165 |
FULL_VERSION=$(grep 'defconst[ ]*emacs-version' lisp/version.el \ |
166 |
| sed -e 's/^[^"]*"\([^"]*\)".*$/\1/') |
167 |
[ "${FULL_VERSION}" ] || die "Cannot determine current Emacs version" |
168 |
|
169 |
|
170 |
|
171 |
1.1 app-editors/emacs-cvs/emacs-cvs-23.0.95.ebuild |
172 |
|
173 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/emacs-cvs/emacs-cvs-23.0.95.ebuild?rev=1.1&view=markup |
174 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/emacs-cvs/emacs-cvs-23.0.95.ebuild?rev=1.1&content-type=text/plain |
175 |
|
176 |
Index: emacs-cvs-23.0.95.ebuild |
177 |
=================================================================== |
178 |
# Copyright 1999-2009 Gentoo Foundation |
179 |
# Distributed under the terms of the GNU General Public License v2 |
180 |
# $Header: /var/cvsroot/gentoo-x86/app-editors/emacs-cvs/emacs-cvs-23.0.95.ebuild,v 1.1 2009/06/19 22:42:51 ulm Exp $ |
181 |
|
182 |
EAPI=2 |
183 |
|
184 |
inherit autotools elisp-common eutils flag-o-matic |
185 |
|
186 |
if [ "${PV##*.}" = "9999" ]; then |
187 |
ECVS_AUTH="pserver" |
188 |
ECVS_SERVER="cvs.savannah.gnu.org:/sources/emacs" |
189 |
ECVS_MODULE="emacs" |
190 |
ECVS_BRANCH="HEAD" |
191 |
ECVS_LOCALNAME="emacs" |
192 |
inherit cvs |
193 |
SRC_URI="" |
194 |
S="${WORKDIR}/${ECVS_LOCALNAME}" |
195 |
else |
196 |
SRC_URI="mirror://gentoo/emacs-${PV}.tar.gz |
197 |
ftp://alpha.gnu.org/gnu/emacs/pretest/emacs-${PV}.tar.gz" |
198 |
# FULL_VERSION keeps the full version number, which is needed in |
199 |
# order to determine some path information correctly for copy/move |
200 |
# operations later on |
201 |
FULL_VERSION="${PV%%_*}" |
202 |
S="${WORKDIR}/emacs-${FULL_VERSION}" |
203 |
fi |
204 |
|
205 |
DESCRIPTION="The extensible, customizable, self-documenting real-time display editor" |
206 |
HOMEPAGE="http://www.gnu.org/software/emacs/" |
207 |
|
208 |
LICENSE="GPL-3 FDL-1.3 BSD as-is X11 W3C unicode" |
209 |
SLOT="23" |
210 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd" |
211 |
IUSE="alsa dbus gif gpm gtk gzip-el hesiod jpeg kerberos m17n-lib motif png sound source svg tiff toolkit-scroll-bars X Xaw3d xft +xpm" |
212 |
RESTRICT="strip" |
213 |
|
214 |
RDEPEND="sys-libs/ncurses |
215 |
>=app-admin/eselect-emacs-1.2 |
216 |
net-libs/liblockfile |
217 |
hesiod? ( net-dns/hesiod ) |
218 |
kerberos? ( virtual/krb5 ) |
219 |
alsa? ( media-libs/alsa-lib ) |
220 |
gpm? ( sys-libs/gpm ) |
221 |
dbus? ( sys-apps/dbus ) |
222 |
X? ( |
223 |
x11-libs/libXmu |
224 |
x11-libs/libXt |
225 |
x11-misc/xbitmaps |
226 |
gif? ( media-libs/giflib ) |
227 |
jpeg? ( media-libs/jpeg ) |
228 |
png? ( media-libs/libpng ) |
229 |
svg? ( >=gnome-base/librsvg-2.0 ) |
230 |
tiff? ( media-libs/tiff ) |
231 |
xpm? ( x11-libs/libXpm ) |
232 |
xft? ( |
233 |
media-libs/fontconfig |
234 |
media-libs/freetype |
235 |
x11-libs/libXft |
236 |
m17n-lib? ( |
237 |
>=dev-libs/libotf-0.9.4 |
238 |
>=dev-libs/m17n-lib-1.5.1 |
239 |
) |
240 |
) |
241 |
gtk? ( x11-libs/gtk+:2 ) |
242 |
!gtk? ( |
243 |
Xaw3d? ( x11-libs/Xaw3d ) |
244 |
!Xaw3d? ( motif? ( x11-libs/openmotif ) ) |
245 |
) |
246 |
)" |
247 |
|
248 |
DEPEND="${RDEPEND} |
249 |
dev-util/pkgconfig |
250 |
gzip-el? ( app-arch/gzip )" |
251 |
|
252 |
RDEPEND="${RDEPEND} |
253 |
>=app-emacs/emacs-common-gentoo-1[X?]" |
254 |
|
255 |
EMACS_SUFFIX="emacs-${SLOT}" |
256 |
SITEFILE="20${PN}-${SLOT}-gentoo.el" |
257 |
|
258 |
src_prepare() { |
259 |
if [ "${PV##*.}" = "9999" ]; then |
260 |
FULL_VERSION=$(grep 'defconst[ ]*emacs-version' lisp/version.el \ |
261 |
| sed -e 's/^[^"]*"\([^"]*\)".*$/\1/') |
262 |
[ "${FULL_VERSION}" ] || die "Cannot determine current Emacs version" |
263 |
echo |
264 |
einfo "Emacs CVS branch: ${ECVS_BRANCH}" |
265 |
einfo "Emacs version number: ${FULL_VERSION}" |
266 |
[ "${FULL_VERSION%.*}" = ${PV%.*} ] \ |
267 |
|| die "Upstream version number changed to ${FULL_VERSION}" |
268 |
echo |
269 |
fi |
270 |
|
271 |
epatch "${FILESDIR}/emacs-23.0.94-handle-xz-suffix.patch" |
272 |
|
273 |
sed -i -e "s:/usr/lib/crtbegin.o:$(`tc-getCC` -print-file-name=crtbegin.o):g" \ |
274 |
-e "s:/usr/lib/crtend.o:$(`tc-getCC` -print-file-name=crtend.o):g" \ |
275 |
"${S}"/src/s/freebsd.h || die "unable to sed freebsd.h settings" |
276 |
|
277 |
if ! use alsa; then |
278 |
# ALSA is detected even if not requested by its USE flag. |
279 |
# Suppress it by supplying pkg-config with a wrong library name. |
280 |
sed -i -e "/ALSA_MODULES=/s/alsa/DiSaBlEaLsA/" configure.in \ |
281 |
|| die "unable to sed configure.in" |
282 |
fi |
283 |
if ! use gzip-el; then |
284 |
# Emacs' build system automatically detects the gzip binary and |
285 |
# compresses el files. We don't want that so confuse it with a |
286 |
# wrong binary name |
287 |
sed -i -e "s/ gzip/ PrEvEnTcOmPrEsSiOn/" configure.in \ |
288 |
|| die "unable to sed configure.in" |
289 |
fi |
290 |
|
291 |
eautoreconf |
292 |
} |
293 |
|
294 |
src_configure() { |
295 |
ALLOWED_FLAGS="" |
296 |
strip-flags |
297 |
#unset LDFLAGS |
298 |
if use sh; then |
299 |
replace-flags -O[1-9] -O0 #262359 |
300 |
else |
301 |
replace-flags -O[3-9] -O2 |
302 |
fi |
303 |
|
304 |
local myconf |
305 |
|
306 |
if use alsa && ! use sound; then |
307 |
echo |
308 |
einfo "Although sound USE flag is disabled you chose to have alsa," |
309 |
einfo "so sound is switched on anyway." |
310 |
echo |
311 |
myconf="${myconf} --with-sound" |
312 |
else |
313 |
myconf="${myconf} $(use_with sound)" |
314 |
fi |
315 |
|
316 |
if use X; then |
317 |
myconf="${myconf} --with-x" |
318 |
myconf="${myconf} $(use_with toolkit-scroll-bars)" |
319 |
myconf="${myconf} $(use_with gif) $(use_with jpeg)" |
320 |
myconf="${myconf} $(use_with png) $(use_with svg rsvg)" |
321 |
myconf="${myconf} $(use_with tiff) $(use_with xpm)" |
322 |
myconf="${myconf} $(use_with xft)" |
323 |
|
324 |
if use xft; then |
325 |
myconf="${myconf} $(use_with m17n-lib libotf)" |
326 |
myconf="${myconf} $(use_with m17n-lib m17n-flt)" |
327 |
else |
328 |
myconf="${myconf} --without-libotf --without-m17n-flt" |
329 |
use m17n-lib && ewarn \ |
330 |
"USE flag \"m17n-lib\" has no effect because xft is not set." |
331 |
fi |
332 |
|
333 |
# GTK+ is the default toolkit if USE=gtk is chosen with other |
334 |
# possibilities. Emacs upstream thinks this should be standard |
335 |
# policy on all distributions |
336 |
if use gtk; then |
337 |
einfo "Configuring to build with GIMP Toolkit (GTK+)" |
338 |
myconf="${myconf} --with-x-toolkit=gtk" |
339 |
elif use Xaw3d; then |
340 |
einfo "Configuring to build with Xaw3d (Athena/Lucid) toolkit" |
341 |
myconf="${myconf} --with-x-toolkit=athena" |
342 |
elif use motif; then |
343 |
einfo "Configuring to build with Motif toolkit" |
344 |
myconf="${myconf} --with-x-toolkit=motif" |
345 |
else |
346 |
einfo "Configuring to build with no toolkit" |
347 |
myconf="${myconf} --with-x-toolkit=no" |
348 |
fi |
349 |
|
350 |
local f tk= |
351 |
for f in gtk Xaw3d motif; do |
352 |
use ${f} || continue |
353 |
[ "${tk}" ] \ |
354 |
&& ewarn "USE flag \"${f}\" ignored (superseded by \"${tk}\")" |
355 |
tk="${tk}${tk:+ }${f}" |
356 |
done |
357 |
else |
358 |
myconf="${myconf} --without-x" |
359 |
fi |
360 |
|
361 |
myconf="${myconf} $(use_with hesiod)" |
362 |
myconf="${myconf} $(use_with kerberos) $(use_with kerberos kerberos5)" |
363 |
myconf="${myconf} $(use_with gpm) $(use_with dbus)" |
364 |
|
365 |
econf \ |
366 |
--program-suffix=-${EMACS_SUFFIX} \ |
367 |
--infodir=/usr/share/info/${EMACS_SUFFIX} \ |
368 |
${myconf} || die "econf emacs failed" |
369 |
} |
370 |
|
371 |
src_compile() { |
372 |
export SANDBOX_ON=0 # for the unbelievers, see Bug #131505 |
373 |
if [ "${PV##*.}" = "9999" ]; then |
374 |
emake CC="$(tc-getCC)" bootstrap || die "make bootstrap failed" |
375 |
# cleanup, otherwise emacs will be dumped again in src_install |
376 |
(cd src; emake versionclean) |
377 |
fi |
378 |
emake CC="$(tc-getCC)" || die "emake failed" |
379 |
} |
380 |
|
381 |
src_install () { |
382 |
local i m |
383 |
|
384 |
emake install DESTDIR="${D}" || die "make install failed" |
385 |
|
386 |
rm "${D}"/usr/bin/emacs-${FULL_VERSION}-${EMACS_SUFFIX} \ |
387 |
|| die "removing duplicate emacs executable failed" |
388 |
mv "${D}"/usr/bin/emacs-${EMACS_SUFFIX} "${D}"/usr/bin/${EMACS_SUFFIX} \ |
389 |
|| die "moving Emacs executable failed" |
390 |
|
391 |
# move info documentation to the correct place |
392 |
for i in "${D}"/usr/share/info/${EMACS_SUFFIX}/*; do |
393 |
mv "${i}" "${i}.info" || die "mv info failed" |
394 |
done |
395 |
|
396 |
# move man pages to the correct place |
397 |
for m in "${D}"/usr/share/man/man1/* ; do |
398 |
mv "${m}" "${m%.1}-${EMACS_SUFFIX}.1" || die "mv man failed" |
399 |
done |
400 |
|
401 |
# avoid collision between slots, see bug #169033 e.g. |
402 |
rm "${D}"/usr/share/emacs/site-lisp/subdirs.el |
403 |
rm -rf "${D}"/usr/share/{applications,icons} |
404 |
rm "${D}"/var/lib/games/emacs/{snake,tetris}-scores |
405 |
keepdir /var/lib/games/emacs |
406 |
|
407 |
local c=";;" |
408 |
if use source; then |
409 |
insinto /usr/share/emacs/${FULL_VERSION}/src |
410 |
# This is not meant to install all the source -- just the |
411 |
# C source you might find via find-function |
412 |
doins src/*.[ch] |
413 |
c="" |
414 |
fi |
415 |
|
416 |
sed 's/^X//' >"${SITEFILE}" <<-EOF |
417 |
X |
418 |
;;; ${PN}-${SLOT} site-lisp configuration |
419 |
X |
420 |
(when (string-match "\\\\\`${FULL_VERSION//./\\\\.}\\\\>" emacs-version) |
421 |
X ${c}(setq find-function-C-source-directory |
422 |
X ${c} "/usr/share/emacs/${FULL_VERSION}/src") |
423 |
X (let ((path (getenv "INFOPATH")) |
424 |
X (dir "/usr/share/info/${EMACS_SUFFIX}")) |
425 |
X (and path |
426 |
X ;; move Emacs Info dir to beginning of list |
427 |
X (setq Info-directory-list |
428 |
X (cons dir (delete dir (split-string path ":" t))))))) |
429 |
EOF |
430 |
elisp-site-file-install "${SITEFILE}" || die |
431 |
|
432 |
dodoc README BUGS || die "dodoc failed" |
433 |
} |
434 |
|
435 |
emacs-infodir-rebuild() { |
436 |
# Depending on the Portage version, the Info dir file is compressed |
437 |
# or removed. It is only rebuilt by Portage if our directory is in |
438 |
# INFOPATH, which is not guaranteed. So we rebuild it ourselves. |
439 |
|
440 |
local infodir=/usr/share/info/${EMACS_SUFFIX} f |
441 |
[ -d "${ROOT}"${infodir} ] || return # may occur with FEATURES=noinfo |
442 |
einfo "Regenerating Info directory index in ${infodir} ..." |
443 |
rm -f "${ROOT}"${infodir}/dir{,.*} |
444 |
for f in "${ROOT}"${infodir}/*.info*; do |
445 |
[[ ${f##*/} != *[0-9].info* && -e ${f} ]] \ |
446 |
&& install-info --info-dir="${ROOT}"${infodir} "${f}" &>/dev/null |
447 |
done |
448 |
rmdir "${ROOT}"${infodir} 2>/dev/null # remove dir if it is empty |
449 |
echo |
450 |
} |
451 |
|
452 |
pkg_postinst() { |
453 |
local f |
454 |
for f in "${ROOT}"/var/lib/games/emacs/{snake,tetris}-scores; do |
455 |
[ -e "${f}" ] || touch "${f}" |
456 |
done |
457 |
|
458 |
elisp-site-regen |
459 |
emacs-infodir-rebuild |
460 |
eselect emacs update ifunset |
461 |
|
462 |
echo |
463 |
elog "You can set the version to be started by /usr/bin/emacs through" |
464 |
elog "the Emacs eselect module, which also redirects man and info pages." |
465 |
elog "You can therefore test emacs-cvs along with the stable release." |
466 |
elog "\"man emacs.eselect\" for details." |
467 |
} |
468 |
|
469 |
pkg_postrm() { |
470 |
elisp-site-regen |
471 |
emacs-infodir-rebuild |
472 |
eselect emacs update ifunset |
473 |
} |