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