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