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