From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-editors/vis/
Date: Fri, 9 Feb 2018 16:37:55 +0000 (UTC) [thread overview]
Message-ID: <1518194170.e081e240b3e713c8512f38d125c50fbbe250b6d2.mgorny@gentoo> (raw)
commit: e081e240b3e713c8512f38d125c50fbbe250b6d2
Author: Haelwenn (lanodan) Monnier <contact <AT> hacktivis <DOT> me>
AuthorDate: Wed Oct 25 22:57:28 2017 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Feb 9 16:36:10 2018 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e081e240
app-editors/vis: add FEATURES=test
app-editors/vis/Manifest | 1 +
app-editors/vis/vis-0.3.ebuild | 17 +++++++++++++++--
app-editors/vis/vis-9999.ebuild | 8 +++++++-
3 files changed, 23 insertions(+), 3 deletions(-)
diff --git a/app-editors/vis/Manifest b/app-editors/vis/Manifest
index b4b954cd9cf..a7f843902fe 100644
--- a/app-editors/vis/Manifest
+++ b/app-editors/vis/Manifest
@@ -1 +1,2 @@
DIST vis-0.3.tar.gz 334216 BLAKE2B 8cf89f1e3292beb5bf7bc9495e75b795225a4a29f4d949f212daf5dd42958f347b1400a0fd1bf00014b28cfbd424bb04152c35ef9025384a746e59143fc872bb SHA512 e1ca009bd7569f22dacf7464791f9f4499695d15d6e38e1be491d39e7ebe0530de643be5c1e7647e9beb7969a17efab6545d3e719fe8cf311562e89d636bba62
+DIST vis-test-0.1.tar.gz 95274 BLAKE2B e268abda50e11809d349778bb517f9be884d6d4ef8b940b5027adf9d37d091eda7fc6e274945998a9c35df372a0fd2ad499c2b686f1fe6761b54aec397b2b9aa SHA512 433a67892f27eb01f3ea6224e1ded393cd949b4d60f7c14656fdd526c02d2b309f63d39887d8d7ba11cbad3e183ab3cd1a913ac40aa29eadb7fa700eb76424b6
diff --git a/app-editors/vis/vis-0.3.ebuild b/app-editors/vis/vis-0.3.ebuild
index e6ef1b66306..4f5eded38a7 100644
--- a/app-editors/vis/vis-0.3.ebuild
+++ b/app-editors/vis/vis-0.3.ebuild
@@ -3,13 +3,16 @@
EAPI=5
+MY_PTV=0.1
+
DESCRIPTION="modern, legacy free, simple yet efficient vim-like editor"
HOMEPAGE="https://github.com/martanne/vis"
-SRC_URI="https://github.com/martanne/vis/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+SRC_URI="https://github.com/martanne/vis/archive/v${PV}.tar.gz -> ${P}.tar.gz
+ test? ( https://github.com/martanne/vis-test/archive/v${MY_PTV}.tar.gz -> vis-test-${MY_PTV}.tar.gz )"
LICENSE="ISC"
SLOT="0"
KEYWORDS="~amd64 ~x86"
-IUSE="+ncurses selinux tre"
+IUSE="+ncurses selinux test tre"
#Note: vis is reported to also work with NetBSD curses
#TODO: >=dev-lang/lua-5.2 (needed for syntax highlighting and settings)
@@ -18,6 +21,16 @@ DEPEND=" dev-libs/libtermkey
tre? ( dev-libs/tre:= )"
RDEPEND="${DEPEND}"
+src_prepare() {
+ if use test; then
+ rm -r test || die
+ mv "${WORKDIR}/vis-test-${MY_PTV}" test || die
+ if ! type -P vim &>/dev/null; then
+ sed -i 's/.*vim.*//' test/Makefile || die
+ fi
+ fi
+}
+
src_configure() {
econf \
$(use_enable ncurses curses) \
diff --git a/app-editors/vis/vis-9999.ebuild b/app-editors/vis/vis-9999.ebuild
index 55adf200601..1826f178662 100644
--- a/app-editors/vis/vis-9999.ebuild
+++ b/app-editors/vis/vis-9999.ebuild
@@ -10,7 +10,7 @@ EGIT_REPO_URI="https://github.com/martanne/vis.git"
LICENSE="ISC"
SLOT="0"
KEYWORDS=""
-IUSE="+ncurses selinux tre"
+IUSE="+ncurses selinux test tre"
#Note: vis is reported to also work with NetBSD curses
#TODO: >=dev-lang/lua-5.2 (needed for syntax highlighting and settings)
@@ -19,6 +19,12 @@ DEPEND=" dev-libs/libtermkey
tre? ( dev-libs/tre:= )"
RDEPEND="${DEPEND}"
+src_prepare() {
+ if use test && ! type -P vim &>/dev/null; then
+ sed -i 's/.*vim.*//' "${S}/test/Makefile" || die
+ fi
+}
+
src_configure() {
econf \
$(use_enable ncurses curses) \
next reply other threads:[~2018-02-09 16:38 UTC|newest]
Thread overview: 63+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-09 16:37 Michał Górny [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-03-12 23:07 [gentoo-commits] repo/gentoo:master commit in: app-editors/vis/ Sam James
2025-03-12 23:07 Sam James
2025-03-12 23:07 Sam James
2025-01-21 13:53 Joonas Niilola
2025-01-21 13:53 Joonas Niilola
2025-01-21 13:53 Joonas Niilola
2025-01-21 13:53 Joonas Niilola
2025-01-21 13:53 Joonas Niilola
2025-01-21 13:53 Joonas Niilola
2025-01-21 13:53 Joonas Niilola
2024-09-19 18:34 Sam James
2024-09-19 18:34 Sam James
2024-09-19 18:34 Sam James
2024-06-02 8:44 Joonas Niilola
2024-06-02 8:44 Joonas Niilola
2024-04-04 15:05 Arthur Zamarin
2024-02-24 13:31 Joonas Niilola
2024-02-24 6:42 Joonas Niilola
2024-02-24 6:42 Joonas Niilola
2024-02-23 6:50 Sam James
2023-12-04 8:37 Sam James
2023-07-26 3:13 Sam James
2023-07-26 3:13 Sam James
2023-02-25 7:16 Arthur Zamarin
2023-02-25 5:56 Joonas Niilola
2023-02-25 5:56 Joonas Niilola
2022-11-18 8:17 Joonas Niilola
2022-11-18 8:17 Joonas Niilola
2022-09-09 6:20 Joonas Niilola
2022-09-09 6:20 Joonas Niilola
2022-09-09 6:20 Joonas Niilola
2022-09-09 6:20 Joonas Niilola
2022-09-09 6:20 Joonas Niilola
2022-08-20 11:40 Andreas Sturmlechner
2021-10-29 13:31 Yixun Lan
2021-05-16 18:56 Sam James
2021-05-15 19:20 Sam James
2021-03-02 14:54 Thomas Deutschmann
2021-02-12 16:20 Sam James
2020-12-15 7:18 Joonas Niilola
2020-12-15 7:18 Joonas Niilola
2020-12-03 13:21 Marek Szuba
2020-12-03 12:18 Marek Szuba
2020-12-03 7:59 Joonas Niilola
2020-07-05 6:49 Joonas Niilola
2020-06-07 6:34 Joonas Niilola
2020-06-06 16:36 Joonas Niilola
2020-06-06 16:36 Joonas Niilola
2020-02-11 11:56 Agostino Sarubbo
2020-02-10 8:18 Agostino Sarubbo
2020-02-10 8:16 Agostino Sarubbo
2020-01-09 5:09 Michał Górny
2018-03-26 19:22 Aaron Bauman
2018-03-26 19:22 Aaron Bauman
2018-02-09 16:37 Michał Górny
2018-02-09 16:37 Michał Górny
2018-02-09 16:37 Michał Górny
2018-02-09 16:37 Michał Górny
2018-02-09 16:37 Michał Górny
2018-02-09 16:37 Michał Górny
2018-02-09 16:37 Michał Górny
2017-05-07 18:33 Michał Górny
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1518194170.e081e240b3e713c8512f38d125c50fbbe250b6d2.mgorny@gentoo \
--to=mgorny@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox