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