From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 90E98138335 for ; Mon, 11 Jun 2018 22:52:16 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 83D53E0823; Mon, 11 Jun 2018 22:52:15 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 5072DE0824 for ; Mon, 11 Jun 2018 22:52:15 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D2831335C8A for ; Mon, 11 Jun 2018 22:52:13 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 86F732A1 for ; Mon, 11 Jun 2018 22:52:11 +0000 (UTC) From: "Ulrich Müller" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ulrich Müller" Message-ID: <1528757525.1a39b19911428fedd6f81071347d5165fde01e56.ulm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-emacs/editorconfig-emacs/, app-emacs/editorconfig-emacs/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-emacs/editorconfig-emacs/editorconfig-emacs-0.7.8-r1.ebuild app-emacs/editorconfig-emacs/editorconfig-emacs-0.7.8.ebuild app-emacs/editorconfig-emacs/files/50editorconfig-emacs-gentoo.el app-emacs/editorconfig-emacs/metadata.xml X-VCS-Directories: app-emacs/editorconfig-emacs/files/ app-emacs/editorconfig-emacs/ X-VCS-Committer: ulm X-VCS-Committer-Name: Ulrich Müller X-VCS-Revision: 1a39b19911428fedd6f81071347d5165fde01e56 X-VCS-Branch: master Date: Mon, 11 Jun 2018 22:52:11 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: b62c0b39-8ceb-4bc2-a7b5-10ed8acaa151 X-Archives-Hash: 78dbfa97bdd30b09d498d0e1764f940e commit: 1a39b19911428fedd6f81071347d5165fde01e56 Author: Ulrich Müller gentoo org> AuthorDate: Mon Jun 11 22:31:54 2018 +0000 Commit: Ulrich Müller gentoo org> CommitDate: Mon Jun 11 22:52:05 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1a39b199 app-emacs/editorconfig-emacs: Update site-init file. Follow Emacs project standards, i.e., don't activate features as site default but leave this to the user. Commit with permission of zmedico in #gentoo-dev. Package-Manager: Portage-2.3.40, Repoman-2.3.9 ...8.ebuild => editorconfig-emacs-0.7.8-r1.ebuild} | 22 ++++++++-------------- .../files/50editorconfig-emacs-gentoo.el | 7 +++++++ 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 similarity index 54% rename from app-emacs/editorconfig-emacs/editorconfig-emacs-0.7.8.ebuild rename to app-emacs/editorconfig-emacs/editorconfig-emacs-0.7.8-r1.ebuild index 8b6ace3612d..f79186d032e 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 00000000000..93d6816e8e7 --- /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 14acb12060d..65f408f2b6b 100644 --- a/app-emacs/editorconfig-emacs/metadata.xml +++ b/app-emacs/editorconfig-emacs/metadata.xml @@ -7,4 +7,9 @@ zmedico@gentoo.org + + gnu-emacs@gentoo.org + Gentoo GNU Emacs project + +