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