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, 01 Jun 2018 18:21:09
Message-Id: 1527877131.29f14f13e62491742d4e6562453535ce3328ec36.ulm@gentoo
1 commit: 29f14f13e62491742d4e6562453535ce3328ec36
2 Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jun 1 18:18:51 2018 +0000
4 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
5 CommitDate: Fri Jun 1 18:18:51 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=29f14f13
7
8 app-editors/emacs: Remove release candidate.
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_rc1.ebuild | 380 --------------------------------
14 2 files changed, 381 deletions(-)
15
16 diff --git a/app-editors/emacs/Manifest b/app-editors/emacs/Manifest
17 index 29cbef010bb..f15ec949952 100644
18 --- a/app-editors/emacs/Manifest
19 +++ b/app-editors/emacs/Manifest
20 @@ -7,5 +7,4 @@ DIST emacs-24.5-patches-4.tar.xz 13632 BLAKE2B 99e70f4ee32c1ba3a66b934de692437aa
21 DIST emacs-24.5.tar.xz 39759804 BLAKE2B aec253528038686822d1f8ed9a52dff276789ef7744053fc9b6176fceba4d4d8684fe979cf97e756b3feaf734d2377baef81f5efaa5450930a4e94d9f3bca355 SHA512 89dee4c3aadb6e505c523f84c65b5e40e5bf28a586cc8a4518a59581c22972f942bb6f3c772df0d5b2685c3e78247c545c6bb2576e981d1ef0f9298c18ad1677
22 DIST emacs-25.3-patches-1.tar.xz 1252 BLAKE2B 33c3c8e32b85f548201d4988d3aaf94e6440ab4727fced17aa26f00fd5665b755d3add254a764f579736bbfbc90716ff800e3ad5b8e7bd5d5c2370d31451e4b1 SHA512 09371a789a7c742b4e18f45a4c4e063a5392d0684899eb8be8c7415af9fe3c306083c62f18abc6a15c4fe76dd6ae3ac5c9b002c962971e59379cc187926a0c15
23 DIST emacs-25.3.tar.xz 42854740 BLAKE2B 4f4e2572bbef48b75c561497fc22046081e56099b6174725d79b15a5b16d5c886eaf8ff3f75cf561e989ebb092ab9e98ba7503e720a9db7560758b30d5116f23 SHA512 1cce656451b6ca8502ebb229e88bd3ef48b7f9444a10eeac4ea43bd5491b2efacd641dfa35227a33362c3866493d3449cf1df81606563eef44bba0ed668e457f
24 -DIST emacs-26.1-rc1.tar.xz 44010228 BLAKE2B c7d8d19a8488a88f3eea4dbf4c545de75956b6a82735826d15b603568577fde8019d7655e936ab60bc61e397f3db074e26d5a1d58534714fcaef585fa63a7719 SHA512 bf5a9fac61f024406b050037505c14c83db95f24760c2e32aa8f7e53cc8c2781883af0c3ffe820b039a9444a10e7fdcae7635b7e3c383718de22d77e7ceabe83
25 DIST emacs-26.1.tar.xz 44258932 BLAKE2B 5b5ea6a506228507af18417c3f94c2d6ea482c25d13ec5e0bee9ec6a65e80c52c870162b4671e80a82f8310784c802924609f2f87d504b1a97617c44d859566f SHA512 537c2cfdd281151b360002419dde6280c313e07a937ed96405c67f754b3401ec5541091a3c0aa6690929bc33dd79e8e0d8844e7a6b014b7798c63cb15de210c2
26
27 diff --git a/app-editors/emacs/emacs-26.1_rc1.ebuild b/app-editors/emacs/emacs-26.1_rc1.ebuild
28 deleted file mode 100644
29 index b0a58245197..00000000000
30 --- a/app-editors/emacs/emacs-26.1_rc1.ebuild
31 +++ /dev/null
32 @@ -1,380 +0,0 @@
33 -# Copyright 1999-2018 Gentoo Foundation
34 -# Distributed under the terms of the GNU General Public License v2
35 -
36 -EAPI=6
37 -
38 -inherit elisp-common flag-o-matic multilib readme.gentoo-r1
39 -
40 -DESCRIPTION="The extensible, customizable, self-documenting real-time display editor"
41 -HOMEPAGE="https://www.gnu.org/software/emacs/"
42 -SRC_URI="mirror://gnu-alpha/emacs/pretest/emacs-${PV/_/-}.tar.xz"
43 -
44 -LICENSE="GPL-3+ FDL-1.3+ BSD HPND MIT W3C unicode PSF-2"
45 -SLOT="26"
46 -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"
47 -IUSE="acl alsa aqua athena cairo dbus dynamic-loading games gconf gfile gif gpm gsettings gtk +gtk3 gzip-el imagemagick +inotify jpeg kerberos 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"
48 -REQUIRED_USE="?? ( aqua X )"
49 -
50 -RDEPEND="sys-libs/ncurses:0=
51 - >=app-eselect/eselect-emacs-1.16
52 - >=app-emacs/emacs-common-gentoo-1.5[games?,X?]
53 - acl? ( virtual/acl )
54 - alsa? ( media-libs/alsa-lib )
55 - dbus? ( sys-apps/dbus )
56 - gpm? ( sys-libs/gpm )
57 - !inotify? ( gfile? ( >=dev-libs/glib-2.28.6 ) )
58 - kerberos? ( virtual/krb5 )
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 libxml2 xml2) \
269 - $(use_with mailutils) \
270 - $(use_with selinux) \
271 - $(use_with ssl gnutls) \
272 - $(use_with systemd libsystemd) \
273 - $(use_with threads) \
274 - $(use_with wide-int) \
275 - $(use_with zlib) \
276 - ${myconf}
277 -}
278 -
279 -src_compile() {
280 - # Disable sandbox when dumping. For the unbelievers, see bug #131505
281 - emake RUN_TEMACS="SANDBOX_ON=0 LD_PRELOAD= env ./temacs"
282 -}
283 -
284 -src_install () {
285 - emake DESTDIR="${D}" NO_BIN_LINK=t install
286 -
287 - mv "${ED}"/usr/bin/{emacs-${FULL_VERSION}-,}${EMACS_SUFFIX} \
288 - || die "moving emacs executable failed"
289 - mv "${ED}"/usr/share/man/man1/{emacs-,}${EMACS_SUFFIX}.1 \
290 - || die "moving emacs man page failed"
291 -
292 - # move info dir to avoid collisions with the dir file generated by portage
293 - mv "${ED}"/usr/share/info/${EMACS_SUFFIX}/dir{,.orig} \
294 - || die "moving info dir failed"
295 - touch "${ED}"/usr/share/info/${EMACS_SUFFIX}/.keepinfodir
296 - docompress -x /usr/share/info/${EMACS_SUFFIX}/dir.orig
297 -
298 - # avoid collision between slots, see bug #169033 e.g.
299 - rm "${ED}"/usr/share/emacs/site-lisp/subdirs.el
300 - rm -rf "${ED}"/usr/share/{appdata,applications,icons}
301 - rm -rf "${ED}/usr/$(get_libdir)"
302 - rm -rf "${ED}"/var
303 -
304 - # remove unused <version>/site-lisp dir
305 - rm -rf "${ED}"/usr/share/emacs/${FULL_VERSION}/site-lisp
306 -
307 - # remove COPYING file (except for etc/COPYING used by describe-copying)
308 - rm "${ED}"/usr/share/emacs/${FULL_VERSION}/lisp/COPYING
309 -
310 - if use gzip-el; then
311 - # compress .el files when a corresponding .elc exists
312 - find "${ED}"/usr/share/emacs/${FULL_VERSION}/lisp -type f \
313 - -name "*.elc" -print | sed 's/\.elc$/.el/' | xargs gzip -9n
314 - assert "gzip .el failed"
315 - fi
316 -
317 - local cdir
318 - if use source; then
319 - cdir="/usr/share/emacs/${FULL_VERSION}/src"
320 - insinto "${cdir}"
321 - # This is not meant to install all the source -- just the
322 - # C source you might find via find-function
323 - doins src/*.{c,h,m}
324 - elif has installsources ${FEATURES}; then
325 - cdir="/usr/src/debug/${CATEGORY}/${PF}/${S#"${WORKDIR}/"}/src"
326 - fi
327 -
328 - sed -e "${cdir:+#}/^Y/d" -e "s/^[XY]//" >"${T}/${SITEFILE}" <<-EOF || die
329 - X
330 - ;;; ${PN}-${SLOT} site-lisp configuration
331 - X
332 - (when (string-match "\\\\\`${FULL_VERSION//./\\\\.}\\\\>" emacs-version)
333 - Y (setq find-function-C-source-directory
334 - Y "${EPREFIX}${cdir}")
335 - X (let ((path (getenv "INFOPATH"))
336 - X (dir "${EPREFIX}/usr/share/info/${EMACS_SUFFIX}")
337 - X (re "\\\\\`${EPREFIX}/usr/share/info\\\\>"))
338 - X (and path
339 - X ;; move Emacs Info dir before anything else in /usr/share/info
340 - X (let* ((p (cons nil (split-string path ":" t))) (q p))
341 - X (while (and (cdr q) (not (string-match re (cadr q))))
342 - X (setq q (cdr q)))
343 - X (setcdr q (cons dir (delete dir (cdr q))))
344 - X (setq Info-directory-list (prune-directory-list (cdr p)))))))
345 - EOF
346 - elisp-site-file-install "${T}/${SITEFILE}" || die
347 -
348 - dodoc README BUGS CONTRIBUTE
349 -
350 - if use aqua; then
351 - dodir /Applications/Gentoo
352 - rm -rf "${ED}"/Applications/Gentoo/Emacs${EMACS_SUFFIX#emacs}.app
353 - mv nextstep/Emacs.app \
354 - "${ED}"/Applications/Gentoo/Emacs${EMACS_SUFFIX#emacs}.app || die
355 - fi
356 -
357 - DOC_CONTENTS="You can set the version to be started by /usr/bin/emacs
358 - through the Emacs eselect module, which also redirects man and info
359 - pages. Therefore, several Emacs versions can be installed at the
360 - same time. \"man emacs.eselect\" for details.
361 - \\n\\nIf you upgrade from Emacs version 24.2 or earlier, then it is
362 - strongly recommended that you use app-admin/emacs-updater to rebuild
363 - all byte-compiled elisp files of the installed Emacs packages."
364 - use X && DOC_CONTENTS+="\\n\\nYou need to install some fonts for Emacs.
365 - Installing media-fonts/font-adobe-{75,100}dpi on the X server's
366 - machine would satisfy basic Emacs requirements under X11.
367 - See also https://wiki.gentoo.org/wiki/Xft_support_for_GNU_Emacs
368 - for how to enable anti-aliased fonts."
369 - use aqua && DOC_CONTENTS+="\\n\\nEmacs${EMACS_SUFFIX#emacs}.app is in
370 - \"${EPREFIX}/Applications/Gentoo\". You may want to copy or symlink
371 - it into /Applications by yourself."
372 - readme.gentoo_create_doc
373 -}
374 -
375 -pkg_preinst() {
376 - # move Info dir file to correct name
377 - local infodir=/usr/share/info/${EMACS_SUFFIX} f
378 - if [[ -f ${ED}${infodir}/dir.orig ]]; then
379 - mv "${ED}"${infodir}/dir{.orig,} || die "moving info dir failed"
380 - elif [[ -d "${ED}"${infodir} ]]; then
381 - # this should not happen in EAPI 4
382 - ewarn "Regenerating Info directory index in ${infodir} ..."
383 - rm -f "${ED}"${infodir}/dir{,.*}
384 - for f in "${ED}"${infodir}/*; do
385 - if [[ ${f##*/} != *-[0-9]* && -e ${f} ]]; then
386 - install-info --info-dir="${ED}"${infodir} "${f}" \
387 - || die "install-info failed"
388 - fi
389 - done
390 - fi
391 -}
392 -
393 -pkg_postinst() {
394 - elisp-site-regen
395 - readme.gentoo_print_elog
396 -
397 - if use livecd; then
398 - # force an update of the emacs symlink for the livecd/dvd,
399 - # because some microemacs packages set it with USE=livecd
400 - eselect emacs update
401 - elif [[ $(readlink "${EROOT}"/usr/bin/emacs) = ${EMACS_SUFFIX} ]]; then
402 - # refresh symlinks in case any installed files have changed
403 - eselect emacs set ${EMACS_SUFFIX}
404 - else
405 - eselect emacs update ifunset
406 - fi
407 -}
408 -
409 -pkg_postrm() {
410 - elisp-site-regen
411 - eselect emacs update ifunset
412 -}