1 |
ulm 09/04/22 23:14:03 |
2 |
|
3 |
Modified: metadata.xml ChangeLog |
4 |
Added: emacs-common-gentoo-1.1.ebuild |
5 |
Log: |
6 |
Version bump. New "emacs23icons" USE flag for Emacs 23 style icons. |
7 |
(Portage version: 2.2_rc31/cvs/Linux i686) |
8 |
|
9 |
Revision Changes Path |
10 |
1.2 app-emacs/emacs-common-gentoo/metadata.xml |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emacs/emacs-common-gentoo/metadata.xml?rev=1.2&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emacs/emacs-common-gentoo/metadata.xml?rev=1.2&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emacs/emacs-common-gentoo/metadata.xml?r1=1.1&r2=1.2 |
15 |
|
16 |
Index: metadata.xml |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/app-emacs/emacs-common-gentoo/metadata.xml,v |
19 |
retrieving revision 1.1 |
20 |
retrieving revision 1.2 |
21 |
diff -u -r1.1 -r1.2 |
22 |
--- metadata.xml 12 Mar 2009 00:59:02 -0000 1.1 |
23 |
+++ metadata.xml 22 Apr 2009 23:14:03 -0000 1.2 |
24 |
@@ -2,4 +2,7 @@ |
25 |
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
26 |
<pkgmetadata> |
27 |
<herd>emacs</herd> |
28 |
+<use> |
29 |
+ <flag name='emacs23icons'>Install Emacs 23 style icons</flag> |
30 |
+</use> |
31 |
</pkgmetadata> |
32 |
|
33 |
|
34 |
|
35 |
1.15 app-emacs/emacs-common-gentoo/ChangeLog |
36 |
|
37 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emacs/emacs-common-gentoo/ChangeLog?rev=1.15&view=markup |
38 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emacs/emacs-common-gentoo/ChangeLog?rev=1.15&content-type=text/plain |
39 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emacs/emacs-common-gentoo/ChangeLog?r1=1.14&r2=1.15 |
40 |
|
41 |
Index: ChangeLog |
42 |
=================================================================== |
43 |
RCS file: /var/cvsroot/gentoo-x86/app-emacs/emacs-common-gentoo/ChangeLog,v |
44 |
retrieving revision 1.14 |
45 |
retrieving revision 1.15 |
46 |
diff -u -r1.14 -r1.15 |
47 |
--- ChangeLog 14 Apr 2009 18:02:24 -0000 1.14 |
48 |
+++ ChangeLog 22 Apr 2009 23:14:03 -0000 1.15 |
49 |
@@ -1,6 +1,12 @@ |
50 |
# ChangeLog for app-emacs/emacs-common-gentoo |
51 |
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
52 |
-# $Header: /var/cvsroot/gentoo-x86/app-emacs/emacs-common-gentoo/ChangeLog,v 1.14 2009/04/14 18:02:24 ulm Exp $ |
53 |
+# $Header: /var/cvsroot/gentoo-x86/app-emacs/emacs-common-gentoo/ChangeLog,v 1.15 2009/04/22 23:14:03 ulm Exp $ |
54 |
+ |
55 |
+*emacs-common-gentoo-1.1 (23 Apr 2009) |
56 |
+ |
57 |
+ 23 Apr 2009; Ulrich Mueller <ulm@g.o> metadata.xml, |
58 |
+ +emacs-common-gentoo-1.1.ebuild: |
59 |
+ Version bump. New "emacs23icons" USE flag for Emacs 23 style icons. |
60 |
|
61 |
14 Apr 2009; Ulrich Mueller <ulm@g.o> |
62 |
-emacs-common-gentoo-0.3.ebuild: |
63 |
|
64 |
|
65 |
|
66 |
1.1 app-emacs/emacs-common-gentoo/emacs-common-gentoo-1.1.ebuild |
67 |
|
68 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emacs/emacs-common-gentoo/emacs-common-gentoo-1.1.ebuild?rev=1.1&view=markup |
69 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emacs/emacs-common-gentoo/emacs-common-gentoo-1.1.ebuild?rev=1.1&content-type=text/plain |
70 |
|
71 |
Index: emacs-common-gentoo-1.1.ebuild |
72 |
=================================================================== |
73 |
# Copyright 1999-2009 Gentoo Foundation |
74 |
# Distributed under the terms of the GNU General Public License v2 |
75 |
# $Header: /var/cvsroot/gentoo-x86/app-emacs/emacs-common-gentoo/emacs-common-gentoo-1.1.ebuild,v 1.1 2009/04/22 23:14:03 ulm Exp $ |
76 |
|
77 |
inherit elisp-common eutils fdo-mime gnome2-utils |
78 |
|
79 |
DESCRIPTION="Common files needed by all GNU Emacs versions" |
80 |
HOMEPAGE="http://www.gentoo.org/proj/en/lisp/emacs/" |
81 |
SRC_URI="mirror://gentoo/${P}.tar.gz" |
82 |
|
83 |
LICENSE="GPL-2 X? ( emacs23icons? ( GPL-3 ) )" |
84 |
SLOT="0" |
85 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd" |
86 |
IUSE="X emacs23icons" |
87 |
|
88 |
PDEPEND="virtual/emacs" |
89 |
|
90 |
pkg_setup() { |
91 |
if [ -e "${ROOT}${SITELISP}/subdirs.el" ] \ |
92 |
&& ! has_version ">=${CATEGORY}/${PN}-1" |
93 |
then |
94 |
ewarn "Removing orphan subdirs.el (installed by old Emacs ebuilds)" |
95 |
rm -f "${ROOT}${SITELISP}/subdirs.el" |
96 |
fi |
97 |
|
98 |
NEW_INSTALL="" |
99 |
has_version ${CATEGORY}/${PN} || NEW_INSTALL="true" |
100 |
} |
101 |
|
102 |
src_install() { |
103 |
elisp-install . subdirs.el || die |
104 |
|
105 |
if use X; then |
106 |
local i |
107 |
domenu emacs.desktop emacsclient.desktop || die |
108 |
newicon icons/sink.png emacs-sink.png || die |
109 |
if use emacs23icons; then |
110 |
newicon icons/emacs23_48.png emacs.png || die |
111 |
for i in 16 24 32 48 128; do |
112 |
insinto /usr/share/icons/hicolor/${i}x${i}/apps |
113 |
newins icons/emacs23_${i}.png emacs.png || die |
114 |
done |
115 |
insinto /usr/share/icons/hicolor/scalable/apps |
116 |
newins icons/emacs23.svg emacs.svg || die |
117 |
else |
118 |
newicon icons/emacs_48.png emacs.png || die |
119 |
for i in 16 24 32 48; do |
120 |
insinto /usr/share/icons/hicolor/${i}x${i}/apps |
121 |
newins icons/emacs_${i}.png emacs.png || die |
122 |
done |
123 |
fi |
124 |
gnome2_icon_savelist |
125 |
fi |
126 |
} |
127 |
|
128 |
make-site-start() { |
129 |
ebegin "Creating default ${SITELISP}/site-start.el" |
130 |
cat <<-EOF >"${T}/site-start.el" |
131 |
;;; site-start.el -*- no-byte-compile: t -*- |
132 |
|
133 |
;;; Commentary: |
134 |
;; This default site startup file for Emacs was created by package |
135 |
;; ${CATEGORY}/${PF}. You may modify this file, replace |
136 |
;; it by your own site initialisation, or even remove it completely. |
137 |
|
138 |
;;; Code: |
139 |
;; Load site initialisation for Gentoo installed packages. |
140 |
(require 'site-gentoo) |
141 |
|
142 |
;;; site-start.el ends here |
143 |
EOF |
144 |
mv "${T}/site-start.el" "${ROOT}${SITELISP}/site-start.el" |
145 |
eend $? "Installation of site-start.el failed" |
146 |
} |
147 |
|
148 |
pkg_config() { |
149 |
if [ ! -e "${ROOT}${SITELISP}/site-start.el" ]; then |
150 |
einfo "Press ENTER to create a default site-start.el file" |
151 |
einfo "for GNU Emacs, or Control-C to abort now ..." |
152 |
read |
153 |
make-site-start |
154 |
else |
155 |
einfo "site-start.el for GNU Emacs already exists." |
156 |
fi |
157 |
} |
158 |
|
159 |
pkg_postinst() { |
160 |
if use X; then |
161 |
fdo-mime_desktop_database_update |
162 |
gnome2_icon_cache_update |
163 |
fi |
164 |
|
165 |
# make sure that site-gentoo.el exists since site-start.el requires it |
166 |
elisp-site-regen |
167 |
|
168 |
if [ ! -e "${ROOT}${SITELISP}/site-start.el" ]; then |
169 |
local line |
170 |
echo |
171 |
while read line; do elog "${line:- }"; done <<-EOF |
172 |
All site initialisation for Gentoo-installed packages is added to |
173 |
/usr/share/emacs/site-lisp/site-gentoo.el. In order for this site |
174 |
initialisation to be loaded for all users automatically, a default |
175 |
site-start.el is created in the same directory. You are responsible |
176 |
for all further maintenance of this file. |
177 |
|
178 |
Alternatively, individual users can add the following command: |
179 |
|
180 |
(require 'site-gentoo) |
181 |
|
182 |
to their ~/.emacs initialisation files, or, for greater flexibility, |
183 |
users may load single package-specific initialisation files from |
184 |
/usr/share/emacs/site-lisp/site-gentoo.d/. |
185 |
EOF |
186 |
echo |
187 |
|
188 |
if [ "${NEW_INSTALL}" ]; then |
189 |
# This is a new install. Create default site-start.el, so that |
190 |
# Gentoo packages will work. |
191 |
make-site-start |
192 |
else |
193 |
# This package was already installed, but site-start.el does |
194 |
# not exist. Give a hint how to (re-)create it. |
195 |
elog "If this is a new install, you may want to run:" |
196 |
elog "emerge --config =${CATEGORY}/${PF}" |
197 |
fi |
198 |
fi |
199 |
} |
200 |
|
201 |
pkg_postrm() { |
202 |
if use X; then |
203 |
fdo-mime_desktop_database_update |
204 |
gnome2_icon_cache_update |
205 |
fi |
206 |
} |