summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Szuba <marecki@gentoo.org>2020-12-03 14:20:14 +0100
committerMarek Szuba <marecki@gentoo.org>2020-12-03 14:21:02 +0100
commit2fc4d4df4771b70b043ceb4dbeb4f10deae242c6 (patch)
tree4664c151b376f2da7789813364811b44af12646b /app-editors/vis
parentmedia-libs/glm: fix github remote-id (diff)
downloadgentoo-2fc4d4df4771b70b043ceb4dbeb4f10deae242c6.tar.gz
gentoo-2fc4d4df4771b70b043ceb4dbeb4f10deae242c6.tar.bz2
gentoo-2fc4d4df4771b70b043ceb4dbeb4f10deae242c6.zip
app-editors/vis: only invoke lua-single_pkg_setup for USE=lua
Signed-off-by: Marek Szuba <marecki@gentoo.org>
Diffstat (limited to 'app-editors/vis')
-rw-r--r--app-editors/vis/vis-0.6.ebuild4
-rw-r--r--app-editors/vis/vis-9999.ebuild4
2 files changed, 8 insertions, 0 deletions
diff --git a/app-editors/vis/vis-0.6.ebuild b/app-editors/vis/vis-0.6.ebuild
index 6d183fc5d65d..722f5a71fc9c 100644
--- a/app-editors/vis/vis-0.6.ebuild
+++ b/app-editors/vis/vis-0.6.ebuild
@@ -27,6 +27,10 @@ DEPEND="dev-libs/libtermkey
RDEPEND="${DEPEND}
app-eselect/eselect-vi"
+pkg_setup() {
+ use lua && lua-single_pkg_setup
+}
+
src_prepare() {
if use test; then
rm -r test || die
diff --git a/app-editors/vis/vis-9999.ebuild b/app-editors/vis/vis-9999.ebuild
index e39c60682685..38ea0ff6ecd6 100644
--- a/app-editors/vis/vis-9999.ebuild
+++ b/app-editors/vis/vis-9999.ebuild
@@ -24,6 +24,10 @@ DEPEND="dev-libs/libtermkey
RDEPEND="${DEPEND}
app-eselect/eselect-vi"
+pkg_setup() {
+ use lua && lua-single_pkg_setup
+}
+
src_prepare() {
sed -i 's|STRIP?=.*|STRIP=true|' Makefile || die
sed -i 's|${DOCPREFIX}/vis|${DOCPREFIX}|' Makefile || die