Gentoo Archives: gentoo-commits

From: "Ulrich Müller" <ulm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-editors/emacs/
Date: Tue, 29 Nov 2022 12:31:52
Message-Id: 1669725103.d806a0fe9b88683c1328d7fc14e50f8bc9a8615c.ulm@gentoo
1 commit: d806a0fe9b88683c1328d7fc14e50f8bc9a8615c
2 Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
3 AuthorDate: Tue Nov 29 12:28:18 2022 +0000
4 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
5 CommitDate: Tue Nov 29 12:31:43 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d806a0fe
7
8 app-editors/emacs: drop 28.2.9999
9
10 Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>
11
12 app-editors/emacs/emacs-28.2.9999.ebuild | 519 -------------------------------
13 1 file changed, 519 deletions(-)
14
15 diff --git a/app-editors/emacs/emacs-28.2.9999.ebuild b/app-editors/emacs/emacs-28.2.9999.ebuild
16 deleted file mode 100644
17 index 790b902a9586..000000000000
18 --- a/app-editors/emacs/emacs-28.2.9999.ebuild
19 +++ /dev/null
20 @@ -1,519 +0,0 @@
21 -# Copyright 1999-2022 Gentoo Authors
22 -# Distributed under the terms of the GNU General Public License v2
23 -
24 -EAPI=8
25 -
26 -inherit autotools elisp-common readme.gentoo-r1 toolchain-funcs
27 -
28 -if [[ ${PV##*.} = 9999 ]]; then
29 - inherit git-r3
30 - EGIT_REPO_URI="https://git.savannah.gnu.org/git/emacs.git"
31 - EGIT_BRANCH="emacs-28"
32 - EGIT_CHECKOUT_DIR="${WORKDIR}/emacs"
33 - S="${EGIT_CHECKOUT_DIR}"
34 - SLOT="${PV%%.*}-vcs"
35 -else
36 - # FULL_VERSION keeps the full version number, which is needed in
37 - # order to determine some path information correctly for copy/move
38 - # operations later on
39 - FULL_VERSION="${PV%%_*}"
40 - SRC_URI="mirror://gnu/emacs/${P}.tar.xz"
41 - S="${WORKDIR}/emacs-${FULL_VERSION}"
42 - # PV can be in any of the following formats:
43 - # 27.1 released version (slot 27)
44 - # 27.1_rc1 upstream release candidate (27)
45 - # 27.0.9999 live ebuild (slot 27-vcs)
46 - # 27.0.90 upstream prerelease snapshot (27-vcs)
47 - # 27.0.50_pre20191223 snapshot by Gentoo developer (27-vcs)
48 - if [[ ${PV} == *_pre* ]]; then
49 - SRC_URI="https://dev.gentoo.org/~ulm/distfiles/${P}.tar.xz"
50 - S="${WORKDIR}/emacs"
51 - elif [[ ${PV//[0-9]} != "." ]]; then
52 - SRC_URI="https://alpha.gnu.org/gnu/emacs/pretest/${PN}-${PV/_/-}.tar.xz"
53 - fi
54 - SLOT="${PV%%.*}"
55 - [[ ${PV} == *.*.* ]] && SLOT+="-vcs"
56 - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos"
57 -fi
58 -
59 -DESCRIPTION="The extensible, customizable, self-documenting real-time display editor"
60 -HOMEPAGE="https://www.gnu.org/software/emacs/"
61 -
62 -LICENSE="GPL-3+ FDL-1.3+ BSD HPND MIT W3C unicode PSF-2"
63 -IUSE="acl alsa aqua athena cairo dbus dynamic-loading games gfile gif +gmp gpm gsettings gtk gui gzip-el harfbuzz imagemagick +inotify jit jpeg json kerberos lcms libxml2 livecd m17n-lib mailutils motif png selinux sound source ssl svg systemd +threads tiff toolkit-scroll-bars wide-int Xaw3d xft +xpm xwidgets zlib"
64 -
65 -RDEPEND="app-emacs/emacs-common[games?,gui(-)?]
66 - sys-libs/ncurses:0=
67 - acl? ( virtual/acl )
68 - alsa? ( media-libs/alsa-lib )
69 - dbus? ( sys-apps/dbus )
70 - games? ( acct-group/gamestat )
71 - gmp? ( dev-libs/gmp:0= )
72 - gpm? ( sys-libs/gpm )
73 - !inotify? ( gfile? ( >=dev-libs/glib-2.28.6 ) )
74 - jit? (
75 - sys-devel/gcc:=[jit(-)]
76 - sys-libs/zlib
77 - )
78 - json? ( dev-libs/jansson:= )
79 - kerberos? ( virtual/krb5 )
80 - lcms? ( media-libs/lcms:2 )
81 - libxml2? ( >=dev-libs/libxml2-2.2.0 )
82 - mailutils? ( net-mail/mailutils[clients] )
83 - !mailutils? ( acct-group/mail net-libs/liblockfile )
84 - selinux? ( sys-libs/libselinux )
85 - ssl? ( net-libs/gnutls:0= )
86 - systemd? ( sys-apps/systemd )
87 - zlib? ( sys-libs/zlib )
88 - gui? ( !aqua? (
89 - x11-libs/libICE
90 - x11-libs/libSM
91 - x11-libs/libX11
92 - x11-libs/libXext
93 - x11-libs/libXfixes
94 - x11-libs/libXinerama
95 - x11-libs/libXrandr
96 - x11-libs/libxcb
97 - x11-misc/xbitmaps
98 - gsettings? ( >=dev-libs/glib-2.28.6 )
99 - gif? ( media-libs/giflib:0= )
100 - jpeg? ( media-libs/libjpeg-turbo:0= )
101 - png? ( >=media-libs/libpng-1.4:0= )
102 - svg? ( >=gnome-base/librsvg-2.0 )
103 - tiff? ( media-libs/tiff:0 )
104 - xpm? ( x11-libs/libXpm )
105 - imagemagick? ( >=media-gfx/imagemagick-6.6.2:0= )
106 - xft? (
107 - media-libs/fontconfig
108 - media-libs/freetype
109 - x11-libs/libXft
110 - x11-libs/libXrender
111 - cairo? ( >=x11-libs/cairo-1.12.18[X] )
112 - harfbuzz? ( media-libs/harfbuzz:0= )
113 - m17n-lib? (
114 - >=dev-libs/libotf-0.9.4
115 - >=dev-libs/m17n-lib-1.5.1
116 - )
117 - )
118 - gtk? (
119 - x11-libs/gtk+:3
120 - xwidgets? (
121 - net-libs/webkit-gtk:4=
122 - x11-libs/libXcomposite
123 - )
124 - )
125 - !gtk? (
126 - motif? (
127 - >=x11-libs/motif-2.3:0
128 - x11-libs/libXpm
129 - x11-libs/libXmu
130 - x11-libs/libXt
131 - )
132 - !motif? (
133 - Xaw3d? (
134 - x11-libs/libXaw3d
135 - x11-libs/libXmu
136 - x11-libs/libXt
137 - )
138 - !Xaw3d? ( athena? (
139 - x11-libs/libXaw
140 - x11-libs/libXmu
141 - x11-libs/libXt
142 - ) )
143 - )
144 - )
145 - ) )"
146 -
147 -DEPEND="${RDEPEND}
148 - gui? ( !aqua? ( x11-base/xorg-proto ) )"
149 -
150 -BDEPEND="sys-apps/texinfo
151 - virtual/pkgconfig
152 - gzip-el? ( app-arch/gzip )"
153 -
154 -IDEPEND="app-eselect/eselect-emacs"
155 -
156 -RDEPEND+=" ${IDEPEND}"
157 -
158 -EMACS_SUFFIX="emacs-${SLOT}"
159 -SITEFILE="20${EMACS_SUFFIX}-gentoo.el"
160 -
161 -src_prepare() {
162 - if [[ ${PV##*.} = 9999 ]]; then
163 - FULL_VERSION=$(sed -n 's/^AC_INIT([^,]*,[^0-9.]*\([0-9.]*\).*/\1/p' \
164 - configure.ac)
165 - [[ ${FULL_VERSION} ]] || die "Cannot determine current Emacs version"
166 - einfo "Emacs branch: ${EGIT_BRANCH}"
167 - einfo "Commit: ${EGIT_VERSION}"
168 - einfo "Emacs version number: ${FULL_VERSION}"
169 - [[ ${FULL_VERSION} =~ ^${PV%.*}(\..*)?$ ]] \
170 - || die "Upstream version number changed to ${FULL_VERSION}"
171 - fi
172 -
173 - if use jit; then
174 - export NATIVE_FULL_AOT=1
175 - find lisp -type f -name "*.elc" -delete || die
176 -
177 - # These files ignore LDFLAGS. We assign the variable here, because
178 - # for live ebuilds FULL_VERSION doesn't exist in global scope
179 - QA_FLAGS_IGNORED="usr/$(get_libdir)/emacs/${FULL_VERSION}/native-lisp/.*"
180 -
181 - # gccjit doesn't play well with ccache or distcc #801580
182 - # For now, work around the problem with an explicit LIBRARY_PATH
183 - has ccache ${FEATURES} || has distcc ${FEATURES} && tc-is-gcc \
184 - && export LIBRARY_PATH=$("$(tc-getCC)" -print-search-dirs \
185 - | sed -n '/^libraries:/{s:^[^/]*::;p}')
186 - fi
187 -
188 - default
189 -
190 - # Fix filename reference in redirected man page
191 - sed -i -e "/^\\.so/s/etags/&-${EMACS_SUFFIX}/" doc/man/ctags.1 || die
192 -
193 - # libseccomp is detected by configure but doesn't appear to have any
194 - # effect on the installed image. Suppress it by supplying pkg-config
195 - # with a wrong library name.
196 - sed -i -e "/CHECK_MODULES/s/libseccomp/DiSaBlE&/" configure.ac || die
197 -
198 - AT_M4DIR=m4 eautoreconf
199 -}
200 -
201 -src_configure() {
202 - local myconf
203 -
204 - # Prevents e.g. tests interfering with running Emacs.
205 - unset EMACS_SOCKET_NAME
206 -
207 - if use alsa; then
208 - use sound || ewarn \
209 - "USE flag \"alsa\" overrides \"-sound\"; enabling sound support."
210 - myconf+=" --with-sound=alsa"
211 - else
212 - myconf+=" --with-sound=$(usex sound oss)"
213 - fi
214 -
215 - if use jit; then
216 - use zlib || ewarn \
217 - "USE flag \"jit\" overrides \"-zlib\"; enabling zlib support."
218 - myconf+=" --with-zlib"
219 - else
220 - myconf+=" $(use_with zlib)"
221 - fi
222 -
223 - if ! use gui; then
224 - einfo "Configuring to build without window system support"
225 - myconf+=" --without-x --without-ns"
226 - elif use aqua; then
227 - einfo "Configuring to build with Nextstep (Macintosh Cocoa) support"
228 - myconf+=" --with-ns --disable-ns-self-contained"
229 - myconf+=" --without-x"
230 - else
231 - myconf+=" --with-x --without-ns"
232 - myconf+=" --without-gconf"
233 - myconf+=" $(use_with gsettings)"
234 - myconf+=" $(use_with toolkit-scroll-bars)"
235 - myconf+=" $(use_with gif)"
236 - myconf+=" $(use_with jpeg)"
237 - myconf+=" $(use_with png)"
238 - myconf+=" $(use_with svg rsvg)"
239 - myconf+=" $(use_with tiff)"
240 - myconf+=" $(use_with xpm)"
241 - myconf+=" $(use_with imagemagick)"
242 -
243 - if use xft; then
244 - myconf+=" --with-xft"
245 - myconf+=" $(use_with cairo)"
246 - myconf+=" $(use_with harfbuzz)"
247 - myconf+=" $(use_with m17n-lib libotf)"
248 - myconf+=" $(use_with m17n-lib m17n-flt)"
249 - else
250 - myconf+=" --without-xft"
251 - myconf+=" --without-cairo"
252 - myconf+=" --without-libotf --without-m17n-flt"
253 - use cairo && ewarn \
254 - "USE flag \"cairo\" has no effect if \"xft\" is not set."
255 - use m17n-lib && ewarn \
256 - "USE flag \"m17n-lib\" has no effect if \"xft\" is not set."
257 - fi
258 -
259 - local f line
260 - if use gtk; then
261 - einfo "Configuring to build with GIMP Toolkit (GTK+)"
262 - while read line; do ewarn "${line}"; done <<-EOF
263 - Your version of GTK+ will have problems with closing open
264 - displays. This is no problem if you just use one display, but
265 - if you use more than one and close one of them Emacs may crash.
266 - See <https://gitlab.gnome.org/GNOME/gtk/-/issues/221> and
267 - <https://gitlab.gnome.org/GNOME/gtk/-/issues/2315>.
268 - If you intend to use more than one display, then it is strongly
269 - recommended that you compile Emacs with the Athena/Lucid or the
270 - Motif toolkit instead.
271 - EOF
272 - myconf+=" --with-x-toolkit=gtk3 $(use_with xwidgets)"
273 - for f in motif Xaw3d athena; do
274 - use ${f} && ewarn \
275 - "USE flag \"${f}\" has no effect if \"gtk\" is set."
276 - done
277 - elif use motif; then
278 - einfo "Configuring to build with Motif toolkit"
279 - myconf+=" --with-x-toolkit=motif"
280 - for f in Xaw3d athena; do
281 - use ${f} && ewarn \
282 - "USE flag \"${f}\" has no effect if \"motif\" is set."
283 - done
284 - elif use athena || use Xaw3d; then
285 - einfo "Configuring to build with Athena/Lucid toolkit"
286 - myconf+=" --with-x-toolkit=lucid $(use_with Xaw3d xaw3d)"
287 - else
288 - einfo "Configuring to build with no toolkit"
289 - myconf+=" --with-x-toolkit=no"
290 - fi
291 - ! use gtk && use xwidgets && ewarn \
292 - "USE flag \"xwidgets\" has no effect if \"gtk\" is not set."
293 - fi
294 -
295 - if tc-is-cross-compiler; then
296 - # Configure a CBUILD directory when cross-compiling to make tools
297 - mkdir "${S}-build" && pushd "${S}-build" >/dev/null || die
298 - ECONF_SOURCE="${S}" econf_build --without-all --without-x-toolkit
299 - popd >/dev/null || die
300 - # Don't try to execute the binary for dumping during the build
301 - myconf+=" --with-dumping=none"
302 - elif use m68k; then
303 - # Workaround for https://debbugs.gnu.org/44531
304 - myconf+=" --with-dumping=unexec"
305 - else
306 - myconf+=" --with-dumping=pdumper"
307 - fi
308 -
309 - econf \
310 - --program-suffix="-${EMACS_SUFFIX}" \
311 - --includedir="${EPREFIX}"/usr/include/${EMACS_SUFFIX} \
312 - --infodir="${EPREFIX}"/usr/share/info/${EMACS_SUFFIX} \
313 - --localstatedir="${EPREFIX}"/var \
314 - --enable-locallisppath="${EPREFIX}/etc/emacs:${EPREFIX}${SITELISP}" \
315 - --without-compress-install \
316 - --without-hesiod \
317 - --without-pop \
318 - --with-file-notification=$(usev inotify || usev gfile || echo no) \
319 - --with-pdumper \
320 - $(use_enable acl) \
321 - $(use_with dbus) \
322 - $(use_with dynamic-loading modules) \
323 - $(use_with games gameuser ":gamestat") \
324 - $(use_with gmp libgmp) \
325 - $(use_with gpm) \
326 - $(use_with jit native-compilation) \
327 - $(use_with json) \
328 - $(use_with kerberos) $(use_with kerberos kerberos5) \
329 - $(use_with lcms lcms2) \
330 - $(use_with libxml2 xml2) \
331 - $(use_with mailutils) \
332 - $(use_with selinux) \
333 - $(use_with ssl gnutls) \
334 - $(use_with systemd libsystemd) \
335 - $(use_with threads) \
336 - $(use_with wide-int) \
337 - ${myconf}
338 -}
339 -
340 -src_compile() {
341 - if tc-is-cross-compiler; then
342 - # Build native tools for compiling lisp etc.
343 - emake -C "${S}-build" src
344 - emake lib # Cross-compile dependencies first for timestamps
345 - # Save native build tools in the cross-directory
346 - cp "${S}-build"/lib-src/make-{docfile,fingerprint} lib-src || die
347 - # Specify the native Emacs to compile lisp
348 - emake -C lisp all EMACS="${S}-build/src/emacs"
349 - fi
350 -
351 - emake
352 -}
353 -
354 -src_test() {
355 - # List .el test files with a comment above listing the exact
356 - # subtests which caused failure. Elements should begin with a %.
357 - # e.g. %lisp/gnus/mml-sec-tests.el.
358 - local exclude_tests=(
359 - # Reason: not yet known
360 - # mml-secure-en-decrypt-{1,2,3,4}
361 - # mml-secure-find-usable-keys-{1,2}
362 - # mml-secure-key-checks
363 - # mml-secure-select-preferred-keys-4
364 - # mml-secure-sign-verify-1
365 - %lisp/gnus/mml-sec-tests.el
366 -
367 - # Reason: race condition
368 - # Looks like it should be fixed in 29.x at least:
369 - # https://debbugs.gnu.org/cgi/bugreport.cgi?bug=55706
370 - # files-tests-file-name-non-special-file-in-directory-p
371 - %lisp/files-tests.el
372 -
373 - # Reason: permission denied on /nonexistent
374 - # (vc-*-bzr only fails if breezy is installed, as they
375 - # try to access cache dirs under /nonexistent)
376 - #
377 - # rmail-undigest-test-multipart-mixed-digest
378 - # rmail-undigest-test-rfc1153-less-strict-digest
379 - # rmail-undigest-test-rfc1153-sloppy-digest
380 - # rmail-undigest-test-rfc934-digest
381 - # vc-test-bzr02-state
382 - # vc-test-bzr05-rename-file
383 - # vc-test-bzr06-version-diff
384 - # vc-bzr-test-bug9781
385 - %lisp/mail/undigest-tests.el
386 - %lisp/vc/vc-tests.el
387 - %lisp/vc/vc-bzr-tests.el
388 -
389 - # Reason: fails if bubblewrap (bwrap) is installed
390 - # "bwrap: setting up uid map: Permission denied"
391 - #
392 - # bytecomp-tests--dest-mountpoint
393 - %lisp/emacs-lisp/bytecomp-tests.el
394 - )
395 -
396 - # See test/README for possible options
397 - emake \
398 - EMACS_TEST_VERBOSE=1 \
399 - EXCLUDE_TESTS="${exclude_tests[*]}" \
400 - TEST_BACKTRACE_LINE_LENGTH=nil \
401 - check
402 -}
403 -
404 -src_install() {
405 - emake DESTDIR="${D}" NO_BIN_LINK=t BLESSMAIL_TARGET= install
406 -
407 - mv "${ED}"/usr/bin/{emacs-${FULL_VERSION}-,}${EMACS_SUFFIX} || die
408 - mv "${ED}"/usr/share/man/man1/{emacs-,}${EMACS_SUFFIX}.1 || die
409 - mv "${ED}"/usr/share/metainfo/{emacs-,}${EMACS_SUFFIX}.metainfo.xml || die
410 -
411 - # move info dir to avoid collisions with the dir file generated by portage
412 - mv "${ED}"/usr/share/info/${EMACS_SUFFIX}/dir{,.orig} || die
413 - touch "${ED}"/usr/share/info/${EMACS_SUFFIX}/.keepinfodir
414 - docompress -x /usr/share/info/${EMACS_SUFFIX}/dir.orig
415 -
416 - # movemail must be setgid mail
417 - if ! use mailutils; then
418 - fowners root:mail /usr/libexec/emacs/${FULL_VERSION}/${CHOST}/movemail
419 - fperms 2751 /usr/libexec/emacs/${FULL_VERSION}/${CHOST}/movemail
420 - fi
421 -
422 - # avoid collision between slots, see bug #169033 e.g.
423 - rm "${ED}"/usr/share/emacs/site-lisp/subdirs.el || die
424 - rm -rf "${ED}"/usr/share/{applications,icons} || die
425 - rm -rf "${ED}/usr/$(get_libdir)/systemd" || die
426 - rm -rf "${ED}"/var || die
427 -
428 - # remove unused <version>/site-lisp dir
429 - rm -rf "${ED}"/usr/share/emacs/${FULL_VERSION}/site-lisp || die
430 -
431 - # remove COPYING file (except for etc/COPYING used by describe-copying)
432 - rm "${ED}"/usr/share/emacs/${FULL_VERSION}/lisp/COPYING || die
433 -
434 - if use systemd; then
435 - insinto /usr/lib/systemd/user
436 - sed -e "/^##/d" \
437 - -e "/^ExecStart/s,emacs,${EPREFIX}/usr/bin/${EMACS_SUFFIX}," \
438 - -e "/^ExecStop/s,emacsclient,${EPREFIX}/usr/bin/&-${EMACS_SUFFIX}," \
439 - etc/emacs.service | newins - ${EMACS_SUFFIX}.service
440 - assert
441 - fi
442 -
443 - if use gzip-el; then
444 - # compress .el files when a corresponding .elc exists
445 - find "${ED}"/usr/share/emacs/${FULL_VERSION}/lisp -type f \
446 - -name "*.elc" -print | sed 's/\.elc$/.el/' | xargs gzip -9n
447 - assert "gzip .el failed"
448 - fi
449 -
450 - local cdir
451 - if use source; then
452 - cdir="/usr/share/emacs/${FULL_VERSION}/src"
453 - insinto "${cdir}"
454 - # This is not meant to install all the source -- just the
455 - # C source you might find via find-function
456 - doins src/*.{c,h,m}
457 - elif has installsources ${FEATURES}; then
458 - cdir="/usr/src/debug/${CATEGORY}/${PF}/${S#"${WORKDIR}/"}/src"
459 - fi
460 -
461 - sed -e "${cdir:+#}/^Y/d" -e "s/^[XY]//" >"${T}/${SITEFILE}" <<-EOF || die
462 - X
463 - ;;; ${EMACS_SUFFIX} site-lisp configuration
464 - X
465 - (when (string-match "\\\\\`${FULL_VERSION//./\\\\.}\\\\>" emacs-version)
466 - Y (setq find-function-C-source-directory
467 - Y "${EPREFIX}${cdir}")
468 - X (let ((path (getenv "INFOPATH"))
469 - X (dir "${EPREFIX}/usr/share/info/${EMACS_SUFFIX}")
470 - X (re "\\\\\`${EPREFIX}/usr/share\\\\>"))
471 - X (and path
472 - X ;; move Emacs Info dir before anything else in /usr/share
473 - X (let* ((p (cons nil (split-string path ":" t))) (q p))
474 - X (while (and (cdr q) (not (string-match re (cadr q))))
475 - X (setq q (cdr q)))
476 - X (setcdr q (cons dir (delete dir (cdr q))))
477 - X (setq Info-directory-list (prune-directory-list (cdr p)))))))
478 - EOF
479 - elisp-site-file-install "${T}/${SITEFILE}" || die
480 -
481 - dodoc README BUGS CONTRIBUTE
482 -
483 - if use gui && use aqua; then
484 - dodir /Applications/Gentoo
485 - rm -rf "${ED}"/Applications/Gentoo/${EMACS_SUFFIX^}.app || die
486 - mv nextstep/Emacs.app \
487 - "${ED}"/Applications/Gentoo/${EMACS_SUFFIX^}.app || die
488 - fi
489 -
490 - local DOC_CONTENTS="You can set the version to be started by
491 - /usr/bin/emacs through the Emacs eselect module, which also
492 - redirects man and info pages. Therefore, several Emacs versions can
493 - be installed at the same time. \"man emacs.eselect\" for details.
494 - \\n\\nIf you upgrade from a previous major version of Emacs, then
495 - it is strongly recommended that you use app-admin/emacs-updater
496 - to rebuild all byte-compiled elisp files of the installed Emacs
497 - packages."
498 - if use gui; then
499 - DOC_CONTENTS+="\\n\\nYou need to install some fonts for Emacs.
500 - Installing media-fonts/font-adobe-{75,100}dpi on the X server's
501 - machine would satisfy basic Emacs requirements under X11.
502 - See also https://wiki.gentoo.org/wiki/Xft_support_for_GNU_Emacs
503 - for how to enable anti-aliased fonts."
504 - use aqua && DOC_CONTENTS+="\\n\\n${EMACS_SUFFIX^}.app is in
505 - \"${EPREFIX}/Applications/Gentoo\". You may want to copy or
506 - symlink it into /Applications by yourself."
507 - fi
508 - tc-is-cross-compiler && DOC_CONTENTS+="\\n\\nEmacs did not write
509 - a portable dump file due to being cross-compiled.
510 - To create this file at run time, execute the following command:
511 - \\n${EMACS_SUFFIX} --batch -Q --eval='(dump-emacs-portable
512 - \"/usr/libexec/emacs/${FULL_VERSION}/${CHOST}/emacs.pdmp\")'"
513 - readme.gentoo_create_doc
514 -}
515 -
516 -pkg_preinst() {
517 - # move Info dir file to correct name
518 - if [[ -d ${ED}/usr/share/info ]]; then
519 - mv "${ED}"/usr/share/info/${EMACS_SUFFIX}/dir{.orig,} || die
520 - fi
521 -}
522 -
523 -pkg_postinst() {
524 - elisp-site-regen
525 - readme.gentoo_print_elog
526 -
527 - if use livecd; then
528 - # force an update of the emacs symlink for the livecd/dvd,
529 - # because some microemacs packages set it with USE=livecd
530 - eselect emacs update
531 - else
532 - eselect emacs update ifunset
533 - fi
534 -}
535 -
536 -pkg_postrm() {
537 - elisp-site-regen
538 - eselect emacs update ifunset
539 -}