From b0c0c64c1579851b1eea1ef580f14ff4e26dbb54 Mon Sep 17 00:00:00 2001
From: Ulrich Müller <ulm@gentoo.org>
Date: Thu, 23 Jul 2020 12:31:41 +0200
Subject: app-emacs/ebuild-mode: Sync site-init file from emacs overlay.
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Package-Manager: Portage-3.0.0, Repoman-2.3.23
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
---
 app-emacs/ebuild-mode/ebuild-mode-1.51-r1.ebuild   | 22 ----------------------
 app-emacs/ebuild-mode/ebuild-mode-1.51-r2.ebuild   | 22 ++++++++++++++++++++++
 .../ebuild-mode/files/50ebuild-mode-gentoo-1.51.el |  3 +++
 3 files changed, 25 insertions(+), 22 deletions(-)
 delete mode 100644 app-emacs/ebuild-mode/ebuild-mode-1.51-r1.ebuild
 create mode 100644 app-emacs/ebuild-mode/ebuild-mode-1.51-r2.ebuild

diff --git a/app-emacs/ebuild-mode/ebuild-mode-1.51-r1.ebuild b/app-emacs/ebuild-mode/ebuild-mode-1.51-r1.ebuild
deleted file mode 100644
index c2b1fbb5a4e4..000000000000
--- a/app-emacs/ebuild-mode/ebuild-mode-1.51-r1.ebuild
+++ /dev/null
@@ -1,22 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit elisp readme.gentoo-r1
-
-DESCRIPTION="Emacs modes for editing ebuilds and other Gentoo specific files"
-HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Emacs"
-SRC_URI="https://dev.gentoo.org/~ulm/emacs/${P}.tar.xz"
-
-LICENSE="GPL-2+"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
-
-BDEPEND="sys-apps/texinfo"
-
-DOCS="ChangeLog keyword-generation.sh"
-ELISP_TEXINFO="${PN}.texi"
-SITEFILE="50${PN}-gentoo-1.51.el"
-DOC_CONTENTS="Some optional features may require installation of additional
-	packages, like dev-python/docutils-glep for glep."
diff --git a/app-emacs/ebuild-mode/ebuild-mode-1.51-r2.ebuild b/app-emacs/ebuild-mode/ebuild-mode-1.51-r2.ebuild
new file mode 100644
index 000000000000..c2b1fbb5a4e4
--- /dev/null
+++ b/app-emacs/ebuild-mode/ebuild-mode-1.51-r2.ebuild
@@ -0,0 +1,22 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit elisp readme.gentoo-r1
+
+DESCRIPTION="Emacs modes for editing ebuilds and other Gentoo specific files"
+HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Emacs"
+SRC_URI="https://dev.gentoo.org/~ulm/emacs/${P}.tar.xz"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
+
+BDEPEND="sys-apps/texinfo"
+
+DOCS="ChangeLog keyword-generation.sh"
+ELISP_TEXINFO="${PN}.texi"
+SITEFILE="50${PN}-gentoo-1.51.el"
+DOC_CONTENTS="Some optional features may require installation of additional
+	packages, like dev-python/docutils-glep for glep."
diff --git a/app-emacs/ebuild-mode/files/50ebuild-mode-gentoo-1.51.el b/app-emacs/ebuild-mode/files/50ebuild-mode-gentoo-1.51.el
index c21721137e41..7ce7e85141a9 100644
--- a/app-emacs/ebuild-mode/files/50ebuild-mode-gentoo-1.51.el
+++ b/app-emacs/ebuild-mode/files/50ebuild-mode-gentoo-1.51.el
@@ -1,12 +1,15 @@
 (add-to-list 'load-path "@SITELISP@")
 (autoload 'ebuild-mode "ebuild-mode"
   "Major mode for Portage .ebuild and .eclass files." t)
+(autoload 'devbook-mode "devbook-mode"
+  "Major mode for editing the Gentoo Devmanual." t)
 (autoload 'gentoo-newsitem-mode "gentoo-newsitem-mode"
   "Major mode for Gentoo GLEP 42 news items." t)
 (autoload 'glep-mode "glep-mode"
   "Major mode for Gentoo Linux Enhancement Proposals." t)
 
 (add-to-list 'auto-mode-alist '("\\.\\(ebuild\\|eclass\\)\\'" . ebuild-mode))
+(add-to-list 'auto-mode-alist '("/devmanual.*\\.xml\\'" . devbook-mode))
 (add-to-list 'auto-mode-alist
 	     '("/[0-9]\\{4\\}-[01][0-9]-[0-3][0-9]-.+\\.[a-z]\\{2\\}\\.txt\\'"
 	       . gentoo-newsitem-mode))
-- 
cgit v1.2.3-65-gdbad