1 |
commit: 1a39b19911428fedd6f81071347d5165fde01e56 |
2 |
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jun 11 22:31:54 2018 +0000 |
4 |
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jun 11 22:52:05 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1a39b199 |
7 |
|
8 |
app-emacs/editorconfig-emacs: Update site-init file. |
9 |
|
10 |
Follow Emacs project standards, i.e., don't activate features as |
11 |
site default but leave this to the user. |
12 |
|
13 |
Commit with permission of zmedico in #gentoo-dev. |
14 |
|
15 |
Package-Manager: Portage-2.3.40, Repoman-2.3.9 |
16 |
|
17 |
...8.ebuild => editorconfig-emacs-0.7.8-r1.ebuild} | 22 ++++++++-------------- |
18 |
.../files/50editorconfig-emacs-gentoo.el | 7 +++++++ |
19 |
app-emacs/editorconfig-emacs/metadata.xml | 5 +++++ |
20 |
3 files changed, 20 insertions(+), 14 deletions(-) |
21 |
|
22 |
diff --git a/app-emacs/editorconfig-emacs/editorconfig-emacs-0.7.8.ebuild b/app-emacs/editorconfig-emacs/editorconfig-emacs-0.7.8-r1.ebuild |
23 |
similarity index 54% |
24 |
rename from app-emacs/editorconfig-emacs/editorconfig-emacs-0.7.8.ebuild |
25 |
rename to app-emacs/editorconfig-emacs/editorconfig-emacs-0.7.8-r1.ebuild |
26 |
index 8b6ace3612d..f79186d032e 100644 |
27 |
--- a/app-emacs/editorconfig-emacs/editorconfig-emacs-0.7.8.ebuild |
28 |
+++ b/app-emacs/editorconfig-emacs/editorconfig-emacs-0.7.8-r1.ebuild |
29 |
@@ -1,9 +1,9 @@ |
30 |
# Copyright 1999-2018 Gentoo Foundation |
31 |
# Distributed under the terms of the GNU General Public License v2 |
32 |
|
33 |
-EAPI=6 |
34 |
+EAPI=7 |
35 |
|
36 |
-inherit elisp |
37 |
+inherit elisp readme.gentoo-r1 |
38 |
|
39 |
DESCRIPTION="EditorConfig plugin for emacs" |
40 |
HOMEPAGE="https://github.com/editorconfig/editorconfig-emacs" |
41 |
@@ -12,16 +12,10 @@ SRC_URI="https://github.com/editorconfig/${PN}/archive/v${PV}.tar.gz -> ${P}.tar |
42 |
LICENSE="GPL-3+" |
43 |
SLOT="0" |
44 |
KEYWORDS="~amd64 ~x86" |
45 |
-IUSE="" |
46 |
-RESTRICT="test" |
47 |
+RESTRICT="test" # make test requires a git repo |
48 |
|
49 |
-src_install() { |
50 |
- local site_file="${T}/50${PN}-gentoo.el" |
51 |
- echo " |
52 |
-(require 'editorconfig) |
53 |
-(editorconfig-mode 1) |
54 |
-" > "${site_file}" || die |
55 |
- elisp-site-file-install "${site_file}" |
56 |
- elisp_src_install |
57 |
- dodoc README.md |
58 |
-} |
59 |
+SITEFILE="50${PN}-gentoo.el" |
60 |
+DOCS="README.md" |
61 |
+DOC_CONTENTS="The EditorConfig feature is not enabled as a site default. |
62 |
+ Add the following line to your ~/.emacs file to activate it: |
63 |
+ \n\t(editorconfig-mode 1)" |
64 |
|
65 |
diff --git a/app-emacs/editorconfig-emacs/files/50editorconfig-emacs-gentoo.el b/app-emacs/editorconfig-emacs/files/50editorconfig-emacs-gentoo.el |
66 |
new file mode 100644 |
67 |
index 00000000000..93d6816e8e7 |
68 |
--- /dev/null |
69 |
+++ b/app-emacs/editorconfig-emacs/files/50editorconfig-emacs-gentoo.el |
70 |
@@ -0,0 +1,7 @@ |
71 |
+(add-to-list 'load-path "@SITELISP@") |
72 |
+(autoload 'editorconfig-mode "editorconfig" |
73 |
+ "Toggle EditorConfig feature." t) |
74 |
+(autoload 'editorconfig-conf-mode "editorconfig-conf-mode" |
75 |
+ "Major mode for editing .editorconfig files." t) |
76 |
+(add-to-list 'auto-mode-alist |
77 |
+ '("/\\.editorconfig\\'" . editorconfig-conf-mode)) |
78 |
|
79 |
diff --git a/app-emacs/editorconfig-emacs/metadata.xml b/app-emacs/editorconfig-emacs/metadata.xml |
80 |
index 14acb12060d..65f408f2b6b 100644 |
81 |
--- a/app-emacs/editorconfig-emacs/metadata.xml |
82 |
+++ b/app-emacs/editorconfig-emacs/metadata.xml |
83 |
@@ -7,4 +7,9 @@ |
84 |
<maintainer type="person"> |
85 |
<email>zmedico@g.o</email> |
86 |
</maintainer> |
87 |
+ <maintainer type="project"> |
88 |
+ <email>gnu-emacs@g.o</email> |
89 |
+ <name>Gentoo GNU Emacs project</name> |
90 |
+ </maintainer> |
91 |
+ <stabilize-allarches/> |
92 |
</pkgmetadata> |