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: Mon, 04 Apr 2022 12:44:29
Message-Id: 1649076235.33168c48c3369d2c83532823280359d7cc3355a6.ulm@gentoo
1 commit: 33168c48c3369d2c83532823280359d7cc3355a6
2 Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
3 AuthorDate: Mon Apr 4 12:40:42 2022 +0000
4 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
5 CommitDate: Mon Apr 4 12:43:55 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=33168c48
7
8 app-editors/emacs: Remove pretest snapshot
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.0.92.ebuild | 458 ---------------------------------
14 2 files changed, 459 deletions(-)
15
16 diff --git a/app-editors/emacs/Manifest b/app-editors/emacs/Manifest
17 index 7dc3c6449053..8eac7d76703d 100644
18 --- a/app-editors/emacs/Manifest
19 +++ b/app-editors/emacs/Manifest
20 @@ -11,5 +11,4 @@ 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.0.92.tar.xz 47692892 BLAKE2B 3a0a1e6cec79dd56c36d7f3227654f10e1d0d1a7b933a269e25bdd0da6bcec6653500ee0775b70bafdb09bb59d0976474535b82316eee592fafc8fa9e4d7c0e7 SHA512 5e6800baf2ee5a8127956517578cbddcc8fe71fdd9925a04e53ae645b455bc49300c72604d4401c837a733eaeb54fa4ab43ed3bc2bc68e31d4c33ced6e6c9a33
25 DIST emacs-28.1.tar.xz 47699512 BLAKE2B 42a12bec2dc74f4838ae79b5589fb7439ff415d8ddd34f2ff7a8c503f909ddd4144ad35ae19c758d8627cfa9ed29276b326c5bec3853a77cd179e9fb17d22ad7 SHA512 c146ff7086aba49fa6c18adf4e485a59eb4c6525fddb9d385034446830b8bb0ac9e6fb76e7b6d94a9fddc41643415f36acad57a1ae16a841c97f61bc211459d9
26
27 diff --git a/app-editors/emacs/emacs-28.0.92.ebuild b/app-editors/emacs/emacs-28.0.92.ebuild
28 deleted file mode 100644
29 index 5bd030d164a3..000000000000
30 --- a/app-editors/emacs/emacs-28.0.92.ebuild
31 +++ /dev/null
32 @@ -1,458 +0,0 @@
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 flag-o-matic 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? ( virtual/jpeg: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 #801580
189 - # For now, work around the problem with an explicit LIBRARY_PATH
190 - has ccache ${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 - strip-flags
205 - filter-flags -pie #526948
206 -
207 - if use ia64; then
208 - replace-flags "-O[2-9]" -O1 #325373
209 - else
210 - replace-flags "-O[3-9]" -O2
211 - fi
212 -
213 - local myconf
214 -
215 - if use alsa; then
216 - use sound || ewarn \
217 - "USE flag \"alsa\" overrides \"-sound\"; enabling sound support."
218 - myconf+=" --with-sound=alsa"
219 - else
220 - myconf+=" --with-sound=$(usex sound oss)"
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 - $(use_with zlib) \
338 - ${myconf}
339 -}
340 -
341 -src_compile() {
342 - if tc-is-cross-compiler; then
343 - # Build native tools for compiling lisp etc.
344 - emake -C "${S}-build" src
345 - emake lib # Cross-compile dependencies first for timestamps
346 - # Save native build tools in the cross-directory
347 - cp "${S}-build"/lib-src/make-{docfile,fingerprint} lib-src || die
348 - # Specify the native Emacs to compile lisp
349 - emake -C lisp all EMACS="${S}-build/src/emacs"
350 - fi
351 -
352 - emake
353 -}
354 -
355 -src_install() {
356 - emake DESTDIR="${D}" NO_BIN_LINK=t BLESSMAIL_TARGET= install
357 -
358 - mv "${ED}"/usr/bin/{emacs-${FULL_VERSION}-,}${EMACS_SUFFIX} || die
359 - mv "${ED}"/usr/share/man/man1/{emacs-,}${EMACS_SUFFIX}.1 || die
360 - mv "${ED}"/usr/share/metainfo/{emacs-,}${EMACS_SUFFIX}.metainfo.xml || die
361 -
362 - # move info dir to avoid collisions with the dir file generated by portage
363 - mv "${ED}"/usr/share/info/${EMACS_SUFFIX}/dir{,.orig} || die
364 - touch "${ED}"/usr/share/info/${EMACS_SUFFIX}/.keepinfodir
365 - docompress -x /usr/share/info/${EMACS_SUFFIX}/dir.orig
366 -
367 - # movemail must be setgid mail
368 - if ! use mailutils; then
369 - fowners root:mail /usr/libexec/emacs/${FULL_VERSION}/${CHOST}/movemail
370 - fperms 2751 /usr/libexec/emacs/${FULL_VERSION}/${CHOST}/movemail
371 - fi
372 -
373 - # avoid collision between slots, see bug #169033 e.g.
374 - rm "${ED}"/usr/share/emacs/site-lisp/subdirs.el || die
375 - rm -rf "${ED}"/usr/share/{applications,icons} || die
376 - rm -rf "${ED}/usr/$(get_libdir)/systemd" || die
377 - rm -rf "${ED}"/var || die
378 -
379 - # remove unused <version>/site-lisp dir
380 - rm -rf "${ED}"/usr/share/emacs/${FULL_VERSION}/site-lisp || die
381 -
382 - # remove COPYING file (except for etc/COPYING used by describe-copying)
383 - rm "${ED}"/usr/share/emacs/${FULL_VERSION}/lisp/COPYING || die
384 -
385 - if use systemd; then
386 - insinto /usr/lib/systemd/user
387 - sed -e "/^##/d" \
388 - -e "/^ExecStart/s,emacs,${EPREFIX}/usr/bin/${EMACS_SUFFIX}," \
389 - -e "/^ExecStop/s,emacsclient,${EPREFIX}/usr/bin/&-${EMACS_SUFFIX}," \
390 - etc/emacs.service | newins - ${EMACS_SUFFIX}.service
391 - assert
392 - fi
393 -
394 - if use gzip-el; then
395 - # compress .el files when a corresponding .elc exists
396 - find "${ED}"/usr/share/emacs/${FULL_VERSION}/lisp -type f \
397 - -name "*.elc" -print | sed 's/\.elc$/.el/' | xargs gzip -9n
398 - assert "gzip .el failed"
399 - fi
400 -
401 - local cdir
402 - if use source; then
403 - cdir="/usr/share/emacs/${FULL_VERSION}/src"
404 - insinto "${cdir}"
405 - # This is not meant to install all the source -- just the
406 - # C source you might find via find-function
407 - doins src/*.{c,h,m}
408 - elif has installsources ${FEATURES}; then
409 - cdir="/usr/src/debug/${CATEGORY}/${PF}/${S#"${WORKDIR}/"}/src"
410 - fi
411 -
412 - sed -e "${cdir:+#}/^Y/d" -e "s/^[XY]//" >"${T}/${SITEFILE}" <<-EOF || die
413 - X
414 - ;;; ${EMACS_SUFFIX} site-lisp configuration
415 - X
416 - (when (string-match "\\\\\`${FULL_VERSION//./\\\\.}\\\\>" emacs-version)
417 - Y (setq find-function-C-source-directory
418 - Y "${EPREFIX}${cdir}")
419 - X (let ((path (getenv "INFOPATH"))
420 - X (dir "${EPREFIX}/usr/share/info/${EMACS_SUFFIX}")
421 - X (re "\\\\\`${EPREFIX}/usr/share\\\\>"))
422 - X (and path
423 - X ;; move Emacs Info dir before anything else in /usr/share
424 - X (let* ((p (cons nil (split-string path ":" t))) (q p))
425 - X (while (and (cdr q) (not (string-match re (cadr q))))
426 - X (setq q (cdr q)))
427 - X (setcdr q (cons dir (delete dir (cdr q))))
428 - X (setq Info-directory-list (prune-directory-list (cdr p)))))))
429 - EOF
430 - elisp-site-file-install "${T}/${SITEFILE}" || die
431 -
432 - dodoc README BUGS CONTRIBUTE
433 -
434 - if use gui && use aqua; then
435 - dodir /Applications/Gentoo
436 - rm -rf "${ED}"/Applications/Gentoo/${EMACS_SUFFIX^}.app || die
437 - mv nextstep/Emacs.app \
438 - "${ED}"/Applications/Gentoo/${EMACS_SUFFIX^}.app || die
439 - fi
440 -
441 - local DOC_CONTENTS="You can set the version to be started by
442 - /usr/bin/emacs through the Emacs eselect module, which also
443 - redirects man and info pages. Therefore, several Emacs versions can
444 - be installed at the same time. \"man emacs.eselect\" for details.
445 - \\n\\nIf you upgrade from a previous major version of Emacs, then
446 - it is strongly recommended that you use app-admin/emacs-updater
447 - to rebuild all byte-compiled elisp files of the installed Emacs
448 - packages."
449 - if use gui; then
450 - DOC_CONTENTS+="\\n\\nYou need to install some fonts for Emacs.
451 - Installing media-fonts/font-adobe-{75,100}dpi on the X server's
452 - machine would satisfy basic Emacs requirements under X11.
453 - See also https://wiki.gentoo.org/wiki/Xft_support_for_GNU_Emacs
454 - for how to enable anti-aliased fonts."
455 - use aqua && DOC_CONTENTS+="\\n\\n${EMACS_SUFFIX^}.app is in
456 - \"${EPREFIX}/Applications/Gentoo\". You may want to copy or
457 - symlink it into /Applications by yourself."
458 - fi
459 - tc-is-cross-compiler && DOC_CONTENTS+="\\n\\nEmacs did not write
460 - a portable dump file due to being cross-compiled.
461 - To create this file at run time, execute the following command:
462 - \\n${EMACS_SUFFIX} --batch -Q --eval='(dump-emacs-portable
463 - \"/usr/libexec/emacs/${FULL_VERSION}/${CHOST}/emacs.pdmp\")'"
464 - readme.gentoo_create_doc
465 -}
466 -
467 -pkg_preinst() {
468 - # move Info dir file to correct name
469 - if [[ -d ${ED}/usr/share/info ]]; then
470 - mv "${ED}"/usr/share/info/${EMACS_SUFFIX}/dir{.orig,} || die
471 - fi
472 -}
473 -
474 -pkg_postinst() {
475 - elisp-site-regen
476 - readme.gentoo_print_elog
477 -
478 - if use livecd; then
479 - # force an update of the emacs symlink for the livecd/dvd,
480 - # because some microemacs packages set it with USE=livecd
481 - eselect emacs update
482 - else
483 - eselect emacs update ifunset
484 - fi
485 -}
486 -
487 -pkg_postrm() {
488 - elisp-site-regen
489 - eselect emacs update ifunset
490 -}