1 |
commit: e081e240b3e713c8512f38d125c50fbbe250b6d2 |
2 |
Author: Haelwenn (lanodan) Monnier <contact <AT> hacktivis <DOT> me> |
3 |
AuthorDate: Wed Oct 25 22:57:28 2017 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Feb 9 16:36:10 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e081e240 |
7 |
|
8 |
app-editors/vis: add FEATURES=test |
9 |
|
10 |
app-editors/vis/Manifest | 1 + |
11 |
app-editors/vis/vis-0.3.ebuild | 17 +++++++++++++++-- |
12 |
app-editors/vis/vis-9999.ebuild | 8 +++++++- |
13 |
3 files changed, 23 insertions(+), 3 deletions(-) |
14 |
|
15 |
diff --git a/app-editors/vis/Manifest b/app-editors/vis/Manifest |
16 |
index b4b954cd9cf..a7f843902fe 100644 |
17 |
--- a/app-editors/vis/Manifest |
18 |
+++ b/app-editors/vis/Manifest |
19 |
@@ -1 +1,2 @@ |
20 |
DIST vis-0.3.tar.gz 334216 BLAKE2B 8cf89f1e3292beb5bf7bc9495e75b795225a4a29f4d949f212daf5dd42958f347b1400a0fd1bf00014b28cfbd424bb04152c35ef9025384a746e59143fc872bb SHA512 e1ca009bd7569f22dacf7464791f9f4499695d15d6e38e1be491d39e7ebe0530de643be5c1e7647e9beb7969a17efab6545d3e719fe8cf311562e89d636bba62 |
21 |
+DIST vis-test-0.1.tar.gz 95274 BLAKE2B e268abda50e11809d349778bb517f9be884d6d4ef8b940b5027adf9d37d091eda7fc6e274945998a9c35df372a0fd2ad499c2b686f1fe6761b54aec397b2b9aa SHA512 433a67892f27eb01f3ea6224e1ded393cd949b4d60f7c14656fdd526c02d2b309f63d39887d8d7ba11cbad3e183ab3cd1a913ac40aa29eadb7fa700eb76424b6 |
22 |
|
23 |
diff --git a/app-editors/vis/vis-0.3.ebuild b/app-editors/vis/vis-0.3.ebuild |
24 |
index e6ef1b66306..4f5eded38a7 100644 |
25 |
--- a/app-editors/vis/vis-0.3.ebuild |
26 |
+++ b/app-editors/vis/vis-0.3.ebuild |
27 |
@@ -3,13 +3,16 @@ |
28 |
|
29 |
EAPI=5 |
30 |
|
31 |
+MY_PTV=0.1 |
32 |
+ |
33 |
DESCRIPTION="modern, legacy free, simple yet efficient vim-like editor" |
34 |
HOMEPAGE="https://github.com/martanne/vis" |
35 |
-SRC_URI="https://github.com/martanne/vis/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
36 |
+SRC_URI="https://github.com/martanne/vis/archive/v${PV}.tar.gz -> ${P}.tar.gz |
37 |
+ test? ( https://github.com/martanne/vis-test/archive/v${MY_PTV}.tar.gz -> vis-test-${MY_PTV}.tar.gz )" |
38 |
LICENSE="ISC" |
39 |
SLOT="0" |
40 |
KEYWORDS="~amd64 ~x86" |
41 |
-IUSE="+ncurses selinux tre" |
42 |
+IUSE="+ncurses selinux test tre" |
43 |
|
44 |
#Note: vis is reported to also work with NetBSD curses |
45 |
#TODO: >=dev-lang/lua-5.2 (needed for syntax highlighting and settings) |
46 |
@@ -18,6 +21,16 @@ DEPEND=" dev-libs/libtermkey |
47 |
tre? ( dev-libs/tre:= )" |
48 |
RDEPEND="${DEPEND}" |
49 |
|
50 |
+src_prepare() { |
51 |
+ if use test; then |
52 |
+ rm -r test || die |
53 |
+ mv "${WORKDIR}/vis-test-${MY_PTV}" test || die |
54 |
+ if ! type -P vim &>/dev/null; then |
55 |
+ sed -i 's/.*vim.*//' test/Makefile || die |
56 |
+ fi |
57 |
+ fi |
58 |
+} |
59 |
+ |
60 |
src_configure() { |
61 |
econf \ |
62 |
$(use_enable ncurses curses) \ |
63 |
|
64 |
diff --git a/app-editors/vis/vis-9999.ebuild b/app-editors/vis/vis-9999.ebuild |
65 |
index 55adf200601..1826f178662 100644 |
66 |
--- a/app-editors/vis/vis-9999.ebuild |
67 |
+++ b/app-editors/vis/vis-9999.ebuild |
68 |
@@ -10,7 +10,7 @@ EGIT_REPO_URI="https://github.com/martanne/vis.git" |
69 |
LICENSE="ISC" |
70 |
SLOT="0" |
71 |
KEYWORDS="" |
72 |
-IUSE="+ncurses selinux tre" |
73 |
+IUSE="+ncurses selinux test tre" |
74 |
|
75 |
#Note: vis is reported to also work with NetBSD curses |
76 |
#TODO: >=dev-lang/lua-5.2 (needed for syntax highlighting and settings) |
77 |
@@ -19,6 +19,12 @@ DEPEND=" dev-libs/libtermkey |
78 |
tre? ( dev-libs/tre:= )" |
79 |
RDEPEND="${DEPEND}" |
80 |
|
81 |
+src_prepare() { |
82 |
+ if use test && ! type -P vim &>/dev/null; then |
83 |
+ sed -i 's/.*vim.*//' "${S}/test/Makefile" || die |
84 |
+ fi |
85 |
+} |
86 |
+ |
87 |
src_configure() { |
88 |
econf \ |
89 |
$(use_enable ncurses curses) \ |