commit:     27ef8bc796486ac2f976efc129947b7da6c682e2
Author:     Haelwenn (lanodan) Monnier <contact <AT> hacktivis <DOT> me>
AuthorDate: Fri Feb  9 15:41:10 2018 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Feb  9 16:36:12 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=27ef8bc7

app-editors/vis: Bump to version 0.4

 app-editors/vis/Manifest       |  2 ++
 app-editors/vis/vis-0.4.ebuild | 53 ++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 55 insertions(+)

diff --git a/app-editors/vis/Manifest b/app-editors/vis/Manifest
index a7f843902fe..14a092e5d28 100644
--- a/app-editors/vis/Manifest
+++ b/app-editors/vis/Manifest
@@ -1,2 +1,4 @@
 DIST vis-0.3.tar.gz 334216 BLAKE2B 
8cf89f1e3292beb5bf7bc9495e75b795225a4a29f4d949f212daf5dd42958f347b1400a0fd1bf00014b28cfbd424bb04152c35ef9025384a746e59143fc872bb
 SHA512 
e1ca009bd7569f22dacf7464791f9f4499695d15d6e38e1be491d39e7ebe0530de643be5c1e7647e9beb7969a17efab6545d3e719fe8cf311562e89d636bba62
+DIST vis-0.4.tar.gz 381046 BLAKE2B 
612d9f17c5ffb00be9e5c14da0d52257e55e53250cb9ba80750feaf5d90caa53aed0f02e32413a10f161e121019cf758902158ddeac09c2516d18779f4264cda
 SHA512 
d8fcf667ecad7b32752d6c5dbd004544e1a9283775d54d93c24ce8f314b98154aed5c6014cc03223d8427c2b1e3fd0d4b348dfa12ce30236fddd93b34521ee5f
 DIST vis-test-0.1.tar.gz 95274 BLAKE2B 
e268abda50e11809d349778bb517f9be884d6d4ef8b940b5027adf9d37d091eda7fc6e274945998a9c35df372a0fd2ad499c2b686f1fe6761b54aec397b2b9aa
 SHA512 
433a67892f27eb01f3ea6224e1ded393cd949b4d60f7c14656fdd526c02d2b309f63d39887d8d7ba11cbad3e183ab3cd1a913ac40aa29eadb7fa700eb76424b6
+DIST vis-test-0.2.tar.gz 97770 BLAKE2B 
9f8e31eb70ab8f9ce089f66ef29520e8250e02de375f9f8f0e33722c6a392bc6e04e7122728826708b305fb439c2b39f7fe3e233d7be162930aa46bf31bdb005
 SHA512 
892effa08c80c75e78eeb993ba8a0ddc110cc6f654fa1bf970454c35c839e9467b0ab41578f49af1fba0514c61f887fa044b9d01ab58f4dd749582a9550a2c29

diff --git a/app-editors/vis/vis-0.4.ebuild b/app-editors/vis/vis-0.4.ebuild
new file mode 100644
index 00000000000..576e28a5680
--- /dev/null
+++ b/app-editors/vis/vis-0.4.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+MY_PTV=0.2
+
+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
+       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 test tre"
+
+#Note: vis is reported to also work with NetBSD curses
+#TODO: >=dev-lang/lua-5.2 (needed for syntax highlighting and settings)
+DEPEND="dev-libs/libtermkey
+       ncurses? ( sys-libs/ncurses:0= )
+       tre? ( dev-libs/tre:= )"
+RDEPEND="${DEPEND}
+       app-eselect/eselect-vi"
+
+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) \
+               $(use_enable selinux) \
+               $(use_enable tre)
+}
+
+update_symlinks() {
+       einfo "Calling eselect vi update --if-unset…"
+       eselect vi update --if-unset
+}
+
+pkg_postrm() {
+       update_symlinks
+}
+
+pkg_postinst() {
+       update_symlinks
+}

Reply via email to