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