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: ChangeLog emacs-24.3_rc1.ebuild
Date: Tue, 05 Mar 2013 13:49:18
Message-Id: 20130305134913.DE1C22171D@flycatcher.gentoo.org
1 ulm 13/03/05 13:49:13
2
3 Modified: ChangeLog
4 Added: emacs-24.3_rc1.ebuild
5 Log:
6 Version bump, release candidate for Emacs 24.3.
7
8 (Portage version: 2.1.11.54/cvs/Linux x86_64, signed Manifest commit with key 9433907D693FB5B8!)
9
10 Revision Changes Path
11 1.555 app-editors/emacs/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-editors/emacs/ChangeLog?rev=1.555&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-editors/emacs/ChangeLog?rev=1.555&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-editors/emacs/ChangeLog?r1=1.554&r2=1.555
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-editors/emacs/ChangeLog,v
20 retrieving revision 1.554
21 retrieving revision 1.555
22 diff -u -r1.554 -r1.555
23 --- ChangeLog 5 Mar 2013 09:17:11 -0000 1.554
24 +++ ChangeLog 5 Mar 2013 13:49:13 -0000 1.555
25 @@ -1,6 +1,11 @@
26 # ChangeLog for app-editors/emacs
27 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/app-editors/emacs/ChangeLog,v 1.554 2013/03/05 09:17:11 ago Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/app-editors/emacs/ChangeLog,v 1.555 2013/03/05 13:49:13 ulm Exp $
30 +
31 +*emacs-24.3_rc1 (05 Mar 2013)
32 +
33 + 05 Mar 2013; Ulrich Müller <ulm@g.o> +emacs-24.3_rc1.ebuild:
34 + Version bump, release candidate for Emacs 24.3.
35
36 05 Mar 2013; Agostino Sarubbo <ago@g.o> emacs-23.4-r5.ebuild,
37 emacs-24.2-r1.ebuild:
38
39
40
41 1.1 app-editors/emacs/emacs-24.3_rc1.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-editors/emacs/emacs-24.3_rc1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-editors/emacs/emacs-24.3_rc1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: emacs-24.3_rc1.ebuild
47 ===================================================================
48 # Copyright 1999-2013 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/app-editors/emacs/emacs-24.3_rc1.ebuild,v 1.1 2013/03/05 13:49:13 ulm Exp $
51
52 EAPI=5
53
54 inherit autotools elisp-common eutils flag-o-matic multilib readme.gentoo
55
56 DESCRIPTION="The extensible, customizable, self-documenting real-time display editor"
57 HOMEPAGE="http://www.gnu.org/software/emacs/"
58 SRC_URI="mirror://gnu-alpha/emacs/pretest/${P/_/-}.tar.xz"
59
60 LICENSE="GPL-3+ FDL-1.3+ BSD HPND MIT W3C unicode PSF-2"
61 SLOT="24"
62 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
63 IUSE="alsa aqua athena dbus games gconf gif gnutls gpm gsettings gtk +gtk3 gzip-el hesiod imagemagick jpeg kerberos libxml2 livecd m17n-lib motif pax_kernel png selinux sound source svg tiff toolkit-scroll-bars wide-int X Xaw3d xft +xpm"
64 REQUIRED_USE="?? ( aqua X )"
65
66 RDEPEND="sys-libs/ncurses
67 >=app-admin/eselect-emacs-1.2
68 >=app-emacs/emacs-common-gentoo-1.3-r3[games?,X?]
69 net-libs/liblockfile
70 hesiod? ( net-dns/hesiod )
71 kerberos? ( virtual/krb5 )
72 alsa? ( media-libs/alsa-lib )
73 gpm? ( sys-libs/gpm )
74 dbus? ( sys-apps/dbus )
75 gnutls? ( net-libs/gnutls )
76 libxml2? ( >=dev-libs/libxml2-2.2.0 )
77 selinux? ( sys-libs/libselinux )
78 X? (
79 x11-libs/libXmu
80 x11-libs/libXt
81 x11-misc/xbitmaps
82 gconf? ( >=gnome-base/gconf-2.26.2 )
83 gsettings? ( >=dev-libs/glib-2.28.6 )
84 gif? ( media-libs/giflib )
85 jpeg? ( virtual/jpeg )
86 png? ( >=media-libs/libpng-1.4:0 )
87 svg? ( >=gnome-base/librsvg-2.0 )
88 tiff? ( media-libs/tiff )
89 xpm? ( x11-libs/libXpm )
90 imagemagick? ( >=media-gfx/imagemagick-6.6.2 )
91 xft? (
92 media-libs/fontconfig
93 media-libs/freetype
94 x11-libs/libXft
95 m17n-lib? (
96 >=dev-libs/libotf-0.9.4
97 >=dev-libs/m17n-lib-1.5.1
98 )
99 )
100 gtk? (
101 gtk3? ( x11-libs/gtk+:3 )
102 !gtk3? ( x11-libs/gtk+:2 )
103 )
104 !gtk? (
105 Xaw3d? ( x11-libs/libXaw3d )
106 !Xaw3d? (
107 athena? ( x11-libs/libXaw )
108 !athena? ( motif? ( >=x11-libs/motif-2.3:0 ) )
109 )
110 )
111 )"
112
113 DEPEND="${RDEPEND}
114 app-arch/xz-utils
115 alsa? ( virtual/pkgconfig )
116 dbus? ( virtual/pkgconfig )
117 gnutls? ( virtual/pkgconfig )
118 libxml2? ( virtual/pkgconfig )
119 X? ( virtual/pkgconfig )
120 gzip-el? ( app-arch/gzip )
121 pax_kernel? ( sys-apps/paxctl )"
122
123 RDEPEND="${RDEPEND}
124 !<app-editors/emacs-vcs-${PV}"
125
126 EMACS_SUFFIX="${PN/emacs/emacs-${SLOT}}"
127 SITEFILE="20${PN}-${SLOT}-gentoo.el"
128 # FULL_VERSION keeps the full version number, which is needed in
129 # order to determine some path information correctly for copy/move
130 # operations later on
131 FULL_VERSION="${PV%%_*}"
132 S="${WORKDIR}/emacs-${FULL_VERSION}"
133
134 src_prepare() {
135 #EPATCH_SUFFIX=patch epatch
136 epatch_user
137
138 if ! use alsa; then
139 # ALSA is detected even if not requested by its USE flag.
140 # Suppress it by supplying pkg-config with a wrong library name.
141 sed -i -e "/ALSA_MODULES=/s/alsa/DiSaBlEaLsA/" configure.ac \
142 || die "unable to sed configure.ac"
143 fi
144 if ! use gzip-el; then
145 # Emacs' build system automatically detects the gzip binary and
146 # compresses el files. We don't want that so confuse it with a
147 # wrong binary name
148 sed -i -e "/AC_PATH_PROG/s/gzip/PrEvEnTcOmPrEsSiOn/" configure.ac \
149 || die "unable to sed configure.ac"
150 fi
151
152 AT_M4DIR=m4 eautoreconf
153 }
154
155 src_configure() {
156 strip-flags
157
158 if use sh; then
159 replace-flags "-O[1-9]" -O0 #262359
160 elif use ia64; then
161 replace-flags "-O[2-9]" -O1 #325373
162 else
163 replace-flags "-O[3-9]" -O2
164 fi
165
166 local myconf
167
168 if use alsa && ! use sound; then
169 einfo "Although sound USE flag is disabled you chose to have alsa,"
170 einfo "so sound is switched on anyway."
171 myconf+=" --with-sound"
172 else
173 myconf+=" $(use_with sound)"
174 fi
175
176 if use X; then
177 myconf+=" --with-x --without-ns"
178 myconf+=" $(use_with gconf)"
179 myconf+=" $(use_with gsettings)"
180 myconf+=" $(use_with toolkit-scroll-bars)"
181 myconf+=" $(use_with gif)"
182 myconf+=" $(use_with jpeg)"
183 myconf+=" $(use_with png)"
184 myconf+=" $(use_with svg rsvg)"
185 myconf+=" $(use_with tiff)"
186 myconf+=" $(use_with xpm)"
187 myconf+=" $(use_with imagemagick)"
188
189 if use xft; then
190 myconf+=" --with-xft"
191 myconf+=" $(use_with m17n-lib libotf)"
192 myconf+=" $(use_with m17n-lib m17n-flt)"
193 else
194 myconf+=" --without-xft"
195 myconf+=" --without-libotf --without-m17n-flt"
196 use m17n-lib && ewarn \
197 "USE flag \"m17n-lib\" has no effect if \"xft\" is not set."
198 fi
199
200 if use gtk; then
201 einfo "Configuring to build with GIMP Toolkit (GTK+)"
202 myconf+=" --with-x-toolkit=$(usex gtk3 gtk3 gtk2)"
203 local f
204 for f in athena Xaw3d motif; do
205 use ${f} && ewarn "USE flag \"${f}\" ignored" \
206 "(superseded by \"gtk\")"
207 done
208 elif use athena || use Xaw3d; then
209 einfo "Configuring to build with Athena/Lucid toolkit"
210 myconf+=" --with-x-toolkit=lucid $(use_with Xaw3d xaw3d)"
211 use motif && ewarn "USE flag \"motif\" ignored" \
212 "(superseded by \"athena\" or \"Xaw3d\")"
213 elif use motif; then
214 einfo "Configuring to build with Motif toolkit"
215 myconf+=" --with-x-toolkit=motif"
216 else
217 einfo "Configuring to build with no toolkit"
218 myconf+=" --with-x-toolkit=no"
219 fi
220 elif use aqua; then
221 einfo "Configuring to build with Cocoa support"
222 myconf+=" --with-ns --disable-ns-self-contained"
223 myconf+=" --without-x"
224 else
225 myconf+=" --without-x --without-ns"
226 fi
227
228 # Save version information in the Emacs binary. It will be available
229 # in variable "system-configuration-options".
230 myconf+=" GENTOO_PACKAGE=${CATEGORY}/${PF}"
231
232 # According to configure, this option is only used for GNU/Linux
233 # (x86_64 and s390). For Gentoo Prefix we have to explicitly spell
234 # out the location because $(get_libdir) does not necessarily return
235 # something that matches the host OS's libdir naming (e.g. RHEL).
236 local crtdir=$($(tc-getCC) -print-file-name=crt1.o)
237 crtdir=${crtdir%/*}
238
239 econf \
240 --program-suffix=-${EMACS_SUFFIX} \
241 --program-transform-name="s/emacs-[0-9].*/${EMACS_SUFFIX}/" \
242 --infodir="${EPREFIX}"/usr/share/info/${EMACS_SUFFIX} \
243 --enable-locallisppath="${EPREFIX}/etc/emacs:${EPREFIX}${SITELISP}" \
244 --with-crt-dir="${crtdir}" \
245 --with-gameuser="${GAMES_USER_DED:-games}" \
246 --without-compress-info \
247 $(use_with hesiod) \
248 $(use_with kerberos) $(use_with kerberos kerberos5) \
249 $(use_with gpm) \
250 $(use_with dbus) \
251 $(use_with gnutls) \
252 $(use_with libxml2 xml2) \
253 $(use_with selinux) \
254 $(use_with wide-int) \
255 ${myconf}
256 }
257
258 src_compile() {
259 export SANDBOX_ON=0 # for the unbelievers, see Bug #131505
260 emake
261 }
262
263 src_install () {
264 emake DESTDIR="${D}" NO_BIN_LINK=t install
265
266 # move man pages to the correct place
267 local m
268 for m in "${ED}"/usr/share/man/man1/* ; do
269 mv "${m}" "${m%.1}-${EMACS_SUFFIX}.1" || die "mv man failed"
270 done
271
272 # move info dir to avoid collisions with the dir file generated by portage
273 mv "${ED}"/usr/share/info/${EMACS_SUFFIX}/dir{,.orig} \
274 || die "moving info dir failed"
275 touch "${ED}"/usr/share/info/${EMACS_SUFFIX}/.keepinfodir
276 docompress -x /usr/share/info/${EMACS_SUFFIX}/dir.orig
277
278 # avoid collision between slots, see bug #169033 e.g.
279 rm "${ED}"/usr/share/emacs/site-lisp/subdirs.el
280 rm -rf "${ED}"/usr/share/{applications,icons}
281 rm -rf "${ED}"/var
282
283 # remove unused <version>/site-lisp dir
284 rm -rf "${ED}"/usr/share/emacs/${FULL_VERSION}/site-lisp
285
286 local c=";;"
287 if use source; then
288 insinto /usr/share/emacs/${FULL_VERSION}/src
289 # This is not meant to install all the source -- just the
290 # C source you might find via find-function
291 doins src/*.{c,h,m}
292 c=""
293 fi
294
295 sed 's/^X//' >"${T}/${SITEFILE}" <<-EOF
296 X
297 ;;; ${PN}-${SLOT} site-lisp configuration
298 X
299 (when (string-match "\\\\\`${FULL_VERSION//./\\\\.}\\\\>" emacs-version)
300 X ${c}(setq find-function-C-source-directory
301 X ${c} "${EPREFIX}/usr/share/emacs/${FULL_VERSION}/src")
302 X (let ((path (getenv "INFOPATH"))
303 X (dir "${EPREFIX}/usr/share/info/${EMACS_SUFFIX}")
304 X (re "\\\\\`${EPREFIX}/usr/share/info\\\\>"))
305 X (and path
306 X ;; move Emacs Info dir before anything else in /usr/share/info
307 X (let* ((p (cons nil (split-string path ":" t))) (q p))
308 X (while (and (cdr q) (not (string-match re (cadr q))))
309 X (setq q (cdr q)))
310 X (setcdr q (cons dir (delete dir (cdr q))))
311 X (setq Info-directory-list (prune-directory-list (cdr p)))))))
312 EOF
313 elisp-site-file-install "${T}/${SITEFILE}" || die
314
315 dodoc README BUGS
316
317 if use aqua; then
318 dodir /Applications/Gentoo
319 rm -rf "${ED}"/Applications/Gentoo/Emacs${EMACS_SUFFIX#emacs}.app
320 mv nextstep/Emacs.app \
321 "${ED}"/Applications/Gentoo/Emacs${EMACS_SUFFIX#emacs}.app || die
322 fi
323
324 DOC_CONTENTS="You can set the version to be started by /usr/bin/emacs
325 through the Emacs eselect module, which also redirects man and info
326 pages. Therefore, several Emacs versions can be installed at the
327 same time. \"man emacs.eselect\" for details.
328 \\n\\nIf you upgrade from Emacs version 24.2 or earlier, then it is
329 strongly recommended that you use app-admin/emacs-updater to rebuild
330 all byte-compiled elisp files of the installed Emacs packages."
331 use X && DOC_CONTENTS+="\\n\\nYou need to install some fonts for Emacs.
332 Installing media-fonts/font-adobe-{75,100}dpi on the X server's
333 machine would satisfy basic Emacs requirements under X11.
334 See also http://www.gentoo.org/proj/en/lisp/emacs/xft.xml
335 for how to enable anti-aliased fonts."
336 use aqua && DOC_CONTENTS+="\\n\\nEmacs${EMACS_SUFFIX#emacs}.app is in
337 ${EPREFIX}/Applications/Gentoo. You may want to copy or symlink it
338 into /Applications by yourself."
339 [[ ${REPLACING_VERSIONS} =~ (^|[[:space:]])24\.[12]($|[^0-9]) ]] \
340 && FORCE_PRINT_ELOG=1
341 readme.gentoo_create_doc
342 }
343
344 pkg_preinst() {
345 # move Info dir file to correct name
346 local infodir=/usr/share/info/${EMACS_SUFFIX} f
347 if [[ -f ${ED}${infodir}/dir.orig ]]; then
348 mv "${ED}"${infodir}/dir{.orig,} || die "moving info dir failed"
349 elif [[ -d "${ED}"${infodir} ]]; then
350 # this should not happen in EAPI 4
351 ewarn "Regenerating Info directory index in ${infodir} ..."
352 rm -f "${ED}"${infodir}/dir{,.*}
353 for f in "${ED}"${infodir}/*; do
354 if [[ ${f##*/} != *-[0-9]* && -e ${f} ]]; then
355 install-info --info-dir="${ED}"${infodir} "${f}" \
356 || die "install-info failed"
357 fi
358 done
359 fi
360 }
361
362 pkg_postinst() {
363 elisp-site-regen
364 readme.gentoo_print_elog
365
366 if use livecd; then
367 # force an update of the emacs symlink for the livecd/dvd,
368 # because some microemacs packages set it with USE=livecd
369 eselect emacs update
370 else
371 eselect emacs update ifunset
372 fi
373 }
374
375 pkg_postrm() {
376 elisp-site-regen
377 eselect emacs update ifunset
378 }