1 |
commit: a5b462bd12ae7e6b517155e49ed90ec267722c4c |
2 |
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Oct 31 14:56:14 2013 +0000 |
4 |
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Oct 31 14:56:14 2013 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/emacs.git;a=commit;h=a5b462bd |
7 |
|
8 |
Create site-gentoo.el in preinst phase and have it belong to this package. |
9 |
|
10 |
Package-Manager: portage-2.2.7 |
11 |
|
12 |
--- |
13 |
app-emacs/emacs-common-gentoo/ChangeLog | 3 +++ |
14 |
app-emacs/emacs-common-gentoo/emacs-common-gentoo-9999.ebuild | 7 ++++--- |
15 |
2 files changed, 7 insertions(+), 3 deletions(-) |
16 |
|
17 |
diff --git a/app-emacs/emacs-common-gentoo/ChangeLog b/app-emacs/emacs-common-gentoo/ChangeLog |
18 |
index 0f2d01a..f75d40d 100644 |
19 |
--- a/app-emacs/emacs-common-gentoo/ChangeLog |
20 |
+++ b/app-emacs/emacs-common-gentoo/ChangeLog |
21 |
@@ -2,6 +2,9 @@ |
22 |
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
23 |
# $Header: $ |
24 |
|
25 |
+ 31 Oct 2013; Ulrich Müller <ulm@g.o> emacs-common-gentoo-9999.ebuild: |
26 |
+ Create site-gentoo.el in preinst phase and have it belong to this package. |
27 |
+ |
28 |
10 Oct 2013; Ulrich Müller <ulm@g.o> emacs-common-gentoo-9999.ebuild: |
29 |
Migrate to git-r3.eclass. |
30 |
|
31 |
|
32 |
diff --git a/app-emacs/emacs-common-gentoo/emacs-common-gentoo-9999.ebuild b/app-emacs/emacs-common-gentoo/emacs-common-gentoo-9999.ebuild |
33 |
index 1a49fd2..39dabf4 100644 |
34 |
--- a/app-emacs/emacs-common-gentoo/emacs-common-gentoo-9999.ebuild |
35 |
+++ b/app-emacs/emacs-common-gentoo/emacs-common-gentoo-9999.ebuild |
36 |
@@ -92,6 +92,10 @@ site-start-modified-p() { |
37 |
} |
38 |
|
39 |
pkg_preinst() { |
40 |
+ # make sure that site-gentoo.el exists since site-start.el requires it |
41 |
+ elisp-site-regen |
42 |
+ cp "${EROOT}${SITELISP}/site-gentoo.el" "${ED}${SITELISP}/" || die |
43 |
+ |
44 |
if use games; then |
45 |
local f |
46 |
for f in /var/lib/games/emacs/{snake,tetris}-scores; do |
47 |
@@ -110,9 +114,6 @@ pkg_postinst() { |
48 |
gnome2_icon_cache_update |
49 |
fi |
50 |
|
51 |
- # make sure that site-gentoo.el exists since site-start.el requires it |
52 |
- elisp-site-regen |
53 |
- |
54 |
readme.gentoo_print_elog |
55 |
|
56 |
if [[ -e ${EROOT}${SITELISP}/site-start.el ]]; then |