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