Gentoo Archives: gentoo-commits

From: "Ulrich Müller" <ulm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/emacs:master commit in: app-editors/emacs-vcs/
Date: Sun, 15 Oct 2017 11:28:45
Message-Id: 1508065530.7796705f4d2bb2b06495c4c8fa36865a1b33d9d4.ulm@gentoo
1 commit: 7796705f4d2bb2b06495c4c8fa36865a1b33d9d4
2 Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
3 AuthorDate: Sun Oct 15 11:05:30 2017 +0000
4 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 15 11:05:30 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/emacs.git/commit/?id=7796705f
7
8 app-editors/emacs-vcs: Remove from emacs overlay.
9
10 .../emacs-vcs/emacs-vcs-25.1.9999-r1.ebuild | 427 ---------------------
11 app-editors/emacs-vcs/metadata.xml | 51 ---
12 2 files changed, 478 deletions(-)
13
14 diff --git a/app-editors/emacs-vcs/emacs-vcs-25.1.9999-r1.ebuild b/app-editors/emacs-vcs/emacs-vcs-25.1.9999-r1.ebuild
15 deleted file mode 100644
16 index fc9bfce..0000000
17 --- a/app-editors/emacs-vcs/emacs-vcs-25.1.9999-r1.ebuild
18 +++ /dev/null
19 @@ -1,427 +0,0 @@
20 -# Copyright 1999-2016 Gentoo Foundation
21 -# Distributed under the terms of the GNU General Public License v2
22 -
23 -EAPI=6
24 -
25 -inherit autotools elisp-common flag-o-matic multilib readme.gentoo-r1
26 -
27 -if [[ ${PV##*.} = 9999 ]]; then
28 - inherit git-r3
29 - EGIT_REPO_URI="git://git.sv.gnu.org/emacs.git"
30 - EGIT_BRANCH="master"
31 - EGIT_CHECKOUT_DIR="${WORKDIR}/emacs"
32 - S="${EGIT_CHECKOUT_DIR}"
33 -else
34 - SRC_URI="https://dev.gentoo.org/~ulm/distfiles/emacs-${PV}.tar.xz
35 - mirror://gnu-alpha/emacs/pretest/emacs-${PV}.tar.xz"
36 - # FULL_VERSION keeps the full version number, which is needed in
37 - # order to determine some path information correctly for copy/move
38 - # operations later on
39 - FULL_VERSION="${PV%%_*}"
40 - S="${WORKDIR}/emacs-${FULL_VERSION}"
41 - [[ ${FULL_VERSION} != ${PV} ]] && S="${WORKDIR}/emacs"
42 -fi
43 -
44 -DESCRIPTION="The extensible, customizable, self-documenting real-time display editor"
45 -HOMEPAGE="https://www.gnu.org/software/emacs/"
46 -
47 -LICENSE="GPL-3+ FDL-1.3+ BSD HPND MIT W3C unicode PSF-2"
48 -SLOT="25"
49 -IUSE="acl alsa aqua athena cairo dbus 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 )
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 )
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? (
113 - sys-apps/attr
114 - sys-apps/paxctl
115 - )"
116 -
117 -if [[ ${PV##*.} = 9999 ]]; then
118 - DEPEND="${DEPEND}
119 - sys-apps/texinfo"
120 -fi
121 -
122 -EMACS_SUFFIX="${PN/emacs/emacs-${SLOT}}"
123 -SITEFILE="20${PN}-${SLOT}-gentoo.el"
124 -
125 -pkg_pretend() {
126 - local f
127 -
128 - if use alsa && ! use sound; then
129 - ewarn "USE flag \"alsa\" overrides \"-sound\"; enabling sound support."
130 - fi
131 -
132 - if use X; then
133 - if ! use xft; then
134 - for f in cairo m17n-lib; do
135 - use ${f} && ewarn \
136 - "USE flag \"${f}\" has no effect if \"xft\" is not set."
137 - done
138 - fi
139 -
140 - if use gtk; then
141 - while read line; do ewarn "${line}"; done <<-EOF
142 - Your version of GTK+ will have problems with closing open
143 - displays. This is no problem if you just use one display, but
144 - if you use more than one and close one of them Emacs may crash.
145 - See <https://bugzilla.gnome.org/show_bug.cgi?id=85715>.
146 - If you intend to use more than one display, then it is strongly
147 - recommended that you compile Emacs with the Athena/Lucid or the
148 - Motif toolkit instead.
149 - EOF
150 - for f in motif Xaw3d athena; do
151 - use ${f} && ewarn \
152 - "USE flag \"${f}\" has no effect if \"gtk\" is set."
153 - done
154 - elif use motif; then
155 - for f in Xaw3d athena; do
156 - use ${f} && ewarn \
157 - "USE flag \"${f}\" has no effect if \"motif\" is set."
158 - done
159 - fi
160 -
161 - if ! use gtk && use xwidgets; then
162 - ewarn "USE flag \"xwidgets\" has no effect if \"gtk\" is not set."
163 - fi
164 - fi
165 -}
166 -
167 -src_prepare() {
168 - if [[ ${PV##*.} = 9999 ]]; then
169 - FULL_VERSION=$(sed -n 's/^AC_INIT([^,]*,[ \t]*\([^ \t,)]*\).*/\1/p' \
170 - configure.ac)
171 - [[ ${FULL_VERSION} ]] || die "Cannot determine current Emacs version"
172 - einfo "Emacs branch: ${EGIT_BRANCH}"
173 - einfo "Commit: ${EGIT_VERSION}"
174 - einfo "Emacs version number: ${FULL_VERSION}"
175 - [[ ${FULL_VERSION} =~ ^${PV%.*}(\..*)?$ ]] \
176 - || die "Upstream version number changed to ${FULL_VERSION}"
177 - fi
178 -
179 - eapply_user
180 -
181 - # Fix filename reference in redirected man page
182 - sed -i -e "/^\\.so/s/etags/&-${EMACS_SUFFIX}/" doc/man/ctags.1 \
183 - || die "unable to sed ctags.1"
184 -
185 - AT_M4DIR=m4 eautoreconf
186 -}
187 -
188 -src_configure() {
189 - strip-flags
190 - filter-flags -pie #526948
191 -
192 - if use sh; then
193 - replace-flags "-O[1-9]" -O0 #262359
194 - elif use ia64; then
195 - replace-flags "-O[2-9]" -O1 #325373
196 - else
197 - replace-flags "-O[3-9]" -O2
198 - fi
199 -
200 - local myconf
201 -
202 - if use alsa; then
203 - use sound || ewarn \
204 - "USE flag \"alsa\" overrides \"-sound\"; enabling sound support."
205 - myconf+=" --with-sound=alsa"
206 - else
207 - myconf+=" --with-sound=$(usex sound oss)"
208 - fi
209 -
210 - if use X; then
211 - myconf+=" --with-x --without-ns"
212 - myconf+=" $(use_with gconf)"
213 - myconf+=" $(use_with gsettings)"
214 - myconf+=" $(use_with toolkit-scroll-bars)"
215 - myconf+=" $(use_with gif)"
216 - myconf+=" $(use_with jpeg)"
217 - myconf+=" $(use_with png)"
218 - myconf+=" $(use_with svg rsvg)"
219 - myconf+=" $(use_with tiff)"
220 - myconf+=" $(use_with xpm)"
221 - myconf+=" $(use_with imagemagick)"
222 -
223 - if use xft; then
224 - myconf+=" --with-xft"
225 - myconf+=" $(use_with cairo)"
226 - myconf+=" $(use_with m17n-lib libotf)"
227 - myconf+=" $(use_with m17n-lib m17n-flt)"
228 - else
229 - myconf+=" --without-xft"
230 - myconf+=" --without-cairo"
231 - myconf+=" --without-libotf --without-m17n-flt"
232 - use cairo && ewarn \
233 - "USE flag \"cairo\" has no effect if \"xft\" is not set."
234 - use m17n-lib && ewarn \
235 - "USE flag \"m17n-lib\" has no effect if \"xft\" is not set."
236 - fi
237 -
238 - local f
239 - if use gtk; then
240 - einfo "Configuring to build with GIMP Toolkit (GTK+)"
241 - while read line; do ewarn "${line}"; done <<-EOF
242 - Your version of GTK+ will have problems with closing open
243 - displays. This is no problem if you just use one display, but
244 - if you use more than one and close one of them Emacs may crash.
245 - See <https://bugzilla.gnome.org/show_bug.cgi?id=85715>.
246 - If you intend to use more than one display, then it is strongly
247 - recommended that you compile Emacs with the Athena/Lucid or the
248 - Motif toolkit instead.
249 - EOF
250 - if use xwidgets; then
251 - myconf+=" --with-x-toolkit=gtk3 --with-xwidgets"
252 - else
253 - myconf+=" --with-x-toolkit=$(usex gtk3 gtk3 gtk2)"
254 - myconf+=" --without-xwidgets"
255 - fi
256 - for f in motif Xaw3d athena; do
257 - use ${f} && ewarn \
258 - "USE flag \"${f}\" has no effect if \"gtk\" is set."
259 - done
260 - elif use motif; then
261 - einfo "Configuring to build with Motif toolkit"
262 - myconf+=" --with-x-toolkit=motif"
263 - for f in Xaw3d athena; do
264 - use ${f} && ewarn \
265 - "USE flag \"${f}\" has no effect if \"motif\" is set."
266 - done
267 - elif use athena || use Xaw3d; then
268 - einfo "Configuring to build with Athena/Lucid toolkit"
269 - myconf+=" --with-x-toolkit=lucid $(use_with Xaw3d xaw3d)"
270 - else
271 - einfo "Configuring to build with no toolkit"
272 - myconf+=" --with-x-toolkit=no"
273 - fi
274 - ! use gtk && use xwidgets && ewarn \
275 - "USE flag \"xwidgets\" has no effect if \"gtk\" is not set."
276 - elif use aqua; then
277 - einfo "Configuring to build with Nextstep (Cocoa) support"
278 - myconf+=" --with-ns --disable-ns-self-contained"
279 - myconf+=" --without-x"
280 - else
281 - myconf+=" --without-x --without-ns"
282 - fi
283 -
284 - # Save version information in the Emacs binary. It will be available
285 - # in variable "system-configuration-options".
286 - myconf+=" GENTOO_PACKAGE=${CATEGORY}/${PF}"
287 -
288 - econf \
289 - --program-suffix="-${EMACS_SUFFIX}" \
290 - --infodir="${EPREFIX}"/usr/share/info/${EMACS_SUFFIX} \
291 - --localstatedir="${EPREFIX}"/var \
292 - --enable-locallisppath="${EPREFIX}/etc/emacs:${EPREFIX}${SITELISP}" \
293 - --with-gameuser=":gamestat" \
294 - --without-compress-install \
295 - --with-file-notification=$(usev inotify || usev gfile || echo no) \
296 - $(use_enable acl) \
297 - $(use_with dbus) \
298 - $(use_with gpm) \
299 - $(use_with hesiod) \
300 - $(use_with kerberos) $(use_with kerberos kerberos5) \
301 - $(use_with libxml2 xml2) \
302 - $(use_with selinux) \
303 - $(use_with ssl gnutls) \
304 - $(use_with wide-int) \
305 - $(use_with zlib) \
306 - ${myconf}
307 -}
308 -
309 -src_compile() {
310 - export SANDBOX_ON=0 # for the unbelievers, see Bug #131505
311 - emake
312 -}
313 -
314 -src_install () {
315 - emake DESTDIR="${D}" NO_BIN_LINK=t install
316 -
317 - mv "${ED}"/usr/bin/{emacs-${FULL_VERSION}-,}${EMACS_SUFFIX} \
318 - || die "moving emacs executable failed"
319 - mv "${ED}"/usr/share/man/man1/{emacs-,}${EMACS_SUFFIX}.1 \
320 - || die "moving emacs man page failed"
321 -
322 - # move info dir to avoid collisions with the dir file generated by portage
323 - mv "${ED}"/usr/share/info/${EMACS_SUFFIX}/dir{,.orig} \
324 - || die "moving info dir failed"
325 - touch "${ED}"/usr/share/info/${EMACS_SUFFIX}/.keepinfodir
326 - docompress -x /usr/share/info/${EMACS_SUFFIX}/dir.orig
327 -
328 - # avoid collision between slots, see bug #169033 e.g.
329 - rm "${ED}"/usr/share/emacs/site-lisp/subdirs.el
330 - rm -rf "${ED}"/usr/share/{appdata,applications,icons}
331 - rm -rf "${ED}"/var
332 -
333 - # remove unused <version>/site-lisp dir
334 - rm -rf "${ED}"/usr/share/emacs/${FULL_VERSION}/site-lisp
335 -
336 - # remove COPYING file (except for etc/COPYING used by describe-copying)
337 - rm "${ED}"/usr/share/emacs/${FULL_VERSION}/lisp/COPYING
338 -
339 - if use gzip-el; then
340 - # compress .el files when a corresponding .elc exists
341 - find "${ED}"/usr/share/emacs/${FULL_VERSION}/lisp -type f \
342 - -name "*.elc" -print | sed 's/\.elc$/.el/' | xargs gzip -9n
343 - assert "gzip .el failed"
344 - fi
345 -
346 - local cdir
347 - if use source; then
348 - cdir="/usr/share/emacs/${FULL_VERSION}/src"
349 - insinto "${cdir}"
350 - # This is not meant to install all the source -- just the
351 - # C source you might find via find-function
352 - doins src/*.{c,h,m}
353 - elif has installsources ${FEATURES}; then
354 - cdir="/usr/src/debug/${CATEGORY}/${PF}/${S#"${WORKDIR}/"}/src"
355 - fi
356 -
357 - sed -e "${cdir:+#}/^Y/d" -e "s/^[XY]//" >"${T}/${SITEFILE}" <<-EOF
358 - X
359 - ;;; ${PN}-${SLOT} site-lisp configuration
360 - X
361 - (when (string-match "\\\\\`${FULL_VERSION//./\\\\.}\\\\>" emacs-version)
362 - Y (setq find-function-C-source-directory
363 - Y "${EPREFIX}${cdir}")
364 - X (let ((path (getenv "INFOPATH"))
365 - X (dir "${EPREFIX}/usr/share/info/${EMACS_SUFFIX}")
366 - X (re "\\\\\`${EPREFIX}/usr/share/info\\\\>"))
367 - X (and path
368 - X ;; move Emacs Info dir before anything else in /usr/share/info
369 - X (let* ((p (cons nil (split-string path ":" t))) (q p))
370 - X (while (and (cdr q) (not (string-match re (cadr q))))
371 - X (setq q (cdr q)))
372 - X (setcdr q (cons dir (delete dir (cdr q))))
373 - X (setq Info-directory-list (prune-directory-list (cdr p)))))))
374 - EOF
375 - elisp-site-file-install "${T}/${SITEFILE}" || die
376 -
377 - dodoc README BUGS CONTRIBUTE
378 -
379 - if use aqua; then
380 - dodir /Applications/Gentoo
381 - rm -rf "${ED}"/Applications/Gentoo/Emacs${EMACS_SUFFIX#emacs}.app
382 - mv nextstep/Emacs.app \
383 - "${ED}"/Applications/Gentoo/Emacs${EMACS_SUFFIX#emacs}.app || die
384 - fi
385 -
386 - DOC_CONTENTS="You can set the version to be started by /usr/bin/emacs
387 - through the Emacs eselect module, which also redirects man and info
388 - pages. Therefore, several Emacs versions can be installed at the
389 - same time. \"man emacs.eselect\" for details.
390 - \\n\\nIf you upgrade from Emacs version 24.2 or earlier, then it is
391 - strongly recommended that you use app-admin/emacs-updater to rebuild
392 - all byte-compiled elisp files of the installed Emacs packages."
393 - use X && DOC_CONTENTS+="\\n\\nYou need to install some fonts for Emacs.
394 - Installing media-fonts/font-adobe-{75,100}dpi on the X server's
395 - machine would satisfy basic Emacs requirements under X11.
396 - See also https://wiki.gentoo.org/wiki/Xft_support_for_GNU_Emacs
397 - for how to enable anti-aliased fonts."
398 - use aqua && DOC_CONTENTS+="\\n\\nEmacs${EMACS_SUFFIX#emacs}.app is in
399 - \"${EPREFIX}/Applications/Gentoo\". You may want to copy or symlink
400 - it into /Applications by yourself."
401 - readme.gentoo_create_doc
402 -}
403 -
404 -pkg_preinst() {
405 - # move Info dir file to correct name
406 - local infodir=/usr/share/info/${EMACS_SUFFIX} f
407 - if [[ -f ${ED}${infodir}/dir.orig ]]; then
408 - mv "${ED}"${infodir}/dir{.orig,} || die "moving info dir failed"
409 - elif [[ -d "${ED}"${infodir} ]]; then
410 - # this should not happen in EAPI 4
411 - ewarn "Regenerating Info directory index in ${infodir} ..."
412 - rm -f "${ED}"${infodir}/dir{,.*}
413 - for f in "${ED}"${infodir}/*; do
414 - if [[ ${f##*/} != *-[0-9]* && -e ${f} ]]; then
415 - install-info --info-dir="${ED}"${infodir} "${f}" \
416 - || die "install-info failed"
417 - fi
418 - done
419 - fi
420 -}
421 -
422 -pkg_postinst() {
423 - elisp-site-regen
424 -
425 - local pvr
426 - for pvr in ${REPLACING_VERSIONS}; do
427 - [[ ${pvr%%[-_]*} = 24.[12] ]] && FORCE_PRINT_ELOG=1
428 - done
429 - readme.gentoo_print_elog
430 -
431 - if use livecd; then
432 - # force an update of the emacs symlink for the livecd/dvd,
433 - # because some microemacs packages set it with USE=livecd
434 - eselect emacs update
435 - elif [[ $(readlink "${EROOT}"/usr/bin/emacs) = ${EMACS_SUFFIX} ]]; then
436 - # refresh symlinks in case any installed files have changed
437 - eselect emacs set ${EMACS_SUFFIX}
438 - else
439 - eselect emacs update ifunset
440 - fi
441 -}
442 -
443 -pkg_postrm() {
444 - elisp-site-regen
445 - eselect emacs update ifunset
446 -}
447
448 diff --git a/app-editors/emacs-vcs/metadata.xml b/app-editors/emacs-vcs/metadata.xml
449 deleted file mode 100644
450 index a22860c..0000000
451 --- a/app-editors/emacs-vcs/metadata.xml
452 +++ /dev/null
453 @@ -1,51 +0,0 @@
454 -<?xml version="1.0" encoding="UTF-8"?>
455 -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
456 -<pkgmetadata>
457 -<maintainer type="project">
458 - <email>gnu-emacs@g.o</email>
459 - <name>Gentoo GNU Emacs project</name>
460 -</maintainer>
461 -<longdescription>
462 - GNU Emacs is an extensible, customizable text editor - and more. At its core
463 - is an interpreter for Emacs Lisp, a dialect of the Lisp programming language
464 - with extensions to support text editing. The features of GNU Emacs include:
465 - * Content-sensitive editing modes, including syntax coloring, for a variety
466 - of file types including plain text, source code, and HTML.
467 - * Complete built-in documentation, including a tutorial for new users.
468 - * Full Unicode support for nearly all human languages and their scripts.
469 - * Highly customizable, using Emacs Lisp code or a graphical interface.
470 - * A large number of extensions that add other functionality, including a
471 - project planner, mail and news reader, debugger interface, calendar, and
472 - more. Many of these extensions are distributed with GNU Emacs; others are
473 - available separately.
474 -</longdescription>
475 -<use>
476 - <flag name='athena'>Enable the MIT Athena widget set
477 - (<pkg>x11-libs/libXaw</pkg>)</flag>
478 - <flag name='games'>Support shared score files for games</flag>
479 - <flag name='gconf'>Use <pkg>gnome-base/gconf</pkg> to read the system
480 - font name</flag>
481 - <flag name='gfile'>Use gfile (<pkg>dev-libs/glib</pkg>) for file
482 - notification</flag>
483 - <flag name='gsettings'>Use gsettings (<pkg>dev-libs/glib</pkg>) to read the
484 - system font name</flag>
485 - <flag name='gtk3'>Prefer version 3 of the GIMP Toolkit to version 2
486 - (<pkg>x11-libs/gtk+</pkg>)</flag>
487 - <flag name='gzip-el'>Compress bundled Emacs Lisp source</flag>
488 - <flag name='hesiod'>Enable support for <pkg>net-dns/hesiod</pkg></flag>
489 - <flag name='imagemagick'>Use <pkg>media-gfx/imagemagick</pkg> for image
490 - processing</flag>
491 - <flag name='libxml2'>Use <pkg>dev-libs/libxml2</pkg> to parse XML instead
492 - of the internal Lisp implementations</flag>
493 - <flag name='pax_kernel'>Enable building under a PaX enabled kernel</flag>
494 - <flag name='source'>Install C source files and make them available for
495 - find-function</flag>
496 - <flag name='toolkit-scroll-bars'>Use the selected toolkit's scrollbars in
497 - preference to Emacs' own scrollbars</flag>
498 - <flag name='wide-int'>Prefer wide Emacs integers (typically 62-bit).
499 - This option has an effect only on architectures where "long" and
500 - "long long" types have different size.</flag>
501 - <flag name='xwidgets'>Enable use of GTK widgets in Emacs buffers
502 - (requires GTK3)</flag>
503 -</use>
504 -</pkgmetadata>