1 |
ulm 12/01/29 18:19:40 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: emacs-common-gentoo-1.3-r1.ebuild |
5 |
Log: |
6 |
Remove old /usr/share/emacs/site-lisp/site-start.el if it is unmodified. |
7 |
|
8 |
(Portage version: 2.1.10.44/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.54 app-emacs/emacs-common-gentoo/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emacs/emacs-common-gentoo/ChangeLog?rev=1.54&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emacs/emacs-common-gentoo/ChangeLog?rev=1.54&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emacs/emacs-common-gentoo/ChangeLog?r1=1.53&r2=1.54 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/app-emacs/emacs-common-gentoo/ChangeLog,v |
20 |
retrieving revision 1.53 |
21 |
retrieving revision 1.54 |
22 |
diff -u -r1.53 -r1.54 |
23 |
--- ChangeLog 16 Jan 2012 06:35:42 -0000 1.53 |
24 |
+++ ChangeLog 29 Jan 2012 18:19:40 -0000 1.54 |
25 |
@@ -1,6 +1,12 @@ |
26 |
# ChangeLog for app-emacs/emacs-common-gentoo |
27 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/app-emacs/emacs-common-gentoo/ChangeLog,v 1.53 2012/01/16 06:35:42 ulm Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/app-emacs/emacs-common-gentoo/ChangeLog,v 1.54 2012/01/29 18:19:40 ulm Exp $ |
30 |
+ |
31 |
+*emacs-common-gentoo-1.3-r1 (29 Jan 2012) |
32 |
+ |
33 |
+ 29 Jan 2012; Ulrich Müller <ulm@g.o> |
34 |
+ +emacs-common-gentoo-1.3-r1.ebuild: |
35 |
+ Remove old /usr/share/emacs/site-lisp/site-start.el if it is unmodified. |
36 |
|
37 |
16 Jan 2012; Ulrich Müller <ulm@g.o> |
38 |
-emacs-common-gentoo-1.2-r2.ebuild: |
39 |
|
40 |
|
41 |
|
42 |
1.1 app-emacs/emacs-common-gentoo/emacs-common-gentoo-1.3-r1.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emacs/emacs-common-gentoo/emacs-common-gentoo-1.3-r1.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emacs/emacs-common-gentoo/emacs-common-gentoo-1.3-r1.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: emacs-common-gentoo-1.3-r1.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2012 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/app-emacs/emacs-common-gentoo/emacs-common-gentoo-1.3-r1.ebuild,v 1.1 2012/01/29 18:19:40 ulm Exp $ |
52 |
|
53 |
EAPI=4 |
54 |
|
55 |
inherit elisp-common eutils fdo-mime gnome2-utils |
56 |
|
57 |
DESCRIPTION="Common files needed by all GNU Emacs versions" |
58 |
HOMEPAGE="http://www.gentoo.org/proj/en/lisp/emacs/" |
59 |
SRC_URI="mirror://gentoo/${P}.tar.gz" |
60 |
|
61 |
LICENSE="GPL-3" |
62 |
SLOT="0" |
63 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x86-solaris" |
64 |
IUSE="X emacs22icons" |
65 |
|
66 |
PDEPEND="virtual/emacs" |
67 |
|
68 |
pkg_setup() { |
69 |
if [[ -e ${EROOT}${SITELISP}/subdirs.el ]] \ |
70 |
&& ! has_version ">=${CATEGORY}/${PN}-1" |
71 |
then |
72 |
ewarn "Removing orphan subdirs.el (installed by old Emacs ebuilds)" |
73 |
rm -f "${EROOT}${SITELISP}/subdirs.el" |
74 |
fi |
75 |
} |
76 |
|
77 |
src_install() { |
78 |
insinto "${SITELISP}" |
79 |
doins subdirs.el |
80 |
|
81 |
keepdir /etc/emacs |
82 |
insinto /etc/emacs |
83 |
doins site-start.el |
84 |
|
85 |
if use X; then |
86 |
local i |
87 |
domenu emacs.desktop emacsclient.desktop || die |
88 |
newicon icons/sink.png emacs-sink.png || die |
89 |
if use emacs22icons; then |
90 |
newicon icons/emacs22_48.png emacs.png || die |
91 |
for i in 16 24 32 48; do |
92 |
insinto /usr/share/icons/hicolor/${i}x${i}/apps |
93 |
newins icons/emacs22_${i}.png emacs.png |
94 |
done |
95 |
else |
96 |
newicon icons/emacs_48.png emacs.png || die |
97 |
for i in 16 24 32 48 128; do |
98 |
insinto /usr/share/icons/hicolor/${i}x${i}/apps |
99 |
newins icons/emacs_${i}.png emacs.png |
100 |
done |
101 |
insinto /usr/share/icons/hicolor/scalable/apps |
102 |
doins icons/emacs.svg |
103 |
fi |
104 |
gnome2_icon_savelist |
105 |
fi |
106 |
} |
107 |
|
108 |
site-start-modified-p() { |
109 |
case $(cksum <"${EROOT}${SITELISP}/site-start.el") in |
110 |
# checksums of auto-generated site-start.el files |
111 |
"2098727038 349") return 1 ;; # elisp-common.eclass |
112 |
"3626264063 355") return 1 ;; # emacs-common-gentoo-1.0 (cvs rev 1.1) |
113 |
"3738455534 394") return 1 ;; # emacs-common-gentoo-1.0 (cvs rev 1.6) |
114 |
"4199862847 394") return 1 ;; # emacs-common-gentoo-1.1 |
115 |
"2547348044 394") return 1 ;; # emacs-common-gentoo-1.2 |
116 |
"2214952934 397") return 1 ;; # emacs-common-gentoo-1.2-r1 |
117 |
"3917799317 397") return 1 ;; # emacs-common-gentoo-1.2-r2 |
118 |
*) return 0 ;; |
119 |
esac |
120 |
} |
121 |
|
122 |
pkg_postinst() { |
123 |
if use X; then |
124 |
fdo-mime_desktop_database_update |
125 |
gnome2_icon_cache_update |
126 |
fi |
127 |
|
128 |
# make sure that site-gentoo.el exists since site-start.el requires it |
129 |
elisp-site-regen |
130 |
|
131 |
local line |
132 |
while read line; do elog "${line:- }"; done <<-EOF |
133 |
All site initialisation for Gentoo-installed packages is added to |
134 |
${SITELISP}/site-gentoo.el. In order for this site |
135 |
initialisation to be loaded for all users automatically, a default |
136 |
site startup file /etc/emacs/site-start.el is installed. You are |
137 |
responsible for maintenance of this file. |
138 |
|
139 |
Alternatively, individual users can add the following command: |
140 |
|
141 |
(require 'site-gentoo) |
142 |
|
143 |
to their ~/.emacs initialisation files, or, for greater flexibility, |
144 |
users may load single package-specific initialisation files from |
145 |
${SITELISP}/site-gentoo.d/. |
146 |
EOF |
147 |
|
148 |
if [[ -e ${EROOT}${SITELISP}/site-start.el ]]; then |
149 |
elog |
150 |
ewarn "The location of the site startup file for Emacs has changed to" |
151 |
ewarn "/etc/emacs/site-start.el." |
152 |
if site-start-modified-p; then |
153 |
ewarn "If your site-start.el file contains your own customisation," |
154 |
ewarn "you should move it to the new file. In any case, you should" |
155 |
ewarn "remove the old ${SITELISP}/site-start.el file." |
156 |
else |
157 |
ewarn "Removing the old ${SITELISP}/site-start.el file." |
158 |
rm -f "${EROOT}${SITELISP}/site-start.el" |
159 |
fi |
160 |
fi |
161 |
} |
162 |
|
163 |
pkg_postrm() { |
164 |
if use X; then |
165 |
fdo-mime_desktop_database_update |
166 |
gnome2_icon_cache_update |
167 |
fi |
168 |
} |