commit:     820166f26ba367eedd9be1371f3143ba469a1d27
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Sun Mar 28 19:33:10 2021 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Sun Mar 28 19:36:39 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=820166f2

app-emacs/filladapt: Fix byte-compilation with Emacs 27

Port to EAPI 7, readme.gentoo-r1.eclass.

Closes: https://bugs.gentoo.org/723246
Closes: https://bugs.gentoo.org/778716
Package-Manager: Portage-3.0.17, Repoman-3.0.2
Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>

 .../filladapt/files/filladapt-2.12-backquote.patch  | 11 +++++++++++
 app-emacs/filladapt/filladapt-2.12-r2.ebuild        | 21 +++++++++++++++++++++
 2 files changed, 32 insertions(+)

diff --git a/app-emacs/filladapt/files/filladapt-2.12-backquote.patch 
b/app-emacs/filladapt/files/filladapt-2.12-backquote.patch
new file mode 100644
index 00000000000..83f5f921e2e
--- /dev/null
+++ b/app-emacs/filladapt/files/filladapt-2.12-backquote.patch
@@ -0,0 +1,11 @@
+--- a/filladapt.el
++++ b/filladapt.el
+@@ -86,7 +86,7 @@
+     (defmacro defgroup (&rest args)
+       nil)
+     (defmacro defcustom (var value doc &rest args) 
+-      (` (defvar (, var) (, value) (, doc))))))
++      `(defvar ,var ,value ,doc))))
+ 
+ (defgroup filladapt nil
+   "Enhanced filling"

diff --git a/app-emacs/filladapt/filladapt-2.12-r2.ebuild 
b/app-emacs/filladapt/filladapt-2.12-r2.ebuild
new file mode 100644
index 00000000000..8d28c9ab62d
--- /dev/null
+++ b/app-emacs/filladapt/filladapt-2.12-r2.ebuild
@@ -0,0 +1,21 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit elisp readme.gentoo-r1
+
+DESCRIPTION="Filladapt enhances the behavior of Emacs' fill functions"
+HOMEPAGE="http://www.wonderworks.com/";
+SRC_URI="mirror://gentoo/${P}.el.gz"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+
+PATCHES=("${FILESDIR}"/${P}-backquote.patch)
+SITEFILE="50${PN}-gentoo.el"
+DOC_CONTENTS="Filladapt is not enabled as a site default. Add the following
+       lines to your ~/.emacs file to enable adaptive fill by default:
+       \n\t(require 'filladapt)
+       \n\t(setq-default filladapt-mode t)"

Reply via email to