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