Gentoo Archives: gentoo-commits

From: "Ulrich Mueller (ulm)" <ulm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-editors/emacs-cvs: ChangeLog emacs-cvs-22.2.9999.ebuild emacs-cvs-23.0.9999.ebuild emacs-cvs-23.0.60-r2.ebuild emacs-cvs-22.1.9999.ebuild
Date: Wed, 26 Mar 2008 14:43:04
Message-Id: E1JeWqD-0004BP-9G@stork.gentoo.org
1 ulm 08/03/26 14:43:01
2
3 Modified: ChangeLog
4 Added: emacs-cvs-22.2.9999.ebuild
5 emacs-cvs-23.0.9999.ebuild
6 Removed: emacs-cvs-23.0.60-r2.ebuild
7 emacs-cvs-22.1.9999.ebuild
8 Log:
9 Rename, to reflect upstream change of version number.
10 (Portage version: 2.1.4.4)
11
12 Revision Changes Path
13 1.201 app-editors/emacs-cvs/ChangeLog
14
15 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/emacs-cvs/ChangeLog?rev=1.201&view=markup
16 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/emacs-cvs/ChangeLog?rev=1.201&content-type=text/plain
17 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/emacs-cvs/ChangeLog?r1=1.200&r2=1.201
18
19 Index: ChangeLog
20 ===================================================================
21 RCS file: /var/cvsroot/gentoo-x86/app-editors/emacs-cvs/ChangeLog,v
22 retrieving revision 1.200
23 retrieving revision 1.201
24 diff -u -r1.200 -r1.201
25 --- ChangeLog 7 Mar 2008 17:49:08 -0000 1.200
26 +++ ChangeLog 26 Mar 2008 14:43:00 -0000 1.201
27 @@ -1,6 +1,15 @@
28 # ChangeLog for app-editors/emacs-cvs
29 # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
30 -# $Header: /var/cvsroot/gentoo-x86/app-editors/emacs-cvs/ChangeLog,v 1.200 2008/03/07 17:49:08 ulm Exp $
31 +# $Header: /var/cvsroot/gentoo-x86/app-editors/emacs-cvs/ChangeLog,v 1.201 2008/03/26 14:43:00 ulm Exp $
32 +
33 +*emacs-cvs-23.0.9999 (26 Mar 2008)
34 +*emacs-cvs-22.2.9999 (26 Mar 2008)
35 +
36 + 26 Mar 2008; Ulrich Mueller <ulm@g.o> -emacs-cvs-22.1.9999.ebuild,
37 + +emacs-cvs-22.2.9999.ebuild, -emacs-cvs-23.0.60-r2.ebuild,
38 + +emacs-cvs-23.0.9999.ebuild:
39 + Rename, to reflect upstream change of version number and to emphasise that
40 + these are live CVS ebuilds.
41
42 *emacs-cvs-22.1.92 (07 Mar 2008)
43
44
45
46
47 1.1 app-editors/emacs-cvs/emacs-cvs-22.2.9999.ebuild
48
49 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/emacs-cvs/emacs-cvs-22.2.9999.ebuild?rev=1.1&view=markup
50 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/emacs-cvs/emacs-cvs-22.2.9999.ebuild?rev=1.1&content-type=text/plain
51
52 Index: emacs-cvs-22.2.9999.ebuild
53 ===================================================================
54 # Copyright 1999-2008 Gentoo Foundation
55 # Distributed under the terms of the GNU General Public License v2
56 # $Header: /var/cvsroot/gentoo-x86/app-editors/emacs-cvs/emacs-cvs-22.2.9999.ebuild,v 1.1 2008/03/26 14:43:00 ulm Exp $
57
58 ECVS_AUTH="pserver"
59 ECVS_SERVER="cvs.savannah.gnu.org:/sources/emacs"
60 ECVS_MODULE="emacs"
61 ECVS_BRANCH="EMACS_22_BASE"
62 ECVS_LOCALNAME="emacs-22"
63
64 WANT_AUTOCONF="latest"
65 WANT_AUTOMAKE="latest"
66
67 inherit autotools cvs elisp-common eutils flag-o-matic
68
69 DESCRIPTION="The extensible, customizable, self-documenting real-time display editor"
70 HOMEPAGE="http://www.gnu.org/software/emacs/"
71 SRC_URI=""
72
73 LICENSE="GPL-3 FDL-1.2 BSD"
74 SLOT="22"
75 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
76 IUSE="alsa gif gtk gzip-el hesiod jpeg kerberos motif png spell sound source tiff toolkit-scroll-bars X Xaw3d xpm"
77 RESTRICT="strip"
78
79 RDEPEND="!~app-editors/emacs-22.2
80 sys-libs/ncurses
81 >=app-admin/eselect-emacs-1.2
82 net-libs/liblockfile
83 hesiod? ( net-dns/hesiod )
84 kerberos? ( virtual/krb5 )
85 spell? ( || ( app-text/ispell app-text/aspell ) )
86 alsa? ( media-libs/alsa-lib )
87 X? (
88 x11-libs/libXmu
89 x11-libs/libXt
90 x11-misc/xbitmaps
91 x11-misc/emacs-desktop
92 gif? ( media-libs/giflib )
93 jpeg? ( media-libs/jpeg )
94 tiff? ( media-libs/tiff )
95 png? ( media-libs/libpng )
96 xpm? ( x11-libs/libXpm )
97 gtk? ( =x11-libs/gtk+-2* )
98 !gtk? (
99 Xaw3d? ( x11-libs/Xaw3d )
100 !Xaw3d? (
101 motif? ( virtual/motif )
102 )
103 )
104 )"
105
106 DEPEND="${RDEPEND}
107 alsa? ( dev-util/pkgconfig )
108 X? ( gtk? ( dev-util/pkgconfig ) )
109 gzip-el? ( app-arch/gzip )"
110
111 S="${WORKDIR}/${ECVS_LOCALNAME}"
112
113 EMACS_SUFFIX="emacs-${SLOT}-cvs"
114
115 src_unpack() {
116 cvs_src_unpack
117
118 cd "${S}"
119 # FULL_VERSION keeps the full version number, which is needed in
120 # order to determine some path information correctly for copy/move
121 # operations later on
122 FULL_VERSION=$(grep 'defconst[ ]*emacs-version' lisp/version.el \
123 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/')
124 [ "${FULL_VERSION}" ] || die "Cannot determine current Emacs version"
125 echo
126 einfo "Emacs CVS branch: ${ECVS_BRANCH}"
127 einfo "Emacs version number: ${FULL_VERSION}"
128 #[ "${FULL_VERSION}" = ${PV} ] \
129 # || die "Upstream version number changed to ${FULL_VERSION}"
130 echo
131
132 epatch "${FILESDIR}/${PN}-Xaw3d-headers.patch"
133 epatch "${FILESDIR}/${PN}-freebsd-sparc.patch"
134
135 sed -i -e "s:/usr/lib/crtbegin.o:$(`tc-getCC` -print-file-name=crtbegin.o):g" \
136 -e "s:/usr/lib/crtend.o:$(`tc-getCC` -print-file-name=crtend.o):g" \
137 "${S}"/src/s/freebsd.h || die "unable to sed freebsd.h settings"
138
139 if ! use alsa; then
140 # ALSA is detected even if not requested by its USE flag.
141 # Suppress it by supplying pkg-config with a wrong library name.
142 sed -i -e "/ALSA_MODULES=/s/alsa/DiSaBlEaLsA/" configure.in \
143 || die "unable to sed configure.in"
144 fi
145 if ! use gzip-el; then
146 # Emacs' build system automatically detects the gzip binary and
147 # compresses el files. We don't want that so confuse it with a
148 # wrong binary name
149 sed -i -e "s/ gzip/ PrEvEnTcOmPrEsSiOn/" configure.in \
150 || die "unable to sed configure.in"
151 fi
152
153 eautoreconf
154 }
155
156 src_compile() {
157 export SANDBOX_ON=0 # for the unbelievers, see Bug #131505
158 ALLOWED_FLAGS=""
159 strip-flags
160 #unset LDFLAGS
161 replace-flags -O[3-9] -O2
162 sed -i -e "s/-lungif/-lgif/g" configure* src/Makefile* || die
163
164 local myconf
165
166 if use alsa && ! use sound; then
167 echo
168 einfo "Although sound USE flag is disabled you chose to have alsa,"
169 einfo "so sound is switched on anyway."
170 echo
171 myconf="${myconf} --with-sound"
172 else
173 myconf="${myconf} $(use_with sound)"
174 fi
175
176 if use X; then
177 myconf="${myconf} --with-x"
178 myconf="${myconf} $(use_with toolkit-scroll-bars)"
179 myconf="${myconf} $(use_with jpeg) $(use_with tiff)"
180 myconf="${myconf} $(use_with gif) $(use_with png)"
181 myconf="${myconf} $(use_with xpm)"
182
183 # GTK+ is the default toolkit if USE=gtk is chosen with other
184 # possibilities. Emacs upstream thinks this should be standard
185 # policy on all distributions
186 if use gtk; then
187 einfo "Configuring to build with GTK+ support"
188 myconf="${myconf} --with-x-toolkit=gtk"
189 elif use Xaw3d; then
190 einfo "Configuring to build with Xaw3d (athena) support"
191 myconf="${myconf} --with-x-toolkit=athena"
192 myconf="${myconf} --without-gtk"
193 elif use motif; then
194 einfo "Configuring to build with motif toolkit support"
195 myconf="${myconf} --with-x-toolkit=motif"
196 myconf="${myconf} --without-gtk"
197 else
198 einfo "Configuring to build with no toolkit"
199 myconf="${myconf} --with-x-toolkit=no"
200 myconf="${myconf} --without-gtk"
201 fi
202 else
203 myconf="${myconf} --without-x"
204 fi
205
206 myconf="${myconf} $(use_with hesiod)"
207 myconf="${myconf} $(use_with kerberos) $(use_with kerberos kerberos5)"
208
209 econf \
210 --program-suffix=-${EMACS_SUFFIX} \
211 --infodir=/usr/share/info/${EMACS_SUFFIX} \
212 --without-carbon \
213 ${myconf} || die "econf emacs failed"
214
215 emake CC="$(tc-getCC)" bootstrap || die "make bootstrap failed"
216 }
217
218 src_install () {
219 local i m
220
221 emake install DESTDIR="${D}" || die "make install failed"
222
223 rm "${D}"/usr/bin/emacs-${FULL_VERSION}-${EMACS_SUFFIX} \
224 || die "removing duplicate emacs executable failed"
225 mv "${D}"/usr/bin/emacs-${EMACS_SUFFIX} "${D}"/usr/bin/${EMACS_SUFFIX} \
226 || die "moving Emacs executable failed"
227
228 # move info documentation to the correct place
229 einfo "Fixing info documentation ..."
230 for i in "${D}"/usr/share/info/${EMACS_SUFFIX}/*; do
231 mv "${i}" "${i}.info" || die "mv info failed"
232 done
233
234 # move man pages to the correct place
235 einfo "Fixing manpages ..."
236 for m in "${D}"/usr/share/man/man1/* ; do
237 mv "${m}" "${m%.1}-${EMACS_SUFFIX}.1" || die "mv man failed"
238 done
239
240 # avoid collision between slots, see bug #169033 e.g.
241 rm "${D}"/usr/share/emacs/site-lisp/subdirs.el
242 rm "${D}"/var/lib/games/emacs/{snake,tetris}-scores
243 keepdir /var/lib/games/emacs/
244
245 if use source; then
246 insinto /usr/share/emacs/${FULL_VERSION}/src
247 # This is not meant to install all the source -- just the
248 # C source you might find via find-function
249 doins src/*.[ch]
250 sed 's/^X//' >10${PN}-${SLOT}-gentoo.el <<-EOF
251
252 ;;; ${PN}-${SLOT} site-lisp configuration
253
254 (if (string-match "\\\\\`${FULL_VERSION//./\\\\.}\\\\>" emacs-version)
255 X (setq find-function-C-source-directory
256 X "/usr/share/emacs/${FULL_VERSION}/src"))
257 EOF
258 elisp-site-file-install 10${PN}-${SLOT}-gentoo.el
259 fi
260
261 dodoc AUTHORS BUGS CONTRIBUTE README || die "dodoc failed"
262 }
263
264 emacs-infodir-rebuild() {
265 # Depending on the Portage version, the Info dir file is compressed
266 # or removed. It is only rebuilt by Portage if our directory is in
267 # INFOPATH, which is not guaranteed. So we rebuild it ourselves.
268
269 local infodir=/usr/share/info/${EMACS_SUFFIX} f
270 einfo "Regenerating Info directory index in ${infodir} ..."
271 rm -f "${ROOT}"${infodir}/dir{,.*}
272 for f in "${ROOT}"${infodir}/*.info*; do
273 [[ ${f##*/} == *[0-9].info* ]] \
274 || install-info --info-dir="${ROOT}"${infodir} "${f}" &>/dev/null
275 done
276 rmdir "${ROOT}"${infodir} 2>/dev/null # remove dir if it is empty
277 echo
278 }
279
280 pkg_postinst() {
281 [ -f "${ROOT}"/usr/share/emacs/site-lisp/subdirs.el ] \
282 || cp "${ROOT}"/usr/share/emacs{/${FULL_VERSION},}/site-lisp/subdirs.el
283
284 local f
285 for f in "${ROOT}"/var/lib/games/emacs/{snake,tetris}-scores; do
286 [ -e "${f}" ] || touch "${f}"
287 done
288
289 elisp-site-regen
290 emacs-infodir-rebuild
291 eselect emacs update ifunset
292
293 if use X; then
294 elog "You need to install some fonts for Emacs. Under monolithic"
295 elog "XFree86/Xorg you typically had such fonts installed by default."
296 elog "With modular Xorg, you will have to perform this step yourself."
297 elog "Installing media-fonts/font-adobe-{75,100}dpi on the X server's"
298 elog "machine would satisfy basic Emacs requirements under X11."
299 fi
300
301 echo
302 elog "You can set the version to be started by /usr/bin/emacs through"
303 elog "the Emacs eselect module, which also redirects man and info pages."
304 elog "You can therefore test emacs-cvs along with the stable release."
305 elog "\"man emacs.eselect\" for details."
306 }
307
308 pkg_postrm() {
309 elisp-site-regen
310 emacs-infodir-rebuild
311 eselect emacs update ifunset
312 }
313
314
315
316 1.1 app-editors/emacs-cvs/emacs-cvs-23.0.9999.ebuild
317
318 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/emacs-cvs/emacs-cvs-23.0.9999.ebuild?rev=1.1&view=markup
319 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/emacs-cvs/emacs-cvs-23.0.9999.ebuild?rev=1.1&content-type=text/plain
320
321 Index: emacs-cvs-23.0.9999.ebuild
322 ===================================================================
323 # Copyright 1999-2008 Gentoo Foundation
324 # Distributed under the terms of the GNU General Public License v2
325 # $Header: /var/cvsroot/gentoo-x86/app-editors/emacs-cvs/emacs-cvs-23.0.9999.ebuild,v 1.1 2008/03/26 14:43:00 ulm Exp $
326
327 ECVS_AUTH="pserver"
328 ECVS_SERVER="cvs.savannah.gnu.org:/sources/emacs"
329 ECVS_MODULE="emacs"
330 ECVS_BRANCH="HEAD"
331 ECVS_LOCALNAME="emacs"
332
333 WANT_AUTOCONF="latest"
334 WANT_AUTOMAKE="latest"
335
336 inherit autotools cvs elisp-common eutils flag-o-matic
337
338 DESCRIPTION="The extensible, customizable, self-documenting real-time display editor"
339 HOMEPAGE="http://www.gnu.org/software/emacs/"
340 SRC_URI=""
341
342 LICENSE="GPL-3 FDL-1.2 BSD"
343 SLOT="23"
344 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
345
346 IUSE="alsa dbus gif gpm gtk gzip-el hesiod jpeg kerberos m17n-lib motif png spell sound source svg tiff toolkit-scroll-bars X Xaw3d xft xpm"
347 RESTRICT="strip"
348
349 RDEPEND="sys-libs/ncurses
350 >=app-admin/eselect-emacs-1.2
351 net-libs/liblockfile
352 hesiod? ( net-dns/hesiod )
353 kerberos? ( virtual/krb5 )
354 spell? ( || ( app-text/ispell app-text/aspell ) )
355 alsa? ( media-libs/alsa-lib )
356 gpm? ( sys-libs/gpm )
357 dbus? ( sys-apps/dbus )
358 X? (
359 x11-libs/libXmu
360 x11-libs/libXt
361 x11-misc/xbitmaps
362 x11-misc/emacs-desktop
363 gif? ( media-libs/giflib )
364 jpeg? ( media-libs/jpeg )
365 png? ( media-libs/libpng )
366 svg? ( >=gnome-base/librsvg-2.0 )
367 tiff? ( media-libs/tiff )
368 xpm? ( x11-libs/libXpm )
369 xft? (
370 media-libs/fontconfig
371 media-libs/freetype
372 virtual/xft
373 m17n-lib? (
374 >=dev-libs/libotf-0.9.4
375 >=dev-libs/m17n-lib-1.5.1
376 )
377 )
378 gtk? ( =x11-libs/gtk+-2* )
379 !gtk? (
380 Xaw3d? ( x11-libs/Xaw3d )
381 !Xaw3d? (
382 motif? ( virtual/motif )
383 )
384 )
385 )"
386
387 DEPEND="${RDEPEND}
388 dev-util/pkgconfig
389 gzip-el? ( app-arch/gzip )"
390
391 S="${WORKDIR}/${ECVS_LOCALNAME}"
392
393 EMACS_SUFFIX="emacs-${SLOT}"
394
395 src_unpack() {
396 cvs_src_unpack
397
398 cd "${S}"
399 # FULL_VERSION keeps the full version number, which is needed in
400 # order to determine some path information correctly for copy/move
401 # operations later on
402 FULL_VERSION=$(grep 'defconst[ ]*emacs-version' lisp/version.el \
403 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/')
404 [ "${FULL_VERSION}" ] || die "Cannot determine current Emacs version"
405 echo
406 einfo "Emacs CVS branch: ${ECVS_BRANCH}"
407 einfo "Emacs version number: ${FULL_VERSION}"
408 #[ "${FULL_VERSION}" = ${PV} ] \
409 # || die "Upstream version number changed to ${FULL_VERSION}"
410 echo
411
412 epatch "${FILESDIR}/${PN}-freebsd-sparc.patch"
413
414 sed -i -e "s:/usr/lib/crtbegin.o:$(`tc-getCC` -print-file-name=crtbegin.o):g" \
415 -e "s:/usr/lib/crtend.o:$(`tc-getCC` -print-file-name=crtend.o):g" \
416 "${S}"/src/s/freebsd.h || die "unable to sed freebsd.h settings"
417
418 if ! use alsa; then
419 # ALSA is detected even if not requested by its USE flag.
420 # Suppress it by supplying pkg-config with a wrong library name.
421 sed -i -e "/ALSA_MODULES=/s/alsa/DiSaBlEaLsA/" configure.in \
422 || die "unable to sed configure.in"
423 fi
424 if ! use gzip-el; then
425 # Emacs' build system automatically detects the gzip binary and
426 # compresses el files. We don't want that so confuse it with a
427 # wrong binary name
428 sed -i -e "s/ gzip/ PrEvEnTcOmPrEsSiOn/" configure.in \
429 || die "unable to sed configure.in"
430 fi
431
432 eautoreconf
433 }
434
435 src_compile() {
436 export SANDBOX_ON=0 # for the unbelievers, see Bug #131505
437 ALLOWED_FLAGS=""
438 strip-flags
439 #unset LDFLAGS
440 replace-flags -O[3-9] -O2
441
442 local myconf
443
444 if use alsa && ! use sound; then
445 echo
446 einfo "Although sound USE flag is disabled you chose to have alsa,"
447 einfo "so sound is switched on anyway."
448 echo
449 myconf="${myconf} --with-sound"
450 else
451 myconf="${myconf} $(use_with sound)"
452 fi
453
454 if use X; then
455 myconf="${myconf} --with-x"
456 myconf="${myconf} $(use_with toolkit-scroll-bars)"
457 myconf="${myconf} $(use_with gif) $(use_with jpeg)"
458 myconf="${myconf} $(use_with png) $(use_with svg rsvg)"
459 myconf="${myconf} $(use_with tiff) $(use_with xpm)"
460
461 myconf="${myconf} $(use_enable xft font-backend)"
462 myconf="${myconf} $(use_with xft freetype) $(use_with xft)"
463
464 if use xft; then
465 myconf="${myconf} $(use_with m17n-lib libotf)"
466 myconf="${myconf} $(use_with m17n-lib m17n-flt)"
467 else
468 myconf="${myconf} --without-libotf --without-m17n-flt"
469 use m17n-lib && einfo \
470 "USE flag \"m17n-lib\" has no effect because xft is not set."
471 fi
472
473 # GTK+ is the default toolkit if USE=gtk is chosen with other
474 # possibilities. Emacs upstream thinks this should be standard
475 # policy on all distributions
476 if use gtk; then
477 einfo "Configuring to build with GTK+ support"
478 myconf="${myconf} --with-x-toolkit=gtk"
479 elif use Xaw3d; then
480 einfo "Configuring to build with Xaw3d (athena) support"
481 myconf="${myconf} --with-x-toolkit=athena"
482 elif use motif; then
483 einfo "Configuring to build with motif toolkit support"
484 myconf="${myconf} --with-x-toolkit=motif"
485 else
486 einfo "Configuring to build with no toolkit"
487 myconf="${myconf} --with-x-toolkit=no"
488 fi
489 else
490 myconf="${myconf} --without-x"
491 fi
492
493 myconf="${myconf} $(use_with hesiod)"
494 myconf="${myconf} $(use_with kerberos) $(use_with kerberos kerberos5)"
495 myconf="${myconf} $(use_with gpm) $(use_with dbus)"
496
497 econf \
498 --program-suffix=-${EMACS_SUFFIX} \
499 --infodir=/usr/share/info/${EMACS_SUFFIX} \
500 --without-carbon \
501 ${myconf} || die "econf emacs failed"
502
503 emake CC="$(tc-getCC)" bootstrap || die "make bootstrap failed"
504 }
505
506 src_install () {
507 local i m
508
509 emake install DESTDIR="${D}" || die "make install failed"
510
511 rm "${D}"/usr/bin/emacs-${FULL_VERSION}-${EMACS_SUFFIX} \
512 || die "removing duplicate emacs executable failed"
513 mv "${D}"/usr/bin/emacs-${EMACS_SUFFIX} "${D}"/usr/bin/${EMACS_SUFFIX} \
514 || die "moving Emacs executable failed"
515
516 # move info documentation to the correct place
517 einfo "Fixing info documentation ..."
518 for i in "${D}"/usr/share/info/${EMACS_SUFFIX}/*; do
519 mv "${i}" "${i}.info" || die "mv info failed"
520 done
521
522 # move man pages to the correct place
523 einfo "Fixing manpages ..."
524 for m in "${D}"/usr/share/man/man1/* ; do
525 mv "${m}" "${m%.1}-${EMACS_SUFFIX}.1" || die "mv man failed"
526 done
527
528 # avoid collision between slots, see bug #169033 e.g.
529 rm "${D}"/usr/share/emacs/site-lisp/subdirs.el
530 rm -rf "${D}"/usr/share/{applications,icons}
531 rm "${D}"/var/lib/games/emacs/{snake,tetris}-scores
532 keepdir /var/lib/games/emacs/
533
534 if use source; then
535 insinto /usr/share/emacs/${FULL_VERSION}/src
536 # This is not meant to install all the source -- just the
537 # C source you might find via find-function
538 doins src/*.[ch]
539 sed 's/^X//' >10${PN}-${SLOT}-gentoo.el <<-EOF
540
541 ;;; ${PN}-${SLOT} site-lisp configuration
542
543 (if (string-match "\\\\\`${FULL_VERSION//./\\\\.}\\\\>" emacs-version)
544 X (setq find-function-C-source-directory
545 X "/usr/share/emacs/${FULL_VERSION}/src"))
546 EOF
547 elisp-site-file-install 10${PN}-${SLOT}-gentoo.el
548 fi
549
550 dodoc README BUGS || die "dodoc failed"
551 }
552
553 emacs-infodir-rebuild() {
554 # Depending on the Portage version, the Info dir file is compressed
555 # or removed. It is only rebuilt by Portage if our directory is in
556 # INFOPATH, which is not guaranteed. So we rebuild it ourselves.
557
558 local infodir=/usr/share/info/${EMACS_SUFFIX} f
559 einfo "Regenerating Info directory index in ${infodir} ..."
560 rm -f "${ROOT}"${infodir}/dir{,.*}
561 for f in "${ROOT}"${infodir}/*.info*; do
562 [[ ${f##*/} == *[0-9].info* ]] \
563 || install-info --info-dir="${ROOT}"${infodir} "${f}" &>/dev/null
564 done
565 rmdir "${ROOT}"${infodir} 2>/dev/null # remove dir if it is empty
566 echo
567 }
568
569 pkg_postinst() {
570 [ -f "${ROOT}"/usr/share/emacs/site-lisp/subdirs.el ] \
571 || cp "${ROOT}"/usr/share/emacs{/${FULL_VERSION},}/site-lisp/subdirs.el
572
573 local f
574 for f in "${ROOT}"/var/lib/games/emacs/{snake,tetris}-scores; do
575 [ -e "${f}" ] || touch "${f}"
576 done
577
578 elisp-site-regen
579 emacs-infodir-rebuild
580 eselect emacs update ifunset
581
582 if use X; then
583 elog "You need to install some fonts for Emacs. Under monolithic"
584 elog "XFree86/Xorg you typically had such fonts installed by default."
585 elog "With modular Xorg, you will have to perform this step yourself."
586 elog "Installing media-fonts/font-adobe-{75,100}dpi on the X server's"
587 elog "machine would satisfy basic Emacs requirements under X11."
588 fi
589
590 echo
591 elog "You can set the version to be started by /usr/bin/emacs through"
592 elog "the Emacs eselect module, which also redirects man and info pages."
593 elog "You can therefore test emacs-cvs along with the stable release."
594 elog "\"man emacs.eselect\" for details."
595 }
596
597 pkg_postrm() {
598 elisp-site-regen
599 emacs-infodir-rebuild
600 eselect emacs update ifunset
601 }
602
603
604
605 --
606 gentoo-commits@l.g.o mailing list