app-emacs/treepy: Fix byte-compilation with Emacs 27.
authorUlrich Müller <ulm@gentoo.org>
Mon, 23 Dec 2019 09:46:55 +0000 (10:46 +0100)
committerUlrich Müller <ulm@gentoo.org>
Mon, 23 Dec 2019 09:47:23 +0000 (10:47 +0100)
Package-Manager: Portage-2.3.82, Repoman-2.3.20
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
app-emacs/treepy/files/treepy-0.1.1-cl-lib.patch [new file with mode: 0644]
app-emacs/treepy/treepy-0.1.1-r1.ebuild [new file with mode: 0644]

diff --git a/app-emacs/treepy/files/treepy-0.1.1-cl-lib.patch b/app-emacs/treepy/files/treepy-0.1.1-cl-lib.patch
new file mode 100644 (file)
index 0000000..0c7bfba
--- /dev/null
@@ -0,0 +1,12 @@
+Fix byte-compilation with Emacs 27.
+
+--- treepy.el-0.1.1-orig/treepy.el
++++ treepy.el-0.1.1/treepy.el
+@@ -40,6 +40,7 @@
+ ;; 
+ ;;; Code:
++(require 'cl-lib)
+ (require 'map)
+ ;;; Walk (recursive tree traversal)
diff --git a/app-emacs/treepy/treepy-0.1.1-r1.ebuild b/app-emacs/treepy/treepy-0.1.1-r1.ebuild
new file mode 100644 (file)
index 0000000..ed95978
--- /dev/null
@@ -0,0 +1,20 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+NEED_EMACS=24
+
+inherit elisp
+
+DESCRIPTION="Generic tree traversing tools for Emacs Lisp"
+HOMEPAGE="https://github.com/volrath/treepy.el"
+SRC_URI="https://github.com/volrath/treepy.el/archive/${PV}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/${PN}.el-${PV}"
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+PATCHES=("${FILESDIR}"/${P}-cl-lib.patch)
+SITEFILE="50${PN}-gentoo.el"
+DOCS="README.md"