Diff vis-0.5 with a vis-9999

/usr/portage/app-editors/vis/vis-9999.ebuild 2018-02-09 20:08:00.000000000 +0300
1
# Copyright 1999-2018 Gentoo Foundation
1
# Copyright 1999-2017 Gentoo Foundation
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 ~x86"
12
KEYWORDS=""
15 13
IUSE="+ncurses selinux test tre"
16 14

  
17 15
#Note: vis is reported to also work with NetBSD curses
......
22 20
RDEPEND="${DEPEND}
23 21
	app-eselect/eselect-vi"
24 22

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

  
27 23
src_prepare() {
28
	if use test; then
29
		rm -r test || die
30
		mv "${WORKDIR}/vis-test-${MY_PTV}" test || die
31
		if ! type -P vim &>/dev/null; then
32
			sed -i 's/.*vim.*//' test/Makefile || die
33
		fi
24
	if use test && ! type -P vim &>/dev/null; then
25
		sed -i 's/.*vim.*//' "${S}/test/Makefile" || die
34 26
	fi
35 27

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