diff options
-rw-r--r-- | app-emacs/editorconfig-emacs/editorconfig-emacs-0.7.8-r1.ebuild (renamed from app-emacs/editorconfig-emacs/editorconfig-emacs-0.7.8.ebuild) | 22 | ||||
-rw-r--r-- | app-emacs/editorconfig-emacs/files/50editorconfig-emacs-gentoo.el | 7 | ||||
-rw-r--r-- | app-emacs/editorconfig-emacs/metadata.xml | 5 |
3 files changed, 20 insertions, 14 deletions
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 index 8b6ace3612d8..f79186d032e1 100644 --- a/app-emacs/editorconfig-emacs/editorconfig-emacs-0.7.8.ebuild +++ b/app-emacs/editorconfig-emacs/editorconfig-emacs-0.7.8-r1.ebuild @@ -1,9 +1,9 @@ # Copyright 1999-2018 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -EAPI=6 +EAPI=7 -inherit elisp +inherit elisp readme.gentoo-r1 DESCRIPTION="EditorConfig plugin for emacs" HOMEPAGE="https://github.com/editorconfig/editorconfig-emacs" @@ -12,16 +12,10 @@ SRC_URI="https://github.com/editorconfig/${PN}/archive/v${PV}.tar.gz -> ${P}.tar LICENSE="GPL-3+" SLOT="0" KEYWORDS="~amd64 ~x86" -IUSE="" -RESTRICT="test" +RESTRICT="test" # make test requires a git repo -src_install() { - local site_file="${T}/50${PN}-gentoo.el" - echo " -(require 'editorconfig) -(editorconfig-mode 1) -" > "${site_file}" || die - elisp-site-file-install "${site_file}" - elisp_src_install - dodoc README.md -} +SITEFILE="50${PN}-gentoo.el" +DOCS="README.md" +DOC_CONTENTS="The EditorConfig feature is not enabled as a site default. + Add the following line to your ~/.emacs file to activate it: + \n\t(editorconfig-mode 1)" diff --git a/app-emacs/editorconfig-emacs/files/50editorconfig-emacs-gentoo.el b/app-emacs/editorconfig-emacs/files/50editorconfig-emacs-gentoo.el new file mode 100644 index 000000000000..93d6816e8e7b --- /dev/null +++ b/app-emacs/editorconfig-emacs/files/50editorconfig-emacs-gentoo.el @@ -0,0 +1,7 @@ +(add-to-list 'load-path "@SITELISP@") +(autoload 'editorconfig-mode "editorconfig" + "Toggle EditorConfig feature." t) +(autoload 'editorconfig-conf-mode "editorconfig-conf-mode" + "Major mode for editing .editorconfig files." t) +(add-to-list 'auto-mode-alist + '("/\\.editorconfig\\'" . editorconfig-conf-mode)) diff --git a/app-emacs/editorconfig-emacs/metadata.xml b/app-emacs/editorconfig-emacs/metadata.xml index 14acb12060dd..65f408f2b6bf 100644 --- a/app-emacs/editorconfig-emacs/metadata.xml +++ b/app-emacs/editorconfig-emacs/metadata.xml @@ -7,4 +7,9 @@ <maintainer type="person"> <email>zmedico@gentoo.org</email> </maintainer> + <maintainer type="project"> + <email>gnu-emacs@gentoo.org</email> + <name>Gentoo GNU Emacs project</name> + </maintainer> + <stabilize-allarches/> </pkgmetadata> |