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