mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-09 15:13:31 -04:00
app-misc/diff-so-fancy: add 1.4.4
Closes: https://bugs.gentoo.org/819063 Signed-off-by: Takuya Wakazono <pastalian46@gmail.com>
This commit is contained in:
@@ -1 +1,2 @@
|
||||
DIST diff-so-fancy-1.4.3.tar.gz 51800 BLAKE2B e36a30e79d50f9dd0c151ab42e4192563ab0dc9aa30d0aa12e2cf85c29ef8acf9761cc7c19e0067ecf62f5243b667a7d438ab19aaa7150fd93613e11ecbfabf8 SHA512 9c85c0ffcb7235ad985377206e93e56bdac3926f029d8ab8a899a4391339f344049e9bfe4b77df0f2bda29720ab454378218ea3752b97f40b5ac7ba72a5fa047
|
||||
DIST diff-so-fancy-1.4.4.tar.gz 188528 BLAKE2B dd4811e17b6b8a0a5a38d105ed92facdfc9b62836995f1b9e87c05a0fe4129706a4552465971bb593105569008cb7f4f3a069294801c07d510a1d9d819475c13 SHA512 477ad58a55ebc765f525b7d16993af18ee5ccf0c9f2835f4a608c6a1a9afa3170f2071dd93b9009dc3c2dab06f700763ac7652d0bedb932a67af23abf4f8884e
|
||||
|
||||
56
app-misc/diff-so-fancy/diff-so-fancy-1.4.4.ebuild
Normal file
56
app-misc/diff-so-fancy/diff-so-fancy-1.4.4.ebuild
Normal file
@@ -0,0 +1,56 @@
|
||||
# Copyright 1999-2024 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"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND="dev-lang/perl"
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
test? (
|
||||
dev-util/bats-assert
|
||||
dev-util/bats-support
|
||||
)
|
||||
"
|
||||
BDEPEND="
|
||||
test? (
|
||||
dev-util/bats
|
||||
dev-vcs/git
|
||||
)
|
||||
"
|
||||
|
||||
DOCS=( README.md history.md pro-tips.md )
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# fix file paths
|
||||
sed -i "s|test_helper/bats-\(.*\)/load|${EPREFIX}/usr/share/bats-\1/load.bash|" \
|
||||
test/{bugs,diff-so-fancy,git-config}.bats || die
|
||||
sed -i "s|use lib .*;|use lib \"${EPREFIX}/usr/share/diff-so-fancy\";|" diff-so-fancy || die
|
||||
|
||||
# en_US locale is not always available, C is.
|
||||
sed -i "s/LC_CTYPE=.*/LC_CTYPE=C.UTF-8/" test/test_helper/util.bash || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin "${PN}"
|
||||
|
||||
insinto "/usr/share/${PN}"
|
||||
doins lib/*
|
||||
|
||||
einstalldocs
|
||||
}
|
||||
|
||||
src_test() {
|
||||
PERL5LIB=lib bats test || die
|
||||
}
|
||||
Reference in New Issue
Block a user