1 |
commit: 15f5714455cc6ecb4c2d15eb9bc35e666c8e105a |
2 |
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon May 28 16:19:22 2018 +0000 |
4 |
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon May 28 17:27:00 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=15f57144 |
7 |
|
8 |
app-editors/emacs: Version bump. |
9 |
|
10 |
Package-Manager: Portage-2.3.40, Repoman-2.3.9 |
11 |
|
12 |
app-editors/emacs/Manifest | 1 + |
13 |
app-editors/emacs/emacs-26.1.ebuild | 382 ++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 383 insertions(+) |
15 |
|
16 |
diff --git a/app-editors/emacs/Manifest b/app-editors/emacs/Manifest |
17 |
index 7bf80c48735..29cbef010bb 100644 |
18 |
--- a/app-editors/emacs/Manifest |
19 |
+++ b/app-editors/emacs/Manifest |
20 |
@@ -8,3 +8,4 @@ DIST emacs-24.5.tar.xz 39759804 BLAKE2B aec253528038686822d1f8ed9a52dff276789ef7 |
21 |
DIST emacs-25.3-patches-1.tar.xz 1252 BLAKE2B 33c3c8e32b85f548201d4988d3aaf94e6440ab4727fced17aa26f00fd5665b755d3add254a764f579736bbfbc90716ff800e3ad5b8e7bd5d5c2370d31451e4b1 SHA512 09371a789a7c742b4e18f45a4c4e063a5392d0684899eb8be8c7415af9fe3c306083c62f18abc6a15c4fe76dd6ae3ac5c9b002c962971e59379cc187926a0c15 |
22 |
DIST emacs-25.3.tar.xz 42854740 BLAKE2B 4f4e2572bbef48b75c561497fc22046081e56099b6174725d79b15a5b16d5c886eaf8ff3f75cf561e989ebb092ab9e98ba7503e720a9db7560758b30d5116f23 SHA512 1cce656451b6ca8502ebb229e88bd3ef48b7f9444a10eeac4ea43bd5491b2efacd641dfa35227a33362c3866493d3449cf1df81606563eef44bba0ed668e457f |
23 |
DIST emacs-26.1-rc1.tar.xz 44010228 BLAKE2B c7d8d19a8488a88f3eea4dbf4c545de75956b6a82735826d15b603568577fde8019d7655e936ab60bc61e397f3db074e26d5a1d58534714fcaef585fa63a7719 SHA512 bf5a9fac61f024406b050037505c14c83db95f24760c2e32aa8f7e53cc8c2781883af0c3ffe820b039a9444a10e7fdcae7635b7e3c383718de22d77e7ceabe83 |
24 |
+DIST emacs-26.1.tar.xz 44258932 BLAKE2B 5b5ea6a506228507af18417c3f94c2d6ea482c25d13ec5e0bee9ec6a65e80c52c870162b4671e80a82f8310784c802924609f2f87d504b1a97617c44d859566f SHA512 537c2cfdd281151b360002419dde6280c313e07a937ed96405c67f754b3401ec5541091a3c0aa6690929bc33dd79e8e0d8844e7a6b014b7798c63cb15de210c2 |
25 |
|
26 |
diff --git a/app-editors/emacs/emacs-26.1.ebuild b/app-editors/emacs/emacs-26.1.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..09b6c8355e7 |
29 |
--- /dev/null |
30 |
+++ b/app-editors/emacs/emacs-26.1.ebuild |
31 |
@@ -0,0 +1,382 @@ |
32 |
+# Copyright 1999-2018 Gentoo Foundation |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=6 |
36 |
+ |
37 |
+inherit elisp-common flag-o-matic multilib readme.gentoo-r1 |
38 |
+ |
39 |
+DESCRIPTION="The extensible, customizable, self-documenting real-time display editor" |
40 |
+HOMEPAGE="https://www.gnu.org/software/emacs/" |
41 |
+SRC_URI="mirror://gnu/emacs/${P}.tar.xz" |
42 |
+ |
43 |
+LICENSE="GPL-3+ FDL-1.3+ BSD HPND MIT W3C unicode PSF-2" |
44 |
+SLOT="26" |
45 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" |
46 |
+IUSE="acl alsa aqua athena cairo dbus dynamic-loading games gconf gfile gif gpm gsettings gtk +gtk3 gzip-el imagemagick +inotify jpeg kerberos lcms libxml2 livecd m17n-lib mailutils motif png selinux sound source ssl svg systemd +threads tiff toolkit-scroll-bars wide-int X Xaw3d xft +xpm xwidgets zlib" |
47 |
+REQUIRED_USE="?? ( aqua X )" |
48 |
+ |
49 |
+RDEPEND="sys-libs/ncurses:0= |
50 |
+ >=app-eselect/eselect-emacs-1.16 |
51 |
+ >=app-emacs/emacs-common-gentoo-1.5[games?,X?] |
52 |
+ acl? ( virtual/acl ) |
53 |
+ alsa? ( media-libs/alsa-lib ) |
54 |
+ dbus? ( sys-apps/dbus ) |
55 |
+ gpm? ( sys-libs/gpm ) |
56 |
+ !inotify? ( gfile? ( >=dev-libs/glib-2.28.6 ) ) |
57 |
+ kerberos? ( virtual/krb5 ) |
58 |
+ lcms? ( media-libs/lcms:2 ) |
59 |
+ libxml2? ( >=dev-libs/libxml2-2.2.0 ) |
60 |
+ mailutils? ( net-mail/mailutils[clients] ) |
61 |
+ !mailutils? ( net-libs/liblockfile ) |
62 |
+ selinux? ( sys-libs/libselinux ) |
63 |
+ ssl? ( net-libs/gnutls:0= ) |
64 |
+ systemd? ( sys-apps/systemd ) |
65 |
+ zlib? ( sys-libs/zlib ) |
66 |
+ X? ( |
67 |
+ x11-libs/libICE |
68 |
+ x11-libs/libSM |
69 |
+ x11-libs/libX11 |
70 |
+ x11-libs/libXext |
71 |
+ x11-libs/libXfixes |
72 |
+ x11-libs/libXinerama |
73 |
+ x11-libs/libXrandr |
74 |
+ x11-libs/libxcb |
75 |
+ x11-misc/xbitmaps |
76 |
+ gconf? ( >=gnome-base/gconf-2.26.2 ) |
77 |
+ gsettings? ( >=dev-libs/glib-2.28.6 ) |
78 |
+ gif? ( media-libs/giflib:0= ) |
79 |
+ jpeg? ( virtual/jpeg:0= ) |
80 |
+ png? ( >=media-libs/libpng-1.4:0= ) |
81 |
+ svg? ( >=gnome-base/librsvg-2.0 ) |
82 |
+ tiff? ( media-libs/tiff:0 ) |
83 |
+ xpm? ( x11-libs/libXpm ) |
84 |
+ imagemagick? ( >=media-gfx/imagemagick-6.6.2:0= ) |
85 |
+ xft? ( |
86 |
+ media-libs/fontconfig |
87 |
+ media-libs/freetype |
88 |
+ x11-libs/libXft |
89 |
+ x11-libs/libXrender |
90 |
+ cairo? ( >=x11-libs/cairo-1.12.18 ) |
91 |
+ m17n-lib? ( |
92 |
+ >=dev-libs/libotf-0.9.4 |
93 |
+ >=dev-libs/m17n-lib-1.5.1 |
94 |
+ ) |
95 |
+ ) |
96 |
+ gtk? ( |
97 |
+ xwidgets? ( |
98 |
+ net-libs/webkit-gtk:4= |
99 |
+ x11-libs/gtk+:3 |
100 |
+ x11-libs/libXcomposite |
101 |
+ ) |
102 |
+ !xwidgets? ( |
103 |
+ gtk3? ( x11-libs/gtk+:3 ) |
104 |
+ !gtk3? ( x11-libs/gtk+:2 ) |
105 |
+ ) |
106 |
+ ) |
107 |
+ !gtk? ( |
108 |
+ motif? ( |
109 |
+ >=x11-libs/motif-2.3:0 |
110 |
+ x11-libs/libXpm |
111 |
+ x11-libs/libXmu |
112 |
+ x11-libs/libXt |
113 |
+ ) |
114 |
+ !motif? ( |
115 |
+ Xaw3d? ( |
116 |
+ x11-libs/libXaw3d |
117 |
+ x11-libs/libXmu |
118 |
+ x11-libs/libXt |
119 |
+ ) |
120 |
+ !Xaw3d? ( athena? ( |
121 |
+ x11-libs/libXaw |
122 |
+ x11-libs/libXmu |
123 |
+ x11-libs/libXt |
124 |
+ ) ) |
125 |
+ ) |
126 |
+ ) |
127 |
+ )" |
128 |
+ |
129 |
+DEPEND="${RDEPEND} |
130 |
+ virtual/pkgconfig |
131 |
+ gzip-el? ( app-arch/gzip ) |
132 |
+ X? ( x11-base/xorg-proto )" |
133 |
+# pax_kernel? ( sys-apps/attr ) |
134 |
+ |
135 |
+RDEPEND="${RDEPEND} |
136 |
+ !<app-editors/emacs-vcs-${PV}" |
137 |
+ |
138 |
+EMACS_SUFFIX="${PN/emacs/emacs-${SLOT}}" |
139 |
+SITEFILE="20${PN}-${SLOT}-gentoo.el" |
140 |
+# FULL_VERSION keeps the full version number, which is needed in |
141 |
+# order to determine some path information correctly for copy/move |
142 |
+# operations later on |
143 |
+FULL_VERSION="${PV%%_*}" |
144 |
+S="${WORKDIR}/emacs-${FULL_VERSION}" |
145 |
+ |
146 |
+src_prepare() { |
147 |
+ #eapply ../patch |
148 |
+ eapply_user |
149 |
+ |
150 |
+ # Fix filename reference in redirected man page |
151 |
+ sed -i -e "/^\\.so/s/etags/&-${EMACS_SUFFIX}/" doc/man/ctags.1 \ |
152 |
+ || die "unable to sed ctags.1" |
153 |
+ |
154 |
+ #AT_M4DIR=m4 eautoreconf |
155 |
+} |
156 |
+ |
157 |
+src_configure() { |
158 |
+ strip-flags |
159 |
+ filter-flags -pie #526948 |
160 |
+ |
161 |
+ if use sh; then |
162 |
+ replace-flags "-O[1-9]" -O0 #262359 |
163 |
+ elif use ia64; then |
164 |
+ replace-flags "-O[2-9]" -O1 #325373 |
165 |
+ else |
166 |
+ replace-flags "-O[3-9]" -O2 |
167 |
+ fi |
168 |
+ |
169 |
+ local myconf |
170 |
+ |
171 |
+ if use alsa; then |
172 |
+ use sound || ewarn \ |
173 |
+ "USE flag \"alsa\" overrides \"-sound\"; enabling sound support." |
174 |
+ myconf+=" --with-sound=alsa" |
175 |
+ else |
176 |
+ myconf+=" --with-sound=$(usex sound oss)" |
177 |
+ fi |
178 |
+ |
179 |
+ if use X; then |
180 |
+ myconf+=" --with-x --without-ns" |
181 |
+ myconf+=" $(use_with gconf)" |
182 |
+ myconf+=" $(use_with gsettings)" |
183 |
+ myconf+=" $(use_with toolkit-scroll-bars)" |
184 |
+ myconf+=" $(use_with gif)" |
185 |
+ myconf+=" $(use_with jpeg)" |
186 |
+ myconf+=" $(use_with png)" |
187 |
+ myconf+=" $(use_with svg rsvg)" |
188 |
+ myconf+=" $(use_with tiff)" |
189 |
+ myconf+=" $(use_with xpm)" |
190 |
+ myconf+=" $(use_with imagemagick)" |
191 |
+ |
192 |
+ if use xft; then |
193 |
+ myconf+=" --with-xft" |
194 |
+ myconf+=" $(use_with cairo)" |
195 |
+ myconf+=" $(use_with m17n-lib libotf)" |
196 |
+ myconf+=" $(use_with m17n-lib m17n-flt)" |
197 |
+ else |
198 |
+ myconf+=" --without-xft" |
199 |
+ myconf+=" --without-cairo" |
200 |
+ myconf+=" --without-libotf --without-m17n-flt" |
201 |
+ use cairo && ewarn \ |
202 |
+ "USE flag \"cairo\" has no effect if \"xft\" is not set." |
203 |
+ use m17n-lib && ewarn \ |
204 |
+ "USE flag \"m17n-lib\" has no effect if \"xft\" is not set." |
205 |
+ fi |
206 |
+ |
207 |
+ local f line |
208 |
+ if use gtk; then |
209 |
+ einfo "Configuring to build with GIMP Toolkit (GTK+)" |
210 |
+ while read line; do ewarn "${line}"; done <<-EOF |
211 |
+ Your version of GTK+ will have problems with closing open |
212 |
+ displays. This is no problem if you just use one display, but |
213 |
+ if you use more than one and close one of them Emacs may crash. |
214 |
+ See <https://bugzilla.gnome.org/show_bug.cgi?id=85715>. |
215 |
+ If you intend to use more than one display, then it is strongly |
216 |
+ recommended that you compile Emacs with the Athena/Lucid or the |
217 |
+ Motif toolkit instead. |
218 |
+ EOF |
219 |
+ if use xwidgets; then |
220 |
+ myconf+=" --with-x-toolkit=gtk3 --with-xwidgets" |
221 |
+ else |
222 |
+ myconf+=" --with-x-toolkit=$(usex gtk3 gtk3 gtk2)" |
223 |
+ myconf+=" --without-xwidgets" |
224 |
+ fi |
225 |
+ for f in motif Xaw3d athena; do |
226 |
+ use ${f} && ewarn \ |
227 |
+ "USE flag \"${f}\" has no effect if \"gtk\" is set." |
228 |
+ done |
229 |
+ elif use motif; then |
230 |
+ einfo "Configuring to build with Motif toolkit" |
231 |
+ myconf+=" --with-x-toolkit=motif" |
232 |
+ for f in Xaw3d athena; do |
233 |
+ use ${f} && ewarn \ |
234 |
+ "USE flag \"${f}\" has no effect if \"motif\" is set." |
235 |
+ done |
236 |
+ elif use athena || use Xaw3d; then |
237 |
+ einfo "Configuring to build with Athena/Lucid toolkit" |
238 |
+ myconf+=" --with-x-toolkit=lucid $(use_with Xaw3d xaw3d)" |
239 |
+ else |
240 |
+ einfo "Configuring to build with no toolkit" |
241 |
+ myconf+=" --with-x-toolkit=no" |
242 |
+ fi |
243 |
+ ! use gtk && use xwidgets && ewarn \ |
244 |
+ "USE flag \"xwidgets\" has no effect if \"gtk\" is not set." |
245 |
+ elif use aqua; then |
246 |
+ einfo "Configuring to build with Nextstep (Cocoa) support" |
247 |
+ myconf+=" --with-ns --disable-ns-self-contained" |
248 |
+ myconf+=" --without-x" |
249 |
+ else |
250 |
+ myconf+=" --without-x --without-ns" |
251 |
+ fi |
252 |
+ |
253 |
+ econf \ |
254 |
+ --program-suffix="-${EMACS_SUFFIX}" \ |
255 |
+ --infodir="${EPREFIX}"/usr/share/info/${EMACS_SUFFIX} \ |
256 |
+ --localstatedir="${EPREFIX}"/var \ |
257 |
+ --enable-locallisppath="${EPREFIX}/etc/emacs:${EPREFIX}${SITELISP}" \ |
258 |
+ --without-compress-install \ |
259 |
+ --without-hesiod \ |
260 |
+ --without-pop \ |
261 |
+ --with-file-notification=$(usev inotify || usev gfile || echo no) \ |
262 |
+ $(use_enable acl) \ |
263 |
+ $(use_with dbus) \ |
264 |
+ $(use_with dynamic-loading modules) \ |
265 |
+ $(use_with games gameuser ":gamestat") \ |
266 |
+ $(use_with gpm) \ |
267 |
+ $(use_with kerberos) $(use_with kerberos kerberos5) \ |
268 |
+ $(use_with lcms lcms2) \ |
269 |
+ $(use_with libxml2 xml2) \ |
270 |
+ $(use_with mailutils) \ |
271 |
+ $(use_with selinux) \ |
272 |
+ $(use_with ssl gnutls) \ |
273 |
+ $(use_with systemd libsystemd) \ |
274 |
+ $(use_with threads) \ |
275 |
+ $(use_with wide-int) \ |
276 |
+ $(use_with zlib) \ |
277 |
+ ${myconf} |
278 |
+} |
279 |
+ |
280 |
+src_compile() { |
281 |
+ # Disable sandbox when dumping. For the unbelievers, see bug #131505 |
282 |
+ emake RUN_TEMACS="SANDBOX_ON=0 LD_PRELOAD= env ./temacs" |
283 |
+} |
284 |
+ |
285 |
+src_install () { |
286 |
+ emake DESTDIR="${D}" NO_BIN_LINK=t install |
287 |
+ |
288 |
+ mv "${ED}"/usr/bin/{emacs-${FULL_VERSION}-,}${EMACS_SUFFIX} \ |
289 |
+ || die "moving emacs executable failed" |
290 |
+ mv "${ED}"/usr/share/man/man1/{emacs-,}${EMACS_SUFFIX}.1 \ |
291 |
+ || die "moving emacs man page failed" |
292 |
+ |
293 |
+ # move info dir to avoid collisions with the dir file generated by portage |
294 |
+ mv "${ED}"/usr/share/info/${EMACS_SUFFIX}/dir{,.orig} \ |
295 |
+ || die "moving info dir failed" |
296 |
+ touch "${ED}"/usr/share/info/${EMACS_SUFFIX}/.keepinfodir |
297 |
+ docompress -x /usr/share/info/${EMACS_SUFFIX}/dir.orig |
298 |
+ |
299 |
+ # avoid collision between slots, see bug #169033 e.g. |
300 |
+ rm "${ED}"/usr/share/emacs/site-lisp/subdirs.el |
301 |
+ rm -rf "${ED}"/usr/share/{appdata,applications,icons} |
302 |
+ rm -rf "${ED}/usr/$(get_libdir)" |
303 |
+ rm -rf "${ED}"/var |
304 |
+ |
305 |
+ # remove unused <version>/site-lisp dir |
306 |
+ rm -rf "${ED}"/usr/share/emacs/${FULL_VERSION}/site-lisp |
307 |
+ |
308 |
+ # remove COPYING file (except for etc/COPYING used by describe-copying) |
309 |
+ rm "${ED}"/usr/share/emacs/${FULL_VERSION}/lisp/COPYING |
310 |
+ |
311 |
+ if use gzip-el; then |
312 |
+ # compress .el files when a corresponding .elc exists |
313 |
+ find "${ED}"/usr/share/emacs/${FULL_VERSION}/lisp -type f \ |
314 |
+ -name "*.elc" -print | sed 's/\.elc$/.el/' | xargs gzip -9n |
315 |
+ assert "gzip .el failed" |
316 |
+ fi |
317 |
+ |
318 |
+ local cdir |
319 |
+ if use source; then |
320 |
+ cdir="/usr/share/emacs/${FULL_VERSION}/src" |
321 |
+ insinto "${cdir}" |
322 |
+ # This is not meant to install all the source -- just the |
323 |
+ # C source you might find via find-function |
324 |
+ doins src/*.{c,h,m} |
325 |
+ elif has installsources ${FEATURES}; then |
326 |
+ cdir="/usr/src/debug/${CATEGORY}/${PF}/${S#"${WORKDIR}/"}/src" |
327 |
+ fi |
328 |
+ |
329 |
+ sed -e "${cdir:+#}/^Y/d" -e "s/^[XY]//" >"${T}/${SITEFILE}" <<-EOF || die |
330 |
+ X |
331 |
+ ;;; ${PN}-${SLOT} site-lisp configuration |
332 |
+ X |
333 |
+ (when (string-match "\\\\\`${FULL_VERSION//./\\\\.}\\\\>" emacs-version) |
334 |
+ Y (setq find-function-C-source-directory |
335 |
+ Y "${EPREFIX}${cdir}") |
336 |
+ X (let ((path (getenv "INFOPATH")) |
337 |
+ X (dir "${EPREFIX}/usr/share/info/${EMACS_SUFFIX}") |
338 |
+ X (re "\\\\\`${EPREFIX}/usr/share/info\\\\>")) |
339 |
+ X (and path |
340 |
+ X ;; move Emacs Info dir before anything else in /usr/share/info |
341 |
+ X (let* ((p (cons nil (split-string path ":" t))) (q p)) |
342 |
+ X (while (and (cdr q) (not (string-match re (cadr q)))) |
343 |
+ X (setq q (cdr q))) |
344 |
+ X (setcdr q (cons dir (delete dir (cdr q)))) |
345 |
+ X (setq Info-directory-list (prune-directory-list (cdr p))))))) |
346 |
+ EOF |
347 |
+ elisp-site-file-install "${T}/${SITEFILE}" || die |
348 |
+ |
349 |
+ dodoc README BUGS CONTRIBUTE |
350 |
+ |
351 |
+ if use aqua; then |
352 |
+ dodir /Applications/Gentoo |
353 |
+ rm -rf "${ED}"/Applications/Gentoo/Emacs${EMACS_SUFFIX#emacs}.app |
354 |
+ mv nextstep/Emacs.app \ |
355 |
+ "${ED}"/Applications/Gentoo/Emacs${EMACS_SUFFIX#emacs}.app || die |
356 |
+ fi |
357 |
+ |
358 |
+ DOC_CONTENTS="You can set the version to be started by /usr/bin/emacs |
359 |
+ through the Emacs eselect module, which also redirects man and info |
360 |
+ pages. Therefore, several Emacs versions can be installed at the |
361 |
+ same time. \"man emacs.eselect\" for details. |
362 |
+ \\n\\nIf you upgrade from Emacs version 24.2 or earlier, then it is |
363 |
+ strongly recommended that you use app-admin/emacs-updater to rebuild |
364 |
+ all byte-compiled elisp files of the installed Emacs packages." |
365 |
+ use X && DOC_CONTENTS+="\\n\\nYou need to install some fonts for Emacs. |
366 |
+ Installing media-fonts/font-adobe-{75,100}dpi on the X server's |
367 |
+ machine would satisfy basic Emacs requirements under X11. |
368 |
+ See also https://wiki.gentoo.org/wiki/Xft_support_for_GNU_Emacs |
369 |
+ for how to enable anti-aliased fonts." |
370 |
+ use aqua && DOC_CONTENTS+="\\n\\nEmacs${EMACS_SUFFIX#emacs}.app is in |
371 |
+ \"${EPREFIX}/Applications/Gentoo\". You may want to copy or symlink |
372 |
+ it into /Applications by yourself." |
373 |
+ readme.gentoo_create_doc |
374 |
+} |
375 |
+ |
376 |
+pkg_preinst() { |
377 |
+ # move Info dir file to correct name |
378 |
+ local infodir=/usr/share/info/${EMACS_SUFFIX} f |
379 |
+ if [[ -f ${ED}${infodir}/dir.orig ]]; then |
380 |
+ mv "${ED}"${infodir}/dir{.orig,} || die "moving info dir failed" |
381 |
+ elif [[ -d "${ED}"${infodir} ]]; then |
382 |
+ # this should not happen in EAPI 4 |
383 |
+ ewarn "Regenerating Info directory index in ${infodir} ..." |
384 |
+ rm -f "${ED}"${infodir}/dir{,.*} |
385 |
+ for f in "${ED}"${infodir}/*; do |
386 |
+ if [[ ${f##*/} != *-[0-9]* && -e ${f} ]]; then |
387 |
+ install-info --info-dir="${ED}"${infodir} "${f}" \ |
388 |
+ || die "install-info failed" |
389 |
+ fi |
390 |
+ done |
391 |
+ fi |
392 |
+} |
393 |
+ |
394 |
+pkg_postinst() { |
395 |
+ elisp-site-regen |
396 |
+ readme.gentoo_print_elog |
397 |
+ |
398 |
+ if use livecd; then |
399 |
+ # force an update of the emacs symlink for the livecd/dvd, |
400 |
+ # because some microemacs packages set it with USE=livecd |
401 |
+ eselect emacs update |
402 |
+ elif [[ $(readlink "${EROOT}"/usr/bin/emacs) = ${EMACS_SUFFIX} ]]; then |
403 |
+ # refresh symlinks in case any installed files have changed |
404 |
+ eselect emacs set ${EMACS_SUFFIX} |
405 |
+ else |
406 |
+ eselect emacs update ifunset |
407 |
+ fi |
408 |
+} |
409 |
+ |
410 |
+pkg_postrm() { |
411 |
+ elisp-site-regen |
412 |
+ eselect emacs update ifunset |
413 |
+} |