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