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