1 |
commit: 4eb555730a68dd5e0673f23137fe3eed87ce0c2e |
2 |
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Aug 18 11:13:47 2019 +0000 |
4 |
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Aug 18 11:13:47 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4eb55573 |
7 |
|
8 |
app-emacs/emacs-common-gentoo: Remove old. |
9 |
|
10 |
Package-Manager: Portage-2.3.71, Repoman-2.3.17 |
11 |
Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org> |
12 |
|
13 |
.../emacs-common-gentoo-1.6-r1.ebuild | 106 --------------------- |
14 |
1 file changed, 106 deletions(-) |
15 |
|
16 |
diff --git a/app-emacs/emacs-common-gentoo/emacs-common-gentoo-1.6-r1.ebuild b/app-emacs/emacs-common-gentoo/emacs-common-gentoo-1.6-r1.ebuild |
17 |
deleted file mode 100644 |
18 |
index 84eab96b484..00000000000 |
19 |
--- a/app-emacs/emacs-common-gentoo/emacs-common-gentoo-1.6-r1.ebuild |
20 |
+++ /dev/null |
21 |
@@ -1,106 +0,0 @@ |
22 |
-# Copyright 1999-2019 Gentoo Authors |
23 |
-# Distributed under the terms of the GNU General Public License v2 |
24 |
- |
25 |
-EAPI=6 |
26 |
- |
27 |
-inherit elisp-common desktop xdg-utils gnome2-utils readme.gentoo-r1 user |
28 |
- |
29 |
-DESCRIPTION="Common files needed by all GNU Emacs versions" |
30 |
-HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Emacs" |
31 |
-SRC_URI="https://dev.gentoo.org/~ulm/emacs/${P}.tar.xz" |
32 |
- |
33 |
-LICENSE="GPL-3+" |
34 |
-SLOT="0" |
35 |
-KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris" |
36 |
-IUSE="games X" |
37 |
- |
38 |
-PDEPEND="virtual/emacs" |
39 |
- |
40 |
-pkg_setup() { |
41 |
- use games && enewgroup gamestat 36 |
42 |
-} |
43 |
- |
44 |
-src_install() { |
45 |
- insinto "${SITELISP}" |
46 |
- doins subdirs.el |
47 |
- newins site-gentoo.el{,.orig} |
48 |
- |
49 |
- keepdir /etc/emacs |
50 |
- insinto /etc/emacs |
51 |
- doins site-start.el |
52 |
- |
53 |
- if use games; then |
54 |
- keepdir /var/games/emacs |
55 |
- fowners 0:gamestat /var/games/emacs |
56 |
- fperms g+w /var/games/emacs |
57 |
- fi |
58 |
- |
59 |
- if use X; then |
60 |
- local i |
61 |
- domenu emacs.desktop emacsclient.desktop || die |
62 |
- |
63 |
- pushd icons || die |
64 |
- newicon sink.png emacs-sink.png |
65 |
- newicon emacs25_48.png emacs.png |
66 |
- for i in 16 24 32 48 128; do |
67 |
- [[ ${i} -le 48 ]] && newicon -s ${i} emacs22_${i}.png emacs22.png |
68 |
- newicon -s ${i} emacs23_${i}.png emacs23.png |
69 |
- newicon -s ${i} emacs25_${i}.png emacs.png |
70 |
- done |
71 |
- doicon -s scalable emacs23.svg |
72 |
- newicon -s scalable emacs25.svg emacs.svg |
73 |
- popd |
74 |
- |
75 |
- gnome2_icon_savelist |
76 |
- fi |
77 |
- |
78 |
- DOC_CONTENTS="All site initialisation for Gentoo-installed packages is |
79 |
- added to ${SITELISP}/site-gentoo.el. In order for this site |
80 |
- initialisation to be loaded for all users automatically, a default |
81 |
- site startup file /etc/emacs/site-start.el is installed. You are |
82 |
- responsible for maintenance of this file. |
83 |
- \n\nAlternatively, individual users can add the following command: |
84 |
- \n\n(require 'site-gentoo) |
85 |
- \n\nto their ~/.emacs initialisation files, or, for greater |
86 |
- flexibility, users may load single package-specific initialisation |
87 |
- files from the ${SITELISP}/site-gentoo.d/ directory." |
88 |
- readme.gentoo_create_doc |
89 |
-} |
90 |
- |
91 |
-pkg_preinst() { |
92 |
- # make sure that site-gentoo.el exists since site-start.el requires it |
93 |
- if [[ ! -f ${ED}${SITELISP}/site-gentoo.el ]]; then #554518 |
94 |
- mv "${ED}${SITELISP}"/site-gentoo.el{.orig,} || die |
95 |
- fi |
96 |
- if [[ -d ${EROOT}${SITELISP} ]]; then |
97 |
- elisp-site-regen |
98 |
- cp "${EROOT}${SITELISP}/site-gentoo.el" "${ED}${SITELISP}/" || die |
99 |
- fi |
100 |
- |
101 |
- if use games; then |
102 |
- local f |
103 |
- for f in /var/games/emacs/{snake,tetris}-scores; do |
104 |
- if [[ -e ${EROOT}${f} ]]; then |
105 |
- cp "${EROOT}${f}" "${ED}${f}" || die |
106 |
- fi |
107 |
- touch "${ED}${f}" || die |
108 |
- chgrp gamestat "${ED}${f}" || die |
109 |
- chmod g+w "${ED}${f}" || die |
110 |
- done |
111 |
- fi |
112 |
-} |
113 |
- |
114 |
-pkg_postinst() { |
115 |
- if use X; then |
116 |
- xdg_desktop_database_update |
117 |
- gnome2_icon_cache_update |
118 |
- fi |
119 |
- readme.gentoo_print_elog |
120 |
-} |
121 |
- |
122 |
-pkg_postrm() { |
123 |
- if use X; then |
124 |
- xdg_desktop_database_update |
125 |
- gnome2_icon_cache_update |
126 |
- fi |
127 |
-} |