1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
8 DESCRIPTION="modern, legacy free, simple yet efficient vim-like editor"
9 HOMEPAGE="https://github.com/martanne/vis"
10 SRC_URI="https://github.com/martanne/vis/releases/download/v${PV}/vis-v${PV}.tar.gz -> ${P}.tar.gz
11 test? ( https://github.com/martanne/vis-test/releases/download/v${MY_PTV}/vis-test-${MY_PTV}.tar.gz -> vis-test-${MY_PTV}.tar.gz )"
14 KEYWORDS="amd64 arm x86"
15 IUSE="+ncurses selinux test tre"
16 RESTRICT="!test? ( test )"
18 #Note: vis is reported to also work with NetBSD curses
19 #TODO: >=dev-lang/lua-5.2 (needed for syntax highlighting and settings)
20 DEPEND="dev-libs/libtermkey
21 ncurses? ( sys-libs/ncurses:0= )
22 tre? ( dev-libs/tre:= )"
24 app-eselect/eselect-vi"
26 S="${WORKDIR}/vis-v${PV}"
31 mv "${WORKDIR}/vis-test-${MY_PTV}" test || die
32 if ! type -P vim &>/dev/null; then
33 sed -i 's/.*vim.*//' test/Makefile || die
37 sed -i 's|STRIP?=.*|STRIP=true|' Makefile || die
38 sed -i 's|${DOCPREFIX}/vis|${DOCPREFIX}|' Makefile || die
39 sed -i 's|DOCUMENTATION = LICENSE|DOCUMENTATION =|' Makefile || die
46 --prefix="${EPREFIX}"/usr \
47 --docdir="${EPREFIX}"/usr/share/doc/${PF} \
48 $(use_enable ncurses curses) \
49 $(use_enable selinux) \
50 $(use_enable tre) || die
54 einfo "Calling eselect vi update --if-unset"
55 eselect vi update --if-unset