app-misc/diff-so-fancy: initial import

Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
Alessandro Barbieri
2021-05-03 08:23:10 +02:00
parent e3d04544b9
commit 4784c3a100
4 changed files with 61 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
SRC_URI="https://github.com/so-fancy/diff-so-fancy/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
DESCRIPTION="Good-lookin' diffs. Actually... nah... The best-lookin' diffs."
HOMEPAGE="https://github.com/so-fancy/diff-so-fancy"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
IUSE="test"
#RESTRICT="!test? ( test )"
RESTRICT="test" #investigate
RDEPEND=""
DEPEND="
${RDEPEND}
dev-lang/perl
"
BDEPEND="test? ( dev-util/bats )"
PATCHES=( "${FILESDIR}/fix-path.patch" )
DOCS=( README.md history.md pro-tips.md )
src_install() {
dobin "${PN}"
insinto "/usr/share/${PN}"
doins lib/*
einstalldocs
}
src_test() {
bats test || die
}