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