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