aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakuya Wakazono <pastalian46@gmail.com>2024-01-21 23:34:18 +0900
committerTakuya Wakazono <pastalian46@gmail.com>2024-01-21 23:34:27 +0900
commit8c35e64a7d0561cad798ab0b066bccfee7487fb0 (patch)
treed86efc3ec1bc2d7ca13e96064e0623a5a4802d05
parentsys-kernel/ugrd: Add 0.21.0 with improved arg parsing (diff)
downloadguru-8c35e64a7d0561cad798ab0b066bccfee7487fb0.tar.gz
guru-8c35e64a7d0561cad798ab0b066bccfee7487fb0.tar.bz2
guru-8c35e64a7d0561cad798ab0b066bccfee7487fb0.zip
app-misc/diff-so-fancy: add 1.4.4
Closes: https://bugs.gentoo.org/819063 Signed-off-by: Takuya Wakazono <pastalian46@gmail.com>
-rw-r--r--app-misc/diff-so-fancy/Manifest1
-rw-r--r--app-misc/diff-so-fancy/diff-so-fancy-1.4.4.ebuild56
2 files changed, 57 insertions, 0 deletions
diff --git a/app-misc/diff-so-fancy/Manifest b/app-misc/diff-so-fancy/Manifest
index c8987d0d1..134b6f998 100644
--- a/app-misc/diff-so-fancy/Manifest
+++ b/app-misc/diff-so-fancy/Manifest
@@ -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
diff --git a/app-misc/diff-so-fancy/diff-so-fancy-1.4.4.ebuild b/app-misc/diff-so-fancy/diff-so-fancy-1.4.4.ebuild
new file mode 100644
index 000000000..cc5da5429
--- /dev/null
+++ b/app-misc/diff-so-fancy/diff-so-fancy-1.4.4.ebuild
@@ -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
+}