Gentoo Archives: gentoo-commits

From: "Christian Faulhammer (opfer)" <opfer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-editors/emacs-cvs: ChangeLog emacs-cvs-22.1.50-r2.ebuild emacs-cvs-23.0.60-r1.ebuild emacs-cvs-23.0.50-r1.ebuild
Date: Tue, 27 Nov 2007 14:12:00
Message-Id: E1Ix1AD-0002Qz-GV@stork.gentoo.org
1 opfer 07/11/27 14:11:49
2
3 Modified: ChangeLog
4 Added: emacs-cvs-22.1.50-r2.ebuild
5 emacs-cvs-23.0.60-r1.ebuild
6 emacs-cvs-23.0.50-r1.ebuild
7 Log:
8 rev-bump to force rebuild for users with more current codebase
9 (Portage version: 2.1.3.19)
10
11 Revision Changes Path
12 1.173 app-editors/emacs-cvs/ChangeLog
13
14 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/emacs-cvs/ChangeLog?rev=1.173&view=markup
15 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/emacs-cvs/ChangeLog?rev=1.173&content-type=text/plain
16 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/emacs-cvs/ChangeLog?r1=1.172&r2=1.173
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/app-editors/emacs-cvs/ChangeLog,v
21 retrieving revision 1.172
22 retrieving revision 1.173
23 diff -u -r1.172 -r1.173
24 --- ChangeLog 22 Nov 2007 22:08:00 -0000 1.172
25 +++ ChangeLog 27 Nov 2007 14:11:48 -0000 1.173
26 @@ -1,6 +1,15 @@
27 # ChangeLog for app-editors/emacs-cvs
28 # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/app-editors/emacs-cvs/ChangeLog,v 1.172 2007/11/22 22:08:00 ulm Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/app-editors/emacs-cvs/ChangeLog,v 1.173 2007/11/27 14:11:48 opfer Exp $
31 +
32 +*emacs-cvs-23.0.60-r1 (27 Nov 2007)
33 +*emacs-cvs-23.0.50-r1 (27 Nov 2007)
34 +*emacs-cvs-22.1.50-r2 (27 Nov 2007)
35 +
36 + 27 Nov 2007; Christian Faulhammer <opfer@g.o>
37 + +emacs-cvs-22.1.50-r2.ebuild, +emacs-cvs-23.0.50-r1.ebuild,
38 + +emacs-cvs-23.0.60-r1.ebuild:
39 + rev-bump to force rebuild for users with more current codebase
40
41 22 Nov 2007; Ulrich Mueller <ulm@g.o> emacs-cvs-22.1.50-r1.ebuild,
42 emacs-cvs-22.1.50_p20070829-r1.ebuild, emacs-cvs-23.0.0_p20070920.ebuild,
43
44
45
46 1.1 app-editors/emacs-cvs/emacs-cvs-22.1.50-r2.ebuild
47
48 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/emacs-cvs/emacs-cvs-22.1.50-r2.ebuild?rev=1.1&view=markup
49 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/emacs-cvs/emacs-cvs-22.1.50-r2.ebuild?rev=1.1&content-type=text/plain
50
51 Index: emacs-cvs-22.1.50-r2.ebuild
52 ===================================================================
53 # Copyright 1999-2007 Gentoo Foundation
54 # Distributed under the terms of the GNU General Public License v2
55 # $Header: /var/cvsroot/gentoo-x86/app-editors/emacs-cvs/emacs-cvs-22.1.50-r2.ebuild,v 1.1 2007/11/27 14:11:48 opfer Exp $
56
57 ECVS_AUTH="pserver"
58 ECVS_SERVER="cvs.savannah.gnu.org:/sources/emacs"
59 ECVS_MODULE="emacs"
60 ECVS_BRANCH="EMACS_22_BASE"
61 ECVS_LOCALNAME="emacs-22"
62
63 WANT_AUTOCONF="latest"
64 WANT_AUTOMAKE="latest"
65
66 inherit autotools cvs elisp-common eutils flag-o-matic
67
68 DESCRIPTION="The extensible, customizable, self-documenting real-time display editor"
69 HOMEPAGE="http://www.gnu.org/software/emacs/"
70 SRC_URI=""
71
72 LICENSE="GPL-3 FDL-1.2 BSD"
73 SLOT="22"
74 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
75 IUSE="alsa gif gtk gzip-el hesiod jpeg kerberos motif png spell sound source tiff toolkit-scroll-bars X Xaw3d xpm"
76 RESTRICT="strip"
77
78 X_DEPEND="x11-libs/libXmu x11-libs/libXt x11-misc/xbitmaps"
79
80 RDEPEND="sys-libs/ncurses
81 >=app-admin/eselect-emacs-0.7-r1
82 sys-libs/zlib
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 $X_DEPEND
89 x11-misc/emacs-desktop
90 gif? ( media-libs/giflib )
91 jpeg? ( media-libs/jpeg )
92 tiff? ( media-libs/tiff )
93 png? ( media-libs/libpng )
94 xpm? ( x11-libs/libXpm )
95 gtk? ( =x11-libs/gtk+-2* )
96 !gtk? (
97 Xaw3d? ( x11-libs/Xaw3d )
98 !Xaw3d? (
99 motif? ( virtual/motif )
100 )
101 )
102 )"
103
104 DEPEND="${RDEPEND}
105 gzip-el? ( app-arch/gzip )"
106
107 S="${WORKDIR}/${ECVS_LOCALNAME}"
108
109 EMACS_SUFFIX="emacs-${SLOT}-cvs"
110
111 src_unpack() {
112 cvs_src_unpack
113
114 cd "${S}"
115 # FULL_VERSION keeps the full version number, which is needed in
116 # order to determine some path information correctly for copy/move
117 # operations later on
118 FULL_VERSION=$(grep 'defconst[ ]*emacs-version' lisp/version.el \
119 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/')
120 [ "${FULL_VERSION}" ] || die "Cannot determine current Emacs version"
121 echo
122 einfo "Emacs CVS branch: ${ECVS_BRANCH}"
123 einfo "Emacs version number: ${FULL_VERSION}"
124 [ "${FULL_VERSION}" = ${PV} ] \
125 || die "Upstream version number changed to ${FULL_VERSION}"
126 echo
127
128 sed -i -e "s:/usr/lib/crtbegin.o:$(`tc-getCC` -print-file-name=crtbegin.o):g" \
129 -e "s:/usr/lib/crtend.o:$(`tc-getCC` -print-file-name=crtend.o):g" \
130 "${S}"/src/s/freebsd.h || die "unable to sed freebsd.h settings"
131 if ! use gzip-el; then
132 # Emacs' build system automatically detects the gzip binary and
133 # compresses el files. We don't want that so confuse it with a
134 # wrong binary name
135 sed -i -e "s/ gzip/ PrEvEnTcOmPrEsSiOn/" configure.in \
136 || die "unable to sed configure.in"
137 fi
138
139 epatch "${FILESDIR}/${PN}-Xaw3d-headers.patch"
140 epatch "${FILESDIR}/${PN}-freebsd-sparc.patch"
141 # ALSA is detected and used even if not requested by the USE=alsa flag.
142 # So remove the automagic check
143 use alsa || epatch "${FILESDIR}/${PN}-disable_alsa_detection-r1.patch"
144
145 eautoreconf
146 }
147
148 src_compile() {
149 export SANDBOX_ON=0 # for the unbelievers, see Bug #131505
150 ALLOWED_FLAGS=""
151 strip-flags
152 unset LDFLAGS
153 replace-flags -O[3-9] -O2
154 sed -i -e "s/-lungif/-lgif/g" configure* src/Makefile* || die
155
156 local myconf
157
158 if use alsa && ! use sound; then
159 echo
160 einfo "Although sound USE flag is disabled you chose to have alsa,"
161 einfo "so sound is switched on anyway."
162 echo
163 myconf="${myconf} --with-sound"
164 else
165 myconf="${myconf} $(use_with sound)"
166 fi
167
168 if use X; then
169 myconf="${myconf} --with-x"
170 myconf="${myconf} $(use_with toolkit-scroll-bars)"
171 myconf="${myconf} $(use_with jpeg) $(use_with tiff)"
172 myconf="${myconf} $(use_with gif) $(use_with png)"
173 myconf="${myconf} $(use_with xpm)"
174
175 # GTK+ is the default toolkit if USE=gtk is chosen with other
176 # possibilities. Emacs upstream thinks this should be standard
177 # policy on all distributions
178 if use gtk; then
179 echo
180 einfo "Configuring to build with GTK support, disabling all other toolkits"
181 echo
182 myconf="${myconf} --with-x-toolkit=gtk"
183 elif use Xaw3d; then
184 einfo "Configuring to build with Xaw3d(athena) support"
185 myconf="${myconf} --with-x-toolkit=athena"
186 myconf="${myconf} --without-gtk"
187 elif use motif; then
188 einfo "Configuring to build with motif toolkit support"
189 myconf="${myconf} --with-x-toolkit=motif"
190 myconf="${myconf} --without-gtk"
191 else
192 einfo "Configuring to build with no toolkit"
193 myconf="${myconf} --with-x-toolkit=no"
194 myconf="${myconf} --without-gtk"
195 fi
196 else
197 myconf="${myconf} --without-x"
198 fi
199
200 myconf="${myconf} $(use_with hesiod)"
201 myconf="${myconf} $(use_with kerberos) $(use_with kerberos kerberos5)"
202
203 econf \
204 --program-suffix=-${EMACS_SUFFIX} \
205 --infodir=/usr/share/info/${EMACS_SUFFIX} \
206 --without-carbon \
207 ${myconf} || die "econf emacs failed"
208
209 emake CC="$(tc-getCC)" bootstrap || die "make bootstrap failed"
210 }
211
212 src_install () {
213 emake install DESTDIR="${D}" || die "make install failed"
214
215 rm "${D}"/usr/bin/emacs-${FULL_VERSION}-${EMACS_SUFFIX} \
216 || die "removing duplicate emacs executable failed"
217 mv "${D}"/usr/bin/emacs-${EMACS_SUFFIX} "${D}"/usr/bin/${EMACS_SUFFIX} \
218 || die "moving Emacs executable failed"
219
220 # move info documentation to the correct place
221 einfo "Fixing info documentation ..."
222 for i in "${D}"/usr/share/info/${EMACS_SUFFIX}/*; do
223 mv ${i} ${i}.info || die "mv info failed"
224 done
225
226 # move man pages to the correct place
227 einfo "Fixing manpages ..."
228 for m in "${D}"/usr/share/man/man1/* ; do
229 mv ${m} ${m%.1}-${EMACS_SUFFIX}.1 || die "mv man failed"
230 done
231
232 # avoid collision between slots, see bug #169033 e.g.
233 rm "${D}"/usr/share/emacs/site-lisp/subdirs.el
234 rm "${D}"/var/lib/games/emacs/{snake,tetris}-scores
235 keepdir /var/lib/games/emacs/
236
237 if use source; then
238 insinto /usr/share/emacs/${FULL_VERSION}/src
239 # This is not meant to install all the source -- just the
240 # C source you might find via find-function
241 doins src/*.[ch]
242 sed 's/^X//' >00${PN}-${SLOT}-gentoo.el <<-EOF
243
244 ;;; ${PN}-${SLOT} site-lisp configuration
245
246 (if (string-match "\\\\\`${FULL_VERSION//./\\\\.}\\\\>" emacs-version)
247 X (setq find-function-C-source-directory
248 X "/usr/share/emacs/${FULL_VERSION}/src"))
249 EOF
250 elisp-site-file-install 00${PN}-${SLOT}-gentoo.el
251 fi
252
253 dodoc AUTHORS BUGS CONTRIBUTE README || die "dodoc failed"
254 }
255
256 emacs-infodir-rebuild() {
257 # Depending on the Portage version, the Info dir file is compressed
258 # or removed. It is only rebuilt by Portage if our directory is in
259 # INFOPATH, which is not guaranteed. So we rebuild it ourselves.
260
261 local infodir=/usr/share/info/${EMACS_SUFFIX} f
262 einfo "Regenerating Info directory index in ${infodir} ..."
263 rm -f "${ROOT}"${infodir}/dir{,.*}
264 for f in "${ROOT}"${infodir}/*.info*; do
265 [[ ${f##*/} == *[0-9].info* ]] \
266 || install-info --info-dir="${ROOT}"${infodir} ${f} &>/dev/null
267 done
268 echo
269 }
270
271 pkg_postinst() {
272 test -f "${ROOT}"/usr/share/emacs/site-lisp/subdirs.el ||
273 cp "${ROOT}"/usr/share/emacs{/${FULL_VERSION},}/site-lisp/subdirs.el
274
275 local f
276 for f in "${ROOT}"/var/lib/games/emacs/{snake,tetris}-scores; do
277 test -e ${f} || touch ${f}
278 done
279
280 elisp-site-regen
281 emacs-infodir-rebuild
282 eselect emacs update --if-unset
283
284 if use X; then
285 elog "You need to install some fonts for Emacs. Under monolithic"
286 elog "XFree86/Xorg you typically had such fonts installed by default."
287 elog "With modular Xorg, you will have to perform this step yourself."
288 elog "Installing media-fonts/font-adobe-{75,100}dpi on the X server's"
289 elog "machine would satisfy basic Emacs requirements under X11."
290 fi
291
292 echo
293 elog "You can set the version to be started by /usr/bin/emacs through"
294 elog "the Emacs eselect module, which also redirects man and info pages."
295 elog "You can therefore test emacs-cvs along with the stable release."
296 elog "\"man emacs.eselect\" for details."
297 }
298
299 pkg_postrm() {
300 elisp-site-regen
301 emacs-infodir-rebuild
302 eselect emacs update --if-unset
303 }
304
305
306
307 1.1 app-editors/emacs-cvs/emacs-cvs-23.0.60-r1.ebuild
308
309 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/emacs-cvs/emacs-cvs-23.0.60-r1.ebuild?rev=1.1&view=markup
310 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/emacs-cvs/emacs-cvs-23.0.60-r1.ebuild?rev=1.1&content-type=text/plain
311
312 Index: emacs-cvs-23.0.60-r1.ebuild
313 ===================================================================
314 # Copyright 1999-2007 Gentoo Foundation
315 # Distributed under the terms of the GNU General Public License v2
316 # $Header: /var/cvsroot/gentoo-x86/app-editors/emacs-cvs/emacs-cvs-23.0.60-r1.ebuild,v 1.1 2007/11/27 14:11:48 opfer Exp $
317
318 ECVS_AUTH="pserver"
319 ECVS_SERVER="cvs.savannah.gnu.org:/sources/emacs"
320 ECVS_MODULE="emacs"
321 ECVS_BRANCH="emacs-unicode-2"
322 ECVS_LOCALNAME="emacs-unicode"
323
324 WANT_AUTOCONF="latest"
325 WANT_AUTOMAKE="latest"
326
327 inherit autotools cvs elisp-common eutils flag-o-matic
328
329 DESCRIPTION="The extensible, customizable, self-documenting real-time display editor"
330 HOMEPAGE="http://www.gnu.org/software/emacs/"
331 SRC_URI=""
332
333 LICENSE="GPL-3 FDL-1.2 BSD"
334 SLOT="23-unicode"
335 KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
336 IUSE="alsa gif gpm gtk gzip-el hesiod jpeg kerberos motif png spell sound source svg tiff toolkit-scroll-bars X Xaw3d xft xpm"
337 RESTRICT="strip"
338
339 X_DEPEND="x11-libs/libXmu x11-libs/libXt x11-misc/xbitmaps"
340
341 RDEPEND="sys-libs/ncurses
342 >=app-admin/eselect-emacs-0.7-r1
343 sys-libs/zlib
344 hesiod? ( net-dns/hesiod )
345 kerberos? ( virtual/krb5 )
346 spell? ( || ( app-text/ispell app-text/aspell ) )
347 alsa? ( media-libs/alsa-lib )
348 gpm? ( sys-libs/gpm )
349 X? (
350 $X_DEPEND
351 x11-misc/emacs-desktop
352 gif? ( media-libs/giflib )
353 jpeg? ( media-libs/jpeg )
354 tiff? ( media-libs/tiff )
355 png? ( media-libs/libpng )
356 svg? ( >=gnome-base/librsvg-2.0 )
357 xpm? ( x11-libs/libXpm )
358 xft? ( media-libs/fontconfig virtual/xft >=dev-libs/libotf-0.9.4 )
359 gtk? ( =x11-libs/gtk+-2* )
360 !gtk? (
361 Xaw3d? ( x11-libs/Xaw3d )
362 !Xaw3d? (
363 motif? ( virtual/motif )
364 )
365 )
366 )"
367
368 DEPEND="${RDEPEND}
369 gzip-el? ( app-arch/gzip )"
370
371 S="${WORKDIR}/${ECVS_LOCALNAME}"
372
373 EMACS_SUFFIX="emacs-${SLOT}"
374
375 src_unpack() {
376 cvs_src_unpack
377
378 cd "${S}"
379 # FULL_VERSION keeps the full version number, which is needed in
380 # order to determine some path information correctly for copy/move
381 # operations later on
382 FULL_VERSION=$(grep 'defconst[ ]*emacs-version' lisp/version.el \
383 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/')
384 [ "${FULL_VERSION}" ] || die "Cannot determine current Emacs version"
385 echo
386 einfo "Emacs CVS branch: ${ECVS_BRANCH}"
387 einfo "Emacs version number: ${FULL_VERSION}"
388 [ "${FULL_VERSION}" = ${PV} ] \
389 || die "Upstream version number changed to ${FULL_VERSION}"
390 echo
391
392 sed -i -e "s:/usr/lib/crtbegin.o:$(`tc-getCC` -print-file-name=crtbegin.o):g" \
393 -e "s:/usr/lib/crtend.o:$(`tc-getCC` -print-file-name=crtend.o):g" \
394 "${S}"/src/s/freebsd.h || die "unable to sed freebsd.h settings"
395 if ! use gzip-el; then
396 # Emacs' build system automatically detects the gzip binary and
397 # compresses el files. We don't want that so confuse it with a
398 # wrong binary name
399 sed -i -e "s/ gzip/ PrEvEnTcOmPrEsSiOn/" configure.in \
400 || die "unable to sed configure.in"
401 fi
402
403 epatch "${FILESDIR}/${PN}-freebsd-sparc.patch"
404 # ALSA is detected and used even if not requested by the USE=alsa flag.
405 # So remove the automagic check
406 use alsa || epatch "${FILESDIR}/${PN}-disable_alsa_detection-r1.patch"
407
408 eautoreconf
409 }
410
411 src_compile() {
412 export SANDBOX_ON=0 # for the unbelievers, see Bug #131505
413 ALLOWED_FLAGS=""
414 strip-flags
415 unset LDFLAGS
416 replace-flags -O[3-9] -O2
417
418 local myconf
419
420 if use alsa && ! use sound; then
421 echo
422 einfo "Although sound USE flag is disabled you chose to have alsa,"
423 einfo "so sound is switched on anyway."
424 echo
425 myconf="${myconf} --with-sound"
426 else
427 myconf="${myconf} $(use_with sound)"
428 fi
429
430 if use X; then
431 myconf="${myconf} --with-x"
432 myconf="${myconf} $(use_with toolkit-scroll-bars)"
433 myconf="${myconf} $(use_enable xft font-backend)"
434 myconf="${myconf} $(use_with xft freetype)"
435 myconf="${myconf} $(use_with xft)"
436 myconf="${myconf} $(use_with jpeg) $(use_with tiff)"
437 myconf="${myconf} $(use_with gif) $(use_with png)"
438 myconf="${myconf} $(use_with xpm) $(use_with svg rsvg)"
439
440 # GTK+ is the default toolkit if USE=gtk is chosen with other
441 # possibilities. Emacs upstream thinks this should be standard
442 # policy on all distributions
443 if use gtk; then
444 echo
445 einfo "Configuring to build with GTK support, disabling all other toolkits"
446 echo
447 myconf="${myconf} --with-x-toolkit=gtk"
448 elif use Xaw3d; then
449 einfo "Configuring to build with Xaw3d(athena) support"
450 myconf="${myconf} --with-x-toolkit=athena"
451 myconf="${myconf} --without-gtk"
452 elif use motif; then
453 einfo "Configuring to build with motif toolkit support"
454 myconf="${myconf} --with-x-toolkit=motif"
455 myconf="${myconf} --without-gtk"
456 else
457 einfo "Configuring to build with no toolkit"
458 myconf="${myconf} --with-x-toolkit=no"
459 myconf="${myconf} --without-gtk"
460 fi
461 else
462 myconf="${myconf} --without-x"
463 fi
464
465 myconf="${myconf} $(use_with hesiod)"
466 myconf="${myconf} $(use_with kerberos) $(use_with kerberos kerberos5)"
467 myconf="${myconf} $(use_with gpm)"
468
469 econf \
470 --program-suffix=-${EMACS_SUFFIX} \
471 --infodir=/usr/share/info/${EMACS_SUFFIX} \
472 --without-carbon \
473 ${myconf} || die "econf emacs failed"
474
475 emake CC="$(tc-getCC)" bootstrap || die "make bootstrap failed"
476 }
477
478 src_install () {
479 emake install DESTDIR="${D}" || die "make install failed"
480
481 rm "${D}"/usr/bin/emacs-${FULL_VERSION}-${EMACS_SUFFIX} \
482 || die "removing duplicate emacs executable failed"
483 mv "${D}"/usr/bin/emacs-${EMACS_SUFFIX} "${D}"/usr/bin/${EMACS_SUFFIX} \
484 || die "moving Emacs executable failed"
485
486 # move info documentation to the correct place
487 einfo "Fixing info documentation ..."
488 for i in "${D}"/usr/share/info/${EMACS_SUFFIX}/*; do
489 mv ${i} ${i}.info || die "mv info failed"
490 done
491
492 # move man pages to the correct place
493 einfo "Fixing manpages ..."
494 for m in "${D}"/usr/share/man/man1/* ; do
495 mv ${m} ${m%.1}-${EMACS_SUFFIX}.1 || die "mv man failed"
496 done
497
498 # avoid collision between slots, see bug #169033 e.g.
499 rm "${D}"/usr/share/emacs/site-lisp/subdirs.el
500 rm "${D}"/var/lib/games/emacs/{snake,tetris}-scores
501 keepdir /var/lib/games/emacs/
502
503 if use source; then
504 insinto /usr/share/emacs/${FULL_VERSION}/src
505 # This is not meant to install all the source -- just the
506 # C source you might find via find-function
507 doins src/*.[ch]
508 sed 's/^X//' >00${PN}-${SLOT}-gentoo.el <<-EOF
509
510 ;;; ${PN}-${SLOT} site-lisp configuration
511
512 (if (string-match "\\\\\`${FULL_VERSION//./\\\\.}\\\\>" emacs-version)
513 X (setq find-function-C-source-directory
514 X "/usr/share/emacs/${FULL_VERSION}/src"))
515 EOF
516 elisp-site-file-install 00${PN}-${SLOT}-gentoo.el
517 fi
518
519 dodoc README README.unicode BUGS || die "dodoc failed"
520 }
521
522 emacs-infodir-rebuild() {
523 # Depending on the Portage version, the Info dir file is compressed
524 # or removed. It is only rebuilt by Portage if our directory is in
525 # INFOPATH, which is not guaranteed. So we rebuild it ourselves.
526
527 local infodir=/usr/share/info/${EMACS_SUFFIX} f
528 einfo "Regenerating Info directory index in ${infodir} ..."
529 rm -f "${ROOT}"${infodir}/dir{,.*}
530 for f in "${ROOT}"${infodir}/*.info*; do
531 [[ ${f##*/} == *[0-9].info* ]] \
532 || install-info --info-dir="${ROOT}"${infodir} ${f} &>/dev/null
533 done
534 echo
535 }
536
537 pkg_postinst() {
538 test -f "${ROOT}"/usr/share/emacs/site-lisp/subdirs.el ||
539 cp "${ROOT}"/usr/share/emacs{/${FULL_VERSION},}/site-lisp/subdirs.el
540
541 local f
542 for f in "${ROOT}"/var/lib/games/emacs/{snake,tetris}-scores; do
543 test -e ${f} || touch ${f}
544 done
545
546 elisp-site-regen
547 emacs-infodir-rebuild
548 eselect emacs update --if-unset
549
550 if use X; then
551 elog "You need to install some fonts for Emacs. Under monolithic"
552 elog "XFree86/Xorg you typically had such fonts installed by default."
553 elog "With modular Xorg, you will have to perform this step yourself."
554 elog "Installing media-fonts/font-adobe-{75,100}dpi on the X server's"
555 elog "machine would satisfy basic Emacs requirements under X11."
556 fi
557
558 echo
559 elog "You can set the version to be started by /usr/bin/emacs through"
560 elog "the Emacs eselect module, which also redirects man and info pages."
561 elog "You can therefore test emacs-cvs along with the stable release."
562 elog "\"man emacs.eselect\" for details."
563 }
564
565 pkg_postrm() {
566 elisp-site-regen
567 emacs-infodir-rebuild
568 eselect emacs update --if-unset
569 }
570
571
572
573 1.1 app-editors/emacs-cvs/emacs-cvs-23.0.50-r1.ebuild
574
575 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/emacs-cvs/emacs-cvs-23.0.50-r1.ebuild?rev=1.1&view=markup
576 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/emacs-cvs/emacs-cvs-23.0.50-r1.ebuild?rev=1.1&content-type=text/plain
577
578 Index: emacs-cvs-23.0.50-r1.ebuild
579 ===================================================================
580 # Copyright 1999-2007 Gentoo Foundation
581 # Distributed under the terms of the GNU General Public License v2
582 # $Header: /var/cvsroot/gentoo-x86/app-editors/emacs-cvs/emacs-cvs-23.0.50-r1.ebuild,v 1.1 2007/11/27 14:11:48 opfer Exp $
583
584 ECVS_AUTH="pserver"
585 ECVS_SERVER="cvs.savannah.gnu.org:/sources/emacs"
586 ECVS_MODULE="emacs"
587 ECVS_BRANCH="HEAD"
588 ECVS_LOCALNAME="emacs"
589
590 WANT_AUTOCONF="latest"
591 WANT_AUTOMAKE="latest"
592
593 inherit autotools cvs elisp-common eutils flag-o-matic
594
595 DESCRIPTION="The extensible, customizable, self-documenting real-time display editor"
596 HOMEPAGE="http://www.gnu.org/software/emacs/"
597 SRC_URI=""
598
599 LICENSE="GPL-3 FDL-1.2 BSD"
600 SLOT="23"
601 KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
602 IUSE="alsa gif gpm gtk gzip-el hesiod jpeg kerberos motif png spell sound source svg tiff toolkit-scroll-bars X Xaw3d xpm"
603 RESTRICT="strip"
604
605 X_DEPEND="x11-libs/libXmu x11-libs/libXt x11-misc/xbitmaps"
606
607 RDEPEND="!=app-editors/emacs-cvs-23.0.0-r6
608 sys-libs/ncurses
609 >=app-admin/eselect-emacs-0.7-r1
610 sys-libs/zlib
611 hesiod? ( net-dns/hesiod )
612 kerberos? ( virtual/krb5 )
613 spell? ( || ( app-text/ispell app-text/aspell ) )
614 alsa? ( media-libs/alsa-lib )
615 gpm? ( sys-libs/gpm )
616 X? (
617 $X_DEPEND
618 x11-misc/emacs-desktop
619 gif? ( media-libs/giflib )
620 jpeg? ( media-libs/jpeg )
621 tiff? ( media-libs/tiff )
622 png? ( media-libs/libpng )
623 svg? ( >=gnome-base/librsvg-2.0 )
624 xpm? ( x11-libs/libXpm )
625 gtk? ( =x11-libs/gtk+-2* )
626 !gtk? (
627 Xaw3d? ( x11-libs/Xaw3d )
628 !Xaw3d? (
629 motif? ( virtual/motif )
630 )
631 )
632 )"
633
634 DEPEND="${RDEPEND}
635 gzip-el? ( app-arch/gzip )"
636
637 S="${WORKDIR}/${ECVS_LOCALNAME}"
638
639 EMACS_SUFFIX="emacs-${SLOT}"
640
641 src_unpack() {
642 cvs_src_unpack
643
644 cd "${S}"
645 # FULL_VERSION keeps the full version number, which is needed in
646 # order to determine some path information correctly for copy/move
647 # operations later on
648 FULL_VERSION=$(grep 'defconst[ ]*emacs-version' lisp/version.el \
649 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/')
650 [ "${FULL_VERSION}" ] || die "Cannot determine current Emacs version"
651 echo
652 einfo "Emacs CVS branch: ${ECVS_BRANCH}"
653 einfo "Emacs version number: ${FULL_VERSION}"
654 [ "${FULL_VERSION}" = ${PV} ] \
655 || die "Upstream version number changed to ${FULL_VERSION}"
656 echo
657
658 sed -i -e "s:/usr/lib/crtbegin.o:$(`tc-getCC` -print-file-name=crtbegin.o):g" \
659 -e "s:/usr/lib/crtend.o:$(`tc-getCC` -print-file-name=crtend.o):g" \
660 "${S}"/src/s/freebsd.h || die "unable to sed freebsd.h settings"
661 if ! use gzip-el; then
662 # Emacs' build system automatically detects the gzip binary and
663 # compresses el files. We don't want that so confuse it with a
664 # wrong binary name
665 sed -i -e "s/ gzip/ PrEvEnTcOmPrEsSiOn/" configure.in \
666 || die "unable to sed configure.in"
667 fi
668
669 epatch "${FILESDIR}/${PN}-freebsd-sparc.patch"
670 # ALSA is detected and used even if not requested by the USE=alsa flag.
671 # So remove the automagic check
672 use alsa || epatch "${FILESDIR}/${PN}-disable_alsa_detection-r1.patch"
673
674 eautoreconf
675 }
676
677 src_compile() {
678 export SANDBOX_ON=0 # for the unbelievers, see Bug #131505
679 ALLOWED_FLAGS=""
680 strip-flags
681 unset LDFLAGS
682 replace-flags -O[3-9] -O2
683
684 local myconf
685
686 if use alsa && ! use sound; then
687 echo
688 einfo "Although sound USE flag is disabled you chose to have alsa,"
689 einfo "so sound is switched on anyway."
690 echo
691 myconf="${myconf} --with-sound"
692 else
693 myconf="${myconf} $(use_with sound)"
694 fi
695
696 if use X; then
697 myconf="${myconf} --with-x"
698 myconf="${myconf} $(use_with toolkit-scroll-bars)"
699 myconf="${myconf} $(use_with jpeg) $(use_with tiff)"
700 myconf="${myconf} $(use_with gif) $(use_with png)"
701 myconf="${myconf} $(use_with xpm) $(use_with svg rsvg)"
702
703 # GTK+ is the default toolkit if USE=gtk is chosen with other
704 # possibilities. Emacs upstream thinks this should be standard
705 # policy on all distributions
706 if use gtk; then
707 echo
708 einfo "Configuring to build with GTK support, disabling all other toolkits"
709 echo
710 myconf="${myconf} --with-x-toolkit=gtk"
711 elif use Xaw3d; then
712 einfo "Configuring to build with Xaw3d(athena) support"
713 myconf="${myconf} --with-x-toolkit=athena"
714 myconf="${myconf} --without-gtk"
715 elif use motif; then
716 einfo "Configuring to build with motif toolkit support"
717 myconf="${myconf} --with-x-toolkit=motif"
718 myconf="${myconf} --without-gtk"
719 else
720 einfo "Configuring to build with no toolkit"
721 myconf="${myconf} --with-x-toolkit=no"
722 myconf="${myconf} --without-gtk"
723 fi
724 else
725 myconf="${myconf} --without-x"
726 fi
727
728 myconf="${myconf} $(use_with hesiod)"
729 myconf="${myconf} $(use_with kerberos) $(use_with kerberos kerberos5)"
730 myconf="${myconf} $(use_with gpm)"
731
732 econf \
733 --program-suffix=-${EMACS_SUFFIX} \
734 --infodir=/usr/share/info/${EMACS_SUFFIX} \
735 --without-carbon \
736 ${myconf} || die "econf emacs failed"
737
738 emake CC="$(tc-getCC)" bootstrap || die "make bootstrap failed"
739 }
740
741 src_install () {
742 emake install DESTDIR="${D}" || die "make install failed"
743
744 rm "${D}"/usr/bin/emacs-${FULL_VERSION}-${EMACS_SUFFIX} \
745 || die "removing duplicate emacs executable failed"
746 mv "${D}"/usr/bin/emacs-${EMACS_SUFFIX} "${D}"/usr/bin/${EMACS_SUFFIX} \
747 || die "moving Emacs executable failed"
748
749 # move info documentation to the correct place
750 einfo "Fixing info documentation ..."
751 for i in "${D}"/usr/share/info/${EMACS_SUFFIX}/*; do
752 mv ${i} ${i}.info || die "mv info failed"
753 done
754
755 # move man pages to the correct place
756 einfo "Fixing manpages ..."
757 for m in "${D}"/usr/share/man/man1/* ; do
758 mv ${m} ${m%.1}-${EMACS_SUFFIX}.1 || die "mv man failed"
759 done
760
761 # avoid collision between slots, see bug #169033 e.g.
762 rm "${D}"/usr/share/emacs/site-lisp/subdirs.el
763 rm "${D}"/var/lib/games/emacs/{snake,tetris}-scores
764 keepdir /var/lib/games/emacs/
765
766 if use source; then
767 insinto /usr/share/emacs/${FULL_VERSION}/src
768 # This is not meant to install all the source -- just the
769 # C source you might find via find-function
770 doins src/*.[ch]
771 sed 's/^X//' >00${PN}-${SLOT}-gentoo.el <<-EOF
772
773 ;;; ${PN}-${SLOT} site-lisp configuration
774
775 (if (string-match "\\\\\`${FULL_VERSION//./\\\\.}\\\\>" emacs-version)
776 X (setq find-function-C-source-directory
777 X "/usr/share/emacs/${FULL_VERSION}/src"))
778 EOF
779 elisp-site-file-install 00${PN}-${SLOT}-gentoo.el
780 fi
781
782 dodoc README BUGS || die "dodoc failed"
783 }
784
785 emacs-infodir-rebuild() {
786 # Depending on the Portage version, the Info dir file is compressed
787 # or removed. It is only rebuilt by Portage if our directory is in
788 # INFOPATH, which is not guaranteed. So we rebuild it ourselves.
789
790 local infodir=/usr/share/info/${EMACS_SUFFIX} f
791 einfo "Regenerating Info directory index in ${infodir} ..."
792 rm -f "${ROOT}"${infodir}/dir{,.*}
793 for f in "${ROOT}"${infodir}/*.info*; do
794 [[ ${f##*/} == *[0-9].info* ]] \
795 || install-info --info-dir="${ROOT}"${infodir} ${f} &>/dev/null
796 done
797 echo
798 }
799
800 pkg_postinst() {
801 test -f "${ROOT}"/usr/share/emacs/site-lisp/subdirs.el ||
802 cp "${ROOT}"/usr/share/emacs{/${FULL_VERSION},}/site-lisp/subdirs.el
803
804 local f
805 for f in "${ROOT}"/var/lib/games/emacs/{snake,tetris}-scores; do
806 test -e ${f} || touch ${f}
807 done
808
809 elisp-site-regen
810 emacs-infodir-rebuild
811 eselect emacs update --if-unset
812
813 if use X; then
814 elog "You need to install some fonts for Emacs. Under monolithic"
815 elog "XFree86/Xorg you typically had such fonts installed by default."
816 elog "With modular Xorg, you will have to perform this step yourself."
817 elog "Installing media-fonts/font-adobe-{75,100}dpi on the X server's"
818 elog "machine would satisfy basic Emacs requirements under X11."
819 fi
820
821 echo
822 elog "You can set the version to be started by /usr/bin/emacs through"
823 elog "the Emacs eselect module, which also redirects man and info pages."
824 elog "You can therefore test emacs-cvs along with the stable release."
825 elog "\"man emacs.eselect\" for details."
826 }
827
828 pkg_postrm() {
829 elisp-site-regen
830 emacs-infodir-rebuild
831 eselect emacs update --if-unset
832 }
833
834
835
836 --
837 gentoo-commits@g.o mailing list