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