Gentoo Archives: gentoo-commits

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