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