Diff vis-0.5 with a vis-9999

/usr/portage/app-editors/vis/vis-9999.ebuild 2020-02-23 17:39:00.000000000 +0300
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4 4
EAPI=6
5

  
6
MY_PTV=0.3
5
inherit git-r3
7 6

  
8 7
DESCRIPTION="modern, legacy free, simple yet efficient vim-like editor"
9 8
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 )"
9
EGIT_REPO_URI="https://github.com/martanne/vis.git"
12 10
LICENSE="ISC"
13 11
SLOT="0"
14
KEYWORDS="amd64 arm x86"
12
KEYWORDS=""
15 13
IUSE="+ncurses selinux test tre"
16 14
RESTRICT="!test? ( test )"
17 15

  
......
23 21
RDEPEND="${DEPEND}
24 22
	app-eselect/eselect-vi"
25 23

  
26
S="${WORKDIR}/vis-v${PV}"
27

  
28 24
src_prepare() {
29
	if use test; then
30
		rm -r test || die
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
34
		fi
25
	if use test && ! type -P vim &>/dev/null; then
26
		sed -i 's/.*vim.*//' "${S}/test/Makefile" || die
35 27
	fi
36 28

  
37 29
	sed -i 's|STRIP?=.*|STRIP=true|' Makefile || die
Thank you!