Files
guru/app-misc/diff-so-fancy/diff-so-fancy-1.4.3.ebuild
Alessandro Barbieri 2c9d687513 app-misc/diff-so-fancy: add 1.4.3
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
2021-10-04 01:04:17 +02:00

38 lines
716 B
Bash

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