commit:     ac2174fec66121ba3a6047f6d1630b0e477671ae
Author:     Haelwenn (lanodan) Monnier <contact <AT> hacktivis <DOT> me>
AuthorDate: Thu Feb  4 18:22:23 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Feb 12 16:20:31 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ac2174fe

app-editors/vis: Make test depend on dev-lua/lpeg

Closes: https://bugs.gentoo.org/768558
Signed-off-by: Haelwenn (lanodan) Monnier <contact <AT> hacktivis.me>
Closes: https://github.com/gentoo/gentoo/pull/19328
Signed-off-by: Sam James <sam <AT> gentoo.org>

 app-editors/vis/vis-0.7.ebuild  | 6 ++++--
 app-editors/vis/vis-9999.ebuild | 6 ++++--
 2 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/app-editors/vis/vis-0.7.ebuild b/app-editors/vis/vis-0.7.ebuild
index 4d2ac5754f6..c9d0b3047ab 100644
--- a/app-editors/vis/vis-0.7.ebuild
+++ b/app-editors/vis/vis-0.7.ebuild
@@ -1,10 +1,10 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
 
 MY_PTV=0.5
-LUA_COMPAT=( lua5-2 lua5-3 lua5-4 )
+LUA_COMPAT=( lua5-2 lua5-3 )
 
 inherit lua-single optfeature
 
@@ -26,6 +26,8 @@ DEPEND="dev-libs/libtermkey
        tre? ( dev-libs/tre:= )"
 RDEPEND="${DEPEND}
        app-eselect/eselect-vi"
+# https://github.com/martanne/vis-test/issues/28
+BDEPEND="test? ( $(lua_gen_cond_dep 'dev-lua/lpeg[${LUA_USEDEP}]') )"
 
 pkg_setup() {
        use lua && lua-single_pkg_setup

diff --git a/app-editors/vis/vis-9999.ebuild b/app-editors/vis/vis-9999.ebuild
index bb8d1be8d88..9f919a60fc3 100644
--- a/app-editors/vis/vis-9999.ebuild
+++ b/app-editors/vis/vis-9999.ebuild
@@ -1,8 +1,8 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
-LUA_COMPAT=( lua5-2 lua5-3 lua5-4 )
+LUA_COMPAT=( lua5-2 lua5-3 )
 
 inherit lua-single git-r3 optfeature
 
@@ -23,6 +23,8 @@ DEPEND="dev-libs/libtermkey
        tre? ( dev-libs/tre:= )"
 RDEPEND="${DEPEND}
        app-eselect/eselect-vi"
+# https://github.com/martanne/vis-test/issues/28
+BDEPEND="test? ( $(lua_gen_cond_dep 'dev-lua/lpeg[${LUA_USEDEP}]') )"
 
 pkg_setup() {
        use lua && lua-single_pkg_setup

Reply via email to