app-emacs/vm: Fix function definition in vm-pcrisis.el.
authorUlrich Müller <ulm@gentoo.org>
Fri, 10 Aug 2018 06:22:02 +0000 (08:22 +0200)
committerUlrich Müller <ulm@gentoo.org>
Fri, 10 Aug 2018 06:22:41 +0000 (08:22 +0200)
Bug: https://bugs.gentoo.org/652952
Package-Manager: Portage-2.3.45, Repoman-2.3.10

app-emacs/vm/files/vm-8.2.0_beta-optional-args.patch [new file with mode: 0644]
app-emacs/vm/vm-8.2.0_beta-r1.ebuild [moved from app-emacs/vm/vm-8.2.0_beta.ebuild with 83% similarity]

diff --git a/app-emacs/vm/files/vm-8.2.0_beta-optional-args.patch b/app-emacs/vm/files/vm-8.2.0_beta-optional-args.patch
new file mode 100644 (file)
index 0000000..2cec28e
--- /dev/null
@@ -0,0 +1,13 @@
+https://bugs.gentoo.org/652952
+
+--- vm-8.2.0b-orig/lisp/vm-pcrisis.el
++++ vm-8.2.0b/lisp/vm-pcrisis.el
+@@ -1214,7 +1214,7 @@
+ ;; Functions for vmpc-conditions:
+ ;; -------------------------------------------------------------------
+-(defun vmpc-none-true-yet (&optional &rest exceptions)
++(defun vmpc-none-true-yet (&rest exceptions)
+   "True if none of the previous evaluated conditions was true.
+ This is a condition that can appear in `vmpc-conditions'.  If EXCEPTIONS are
+ specified, it means none were true except those.  For example, if you wanted
similarity index 83%
rename from app-emacs/vm/vm-8.2.0_beta.ebuild
rename to app-emacs/vm/vm-8.2.0_beta-r1.ebuild
index 2ed8bc2e6aab2791575376089143a07db5ba0c19..0cdf2674f889260a3747e2c9ca2cbbe804f3ff0c 100644 (file)
@@ -1,9 +1,9 @@
 # Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=4
+EAPI=7
 
-inherit elisp eutils
+inherit elisp
 
 MY_PV="${PV/_beta/b}"
 MY_P="${PN}-${MY_PV}"
@@ -17,22 +17,22 @@ KEYWORDS="~amd64 ~ppc ~x86"
 IUSE="bbdb ssl"
 
 DEPEND="bbdb? ( <app-emacs/bbdb-3 )"
-RDEPEND="!app-emacs/u-vm-color
-       ${DEPEND}
+RDEPEND="${DEPEND}
        ssl? ( net-misc/stunnel )"
-DEPEND="${DEPEND}
-       sys-apps/texinfo"
+BDEPEND="sys-apps/texinfo"
 
 S="${WORKDIR}/${MY_P}"
 SITEFILE="50${PN}-gentoo.el"
 
 src_prepare() {
-       epatch "${FILESDIR}/${P}-datadir.patch"
-       epatch "${FILESDIR}/${P}-texinfo-5.patch"
+       eapply "${FILESDIR}/${P}-datadir.patch"
+       eapply "${FILESDIR}/${P}-texinfo-5.patch"
+       eapply "${FILESDIR}/${P}-optional-args.patch"
+       eapply_user
 
        if ! use bbdb; then
                elog "Excluding vm-pcrisis.el since the \"bbdb\" USE flag is not set."
-               epatch "${FILESDIR}/${PN}-8.0-no-pcrisis.patch"
+               eapply "${FILESDIR}/${PN}-8.0-no-pcrisis.patch"
        fi
 }