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