Gentoo Archives: gentoo-commits

From: "Ulrich Mueller (ulm)" <ulm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-editors/emacs-vcs: emacs-vcs-24.4.50_pre20140531.ebuild ChangeLog emacs-vcs-24.4.50_pre20140512.ebuild
Date: Sun, 01 Jun 2014 09:20:32
Message-Id: 20140601092029.96D542004E@flycatcher.gentoo.org
1 ulm 14/06/01 09:20:29
2
3 Modified: ChangeLog emacs-vcs-24.4.50_pre20140512.ebuild
4 Added: emacs-vcs-24.4.50_pre20140531.ebuild
5 Log:
6 New snapshot of trunk. No keywords, because the default should be that users get the pretest version.
7
8 (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 9433907D693FB5B8!)
9
10 Revision Changes Path
11 1.160 app-editors/emacs-vcs/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-editors/emacs-vcs/ChangeLog?rev=1.160&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-editors/emacs-vcs/ChangeLog?rev=1.160&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-editors/emacs-vcs/ChangeLog?r1=1.159&r2=1.160
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-editors/emacs-vcs/ChangeLog,v
20 retrieving revision 1.159
21 retrieving revision 1.160
22 diff -u -r1.159 -r1.160
23 --- ChangeLog 16 May 2014 20:10:42 -0000 1.159
24 +++ ChangeLog 1 Jun 2014 09:20:29 -0000 1.160
25 @@ -1,6 +1,13 @@
26 # ChangeLog for app-editors/emacs-vcs
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/app-editors/emacs-vcs/ChangeLog,v 1.159 2014/05/16 20:10:42 ulm Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/app-editors/emacs-vcs/ChangeLog,v 1.160 2014/06/01 09:20:29 ulm Exp $
30 +
31 +*emacs-vcs-24.4.50_pre20140531 (01 Jun 2014)
32 +
33 + 01 Jun 2014; Ulrich Müller <ulm@g.o>
34 + emacs-vcs-24.4.50_pre20140512.ebuild, +emacs-vcs-24.4.50_pre20140531.ebuild:
35 + New snapshot of trunk. No keywords, because the default should be that users
36 + get the pretest version.
37
38 16 May 2014; Ulrich Müller <ulm@g.o> emacs-vcs-24.3.91.ebuild,
39 emacs-vcs-24.3.9999-r1.ebuild, emacs-vcs-24.4.50_pre20140512.ebuild,
40
41
42
43 1.3 app-editors/emacs-vcs/emacs-vcs-24.4.50_pre20140512.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-editors/emacs-vcs/emacs-vcs-24.4.50_pre20140512.ebuild?rev=1.3&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-editors/emacs-vcs/emacs-vcs-24.4.50_pre20140512.ebuild?rev=1.3&content-type=text/plain
47 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-editors/emacs-vcs/emacs-vcs-24.4.50_pre20140512.ebuild?r1=1.2&r2=1.3
48
49 Index: emacs-vcs-24.4.50_pre20140512.ebuild
50 ===================================================================
51 RCS file: /var/cvsroot/gentoo-x86/app-editors/emacs-vcs/emacs-vcs-24.4.50_pre20140512.ebuild,v
52 retrieving revision 1.2
53 retrieving revision 1.3
54 diff -u -r1.2 -r1.3
55 --- emacs-vcs-24.4.50_pre20140512.ebuild 16 May 2014 20:10:42 -0000 1.2
56 +++ emacs-vcs-24.4.50_pre20140512.ebuild 1 Jun 2014 09:20:29 -0000 1.3
57 @@ -1,6 +1,6 @@
58 # Copyright 1999-2014 Gentoo Foundation
59 # Distributed under the terms of the GNU General Public License v2
60 -# $Header: /var/cvsroot/gentoo-x86/app-editors/emacs-vcs/emacs-vcs-24.4.50_pre20140512.ebuild,v 1.2 2014/05/16 20:10:42 ulm Exp $
61 +# $Header: /var/cvsroot/gentoo-x86/app-editors/emacs-vcs/emacs-vcs-24.4.50_pre20140512.ebuild,v 1.3 2014/06/01 09:20:29 ulm Exp $
62
63 EAPI=5
64
65 @@ -32,7 +32,6 @@
66
67 LICENSE="GPL-3+ FDL-1.3+ BSD HPND MIT W3C unicode PSF-2"
68 SLOT="24"
69 -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"
70 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"
71 REQUIRED_USE="?? ( aqua X )"
72
73
74
75
76 1.1 app-editors/emacs-vcs/emacs-vcs-24.4.50_pre20140531.ebuild
77
78 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-editors/emacs-vcs/emacs-vcs-24.4.50_pre20140531.ebuild?rev=1.1&view=markup
79 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-editors/emacs-vcs/emacs-vcs-24.4.50_pre20140531.ebuild?rev=1.1&content-type=text/plain
80
81 Index: emacs-vcs-24.4.50_pre20140531.ebuild
82 ===================================================================
83 # Copyright 1999-2014 Gentoo Foundation
84 # Distributed under the terms of the GNU General Public License v2
85 # $Header: /var/cvsroot/gentoo-x86/app-editors/emacs-vcs/emacs-vcs-24.4.50_pre20140531.ebuild,v 1.1 2014/06/01 09:20:29 ulm Exp $
86
87 EAPI=5
88
89 inherit autotools elisp-common eutils flag-o-matic multilib readme.gentoo
90
91 if [[ ${PV##*.} = 9999 ]]; then
92 EBZR_PROJECT="emacs"
93 EBZR_BRANCH="trunk"
94 EBZR_REPO_URI="bzr://bzr.savannah.gnu.org/emacs/${EBZR_BRANCH}/"
95 # "Nosmart" is much faster for initial branching.
96 EBZR_INITIAL_URI="nosmart+${EBZR_REPO_URI}"
97 EBZR_UNPACK_DIR="${WORKDIR}/emacs"
98 EBZR_WORKDIR_CHECKOUT="t" #434746
99 inherit bzr
100 S="${EBZR_UNPACK_DIR}"
101 else
102 SRC_URI="http://dev.gentoo.org/~ulm/distfiles/emacs-${PV}.tar.xz
103 mirror://gnu-alpha/emacs/pretest/emacs-${PV}.tar.xz"
104 # FULL_VERSION keeps the full version number, which is needed in
105 # order to determine some path information correctly for copy/move
106 # operations later on
107 FULL_VERSION="${PV%%_*}"
108 #S="${WORKDIR}/emacs-${FULL_VERSION}"
109 S="${WORKDIR}/emacs"
110 fi
111
112 DESCRIPTION="The extensible, customizable, self-documenting real-time display editor"
113 HOMEPAGE="http://www.gnu.org/software/emacs/"
114
115 LICENSE="GPL-3+ FDL-1.3+ BSD HPND MIT W3C unicode PSF-2"
116 SLOT="24"
117 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"
118 REQUIRED_USE="?? ( aqua X )"
119
120 RDEPEND="sys-libs/ncurses
121 >=app-admin/eselect-emacs-1.16
122 >=app-emacs/emacs-common-gentoo-1.4-r1[games?,X?]
123 net-libs/liblockfile
124 acl? ( virtual/acl )
125 alsa? ( media-libs/alsa-lib )
126 dbus? ( sys-apps/dbus )
127 gfile? ( >=dev-libs/glib-2.28.6 )
128 gnutls? ( net-libs/gnutls )
129 gpm? ( sys-libs/gpm )
130 hesiod? ( net-dns/hesiod )
131 kerberos? ( virtual/krb5 )
132 libxml2? ( >=dev-libs/libxml2-2.2.0 )
133 selinux? ( sys-libs/libselinux )
134 zlib? ( sys-libs/zlib )
135 X? (
136 x11-libs/libXmu
137 x11-libs/libXt
138 x11-misc/xbitmaps
139 gconf? ( >=gnome-base/gconf-2.26.2 )
140 gsettings? ( >=dev-libs/glib-2.28.6 )
141 gif? ( media-libs/giflib )
142 jpeg? ( virtual/jpeg:0= )
143 png? ( >=media-libs/libpng-1.4:0= )
144 svg? ( >=gnome-base/librsvg-2.0 )
145 tiff? ( media-libs/tiff )
146 xpm? ( x11-libs/libXpm )
147 imagemagick? ( >=media-gfx/imagemagick-6.6.2 )
148 xft? (
149 media-libs/fontconfig
150 media-libs/freetype
151 x11-libs/libXft
152 m17n-lib? (
153 >=dev-libs/libotf-0.9.4
154 >=dev-libs/m17n-lib-1.5.1
155 )
156 )
157 gtk? (
158 gtk3? ( x11-libs/gtk+:3 )
159 !gtk3? ( x11-libs/gtk+:2 )
160 )
161 !gtk? (
162 motif? ( >=x11-libs/motif-2.3:0 )
163 !motif? (
164 Xaw3d? ( x11-libs/libXaw3d )
165 !Xaw3d? ( athena? ( x11-libs/libXaw ) )
166 )
167 )
168 )"
169
170 DEPEND="${RDEPEND}
171 virtual/pkgconfig
172 gzip-el? ( app-arch/gzip )
173 pax_kernel? (
174 sys-apps/attr
175 sys-apps/paxctl
176 )"
177
178 if [[ ${PV##*.} = 9999 ]]; then
179 DEPEND="${DEPEND}
180 sys-apps/texinfo"
181 fi
182
183 EMACS_SUFFIX="${PN/emacs/emacs-${SLOT}}"
184 SITEFILE="20${PN}-${SLOT}-gentoo.el"
185
186 src_prepare() {
187 if [[ ${PV##*.} = 9999 ]]; then
188 FULL_VERSION=$(sed -n 's/^AC_INIT([^,]*,[ \t]*\([^ \t,)]*\).*/\1/p' \
189 configure.ac)
190 [[ ${FULL_VERSION} ]] || die "Cannot determine current Emacs version"
191 einfo "Emacs branch: ${EBZR_BRANCH}"
192 einfo "Revision: ${EBZR_REVISION:-${EBZR_REVNO}}"
193 einfo "Emacs version number: ${FULL_VERSION}"
194 [[ ${FULL_VERSION} =~ ^${PV%.*}(\..*)?$ ]] \
195 || die "Upstream version number changed to ${FULL_VERSION}"
196 fi
197
198 epatch_user
199
200 # Fix filename reference in redirected man page
201 sed -i -e "/^\\.so/s/etags/&-${EMACS_SUFFIX}/" doc/man/ctags.1 \
202 || die "unable to sed ctags.1"
203
204 AT_M4DIR=m4 eautoreconf
205 }
206
207 src_configure() {
208 strip-flags
209
210 if use sh; then
211 replace-flags "-O[1-9]" -O0 #262359
212 elif use ia64; then
213 replace-flags "-O[2-9]" -O1 #325373
214 else
215 replace-flags "-O[3-9]" -O2
216 fi
217
218 local myconf
219
220 if use alsa; then
221 use sound || ewarn \
222 "USE flag \"alsa\" overrides \"-sound\"; enabling sound support."
223 myconf+=" --with-sound=alsa"
224 else
225 myconf+=" --with-sound=$(usex sound oss)"
226 fi
227
228 if use X; then
229 myconf+=" --with-x --without-ns"
230 myconf+=" $(use_with gconf)"
231 myconf+=" $(use_with gsettings)"
232 myconf+=" $(use_with toolkit-scroll-bars)"
233 myconf+=" $(use_with gif)"
234 myconf+=" $(use_with jpeg)"
235 myconf+=" $(use_with png)"
236 myconf+=" $(use_with svg rsvg)"
237 myconf+=" $(use_with tiff)"
238 myconf+=" $(use_with xpm)"
239 myconf+=" $(use_with imagemagick)"
240
241 if use xft; then
242 myconf+=" --with-xft"
243 myconf+=" $(use_with m17n-lib libotf)"
244 myconf+=" $(use_with m17n-lib m17n-flt)"
245 else
246 myconf+=" --without-xft"
247 myconf+=" --without-libotf --without-m17n-flt"
248 use m17n-lib && ewarn \
249 "USE flag \"m17n-lib\" has no effect if \"xft\" is not set."
250 fi
251
252 local f
253 if use gtk; then
254 einfo "Configuring to build with GIMP Toolkit (GTK+)"
255 myconf+=" --with-x-toolkit=$(usex gtk3 gtk3 gtk2)"
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 elif use aqua; then
275 einfo "Configuring to build with Nextstep (Cocoa) support"
276 myconf+=" --with-ns --disable-ns-self-contained"
277 myconf+=" --without-x"
278 else
279 myconf+=" --without-x --without-ns"
280 fi
281
282 # Save version information in the Emacs binary. It will be available
283 # in variable "system-configuration-options".
284 myconf+=" GENTOO_PACKAGE=${CATEGORY}/${PF}"
285 if [[ ${PV##*.} = 9999 ]]; then
286 myconf+=" EBZR_BRANCH=${EBZR_BRANCH} EBZR_REVNO=${EBZR_REVNO}"
287 fi
288
289 econf \
290 --program-suffix="-${EMACS_SUFFIX}" \
291 --infodir="${EPREFIX}"/usr/share/info/${EMACS_SUFFIX} \
292 --localstatedir="${EPREFIX}"/var \
293 --enable-locallisppath="${EPREFIX}/etc/emacs:${EPREFIX}${SITELISP}" \
294 --with-gameuser="${GAMES_USER_DED:-games}" \
295 --without-compress-install \
296 --with-file-notification=$(usev gfile || usev inotify || echo no) \
297 $(use_enable acl) \
298 $(use_with dbus) \
299 $(use_with gnutls) \
300 $(use_with gpm) \
301 $(use_with hesiod) \
302 $(use_with kerberos) $(use_with kerberos kerberos5) \
303 $(use_with libxml2 xml2) \
304 $(use_with selinux) \
305 $(use_with wide-int) \
306 $(use_with zlib) \
307 ${myconf}
308 }
309
310 src_compile() {
311 export SANDBOX_ON=0 # for the unbelievers, see Bug #131505
312 emake
313 }
314
315 src_install () {
316 emake DESTDIR="${D}" NO_BIN_LINK=t install
317
318 mv "${ED}"/usr/bin/{emacs-${FULL_VERSION}-,}${EMACS_SUFFIX} \
319 || die "moving emacs executable failed"
320 mv "${ED}"/usr/share/man/man1/{emacs-,}${EMACS_SUFFIX}.1 \
321 || die "moving emacs man page failed"
322
323 # move info dir to avoid collisions with the dir file generated by portage
324 mv "${ED}"/usr/share/info/${EMACS_SUFFIX}/dir{,.orig} \
325 || die "moving info dir failed"
326 touch "${ED}"/usr/share/info/${EMACS_SUFFIX}/.keepinfodir
327 docompress -x /usr/share/info/${EMACS_SUFFIX}/dir.orig
328
329 # avoid collision between slots, see bug #169033 e.g.
330 rm "${ED}"/usr/share/emacs/site-lisp/subdirs.el
331 rm -rf "${ED}"/usr/share/{applications,icons}
332 rm -rf "${ED}"/var
333
334 # remove unused <version>/site-lisp dir
335 rm -rf "${ED}"/usr/share/emacs/${FULL_VERSION}/site-lisp
336
337 if use gzip-el; then
338 # compress .el files when a corresponding .elc exists
339 find "${ED}"/usr/share/emacs/${FULL_VERSION}/lisp -type f \
340 -name "*.elc" -print | sed 's/\.elc$/.el/' | xargs gzip -9n
341 assert "gzip .el failed"
342 fi
343
344 local cdir
345 if use source; then
346 cdir="/usr/share/emacs/${FULL_VERSION}/src"
347 insinto "${cdir}"
348 # This is not meant to install all the source -- just the
349 # C source you might find via find-function
350 doins src/*.{c,h,m}
351 elif has installsources ${FEATURES}; then
352 cdir="/usr/src/debug/${CATEGORY}/${PF}/${S#"${WORKDIR}/"}/src"
353 fi
354
355 sed -e "${cdir:+#}/^Y/d" -e "s/^[XY]//" >"${T}/${SITEFILE}" <<-EOF
356 X
357 ;;; ${PN}-${SLOT} site-lisp configuration
358 X
359 (when (string-match "\\\\\`${FULL_VERSION//./\\\\.}\\\\>" emacs-version)
360 Y (setq find-function-C-source-directory
361 Y "${EPREFIX}${cdir}")
362 X (let ((path (getenv "INFOPATH"))
363 X (dir "${EPREFIX}/usr/share/info/${EMACS_SUFFIX}")
364 X (re "\\\\\`${EPREFIX}/usr/share/info\\\\>"))
365 X (and path
366 X ;; move Emacs Info dir before anything else in /usr/share/info
367 X (let* ((p (cons nil (split-string path ":" t))) (q p))
368 X (while (and (cdr q) (not (string-match re (cadr q))))
369 X (setq q (cdr q)))
370 X (setcdr q (cons dir (delete dir (cdr q))))
371 X (setq Info-directory-list (prune-directory-list (cdr p)))))))
372 EOF
373 elisp-site-file-install "${T}/${SITEFILE}" || die
374
375 dodoc README BUGS
376
377 if use aqua; then
378 dodir /Applications/Gentoo
379 rm -rf "${ED}"/Applications/Gentoo/Emacs${EMACS_SUFFIX#emacs}.app
380 mv nextstep/Emacs.app \
381 "${ED}"/Applications/Gentoo/Emacs${EMACS_SUFFIX#emacs}.app || die
382 fi
383
384 DOC_CONTENTS="You can set the version to be started by /usr/bin/emacs
385 through the Emacs eselect module, which also redirects man and info
386 pages. Therefore, several Emacs versions can be installed at the
387 same time. \"man emacs.eselect\" for details.
388 \\n\\nIf you upgrade from Emacs version 24.2 or earlier, then it is
389 strongly recommended that you use app-admin/emacs-updater to rebuild
390 all byte-compiled elisp files of the installed Emacs packages."
391 use X && DOC_CONTENTS+="\\n\\nYou need to install some fonts for Emacs.
392 Installing media-fonts/font-adobe-{75,100}dpi on the X server's
393 machine would satisfy basic Emacs requirements under X11.
394 See also https://wiki.gentoo.org/wiki/Xft_support_for_GNU_Emacs
395 for how to enable anti-aliased fonts."
396 use aqua && DOC_CONTENTS+="\\n\\nEmacs${EMACS_SUFFIX#emacs}.app is in
397 \"${EPREFIX}/Applications/Gentoo\". You may want to copy or symlink
398 it into /Applications by yourself."
399 readme.gentoo_create_doc
400 }
401
402 pkg_preinst() {
403 # move Info dir file to correct name
404 local infodir=/usr/share/info/${EMACS_SUFFIX} f
405 if [[ -f ${ED}${infodir}/dir.orig ]]; then
406 mv "${ED}"${infodir}/dir{.orig,} || die "moving info dir failed"
407 elif [[ -d "${ED}"${infodir} ]]; then
408 # this should not happen in EAPI 4
409 ewarn "Regenerating Info directory index in ${infodir} ..."
410 rm -f "${ED}"${infodir}/dir{,.*}
411 for f in "${ED}"${infodir}/*; do
412 if [[ ${f##*/} != *-[0-9]* && -e ${f} ]]; then
413 install-info --info-dir="${ED}"${infodir} "${f}" \
414 || die "install-info failed"
415 fi
416 done
417 fi
418 }
419
420 pkg_postinst() {
421 elisp-site-regen
422
423 local pvr
424 for pvr in ${REPLACING_VERSIONS}; do
425 [[ ${pvr%%[-_]*} = 24.[12] ]] && FORCE_PRINT_ELOG=1
426 done
427 readme.gentoo_print_elog
428
429 if use livecd; then
430 # force an update of the emacs symlink for the livecd/dvd,
431 # because some microemacs packages set it with USE=livecd
432 eselect emacs update
433 elif [[ $(readlink "${EROOT}"/usr/bin/emacs) = ${EMACS_SUFFIX} ]]; then
434 # refresh symlinks in case any installed files have changed
435 eselect emacs set ${EMACS_SUFFIX}
436 else
437 eselect emacs update ifunset
438 fi
439 }
440
441 pkg_postrm() {
442 elisp-site-regen
443 eselect emacs update ifunset
444 }