summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Pipping <sping@gentoo.org>2023-08-21 23:55:01 +0200
committerSebastian Pipping <sping@gentoo.org>2023-08-21 23:55:01 +0200
commit19cd01b4a615b73d21c94f684536276335c6992e (patch)
tree7e73b6e179f994ee535722f2eae8c91421937ada
parentdev-util/gitlab-cli: add 1.32.0 (diff)
downloadgentoo-19cd01b4a615b73d21c94f684536276335c6992e.tar.gz
gentoo-19cd01b4a615b73d21c94f684536276335c6992e.tar.bz2
gentoo-19cd01b4a615b73d21c94f684536276335c6992e.zip
app-misc/icdiff: 2.0.7
Signed-off-by: Sebastian Pipping <sping@gentoo.org>
-rw-r--r--app-misc/icdiff/Manifest1
-rw-r--r--app-misc/icdiff/files/icdiff-2.0.7-tests.patch37
-rw-r--r--app-misc/icdiff/icdiff-2.0.7.ebuild29
3 files changed, 67 insertions, 0 deletions
diff --git a/app-misc/icdiff/Manifest b/app-misc/icdiff/Manifest
index 3e848abd44a7..3c8e2fb889a7 100644
--- a/app-misc/icdiff/Manifest
+++ b/app-misc/icdiff/Manifest
@@ -1 +1,2 @@
DIST icdiff-2.0.6.tar.gz 39715 BLAKE2B 931799040c158c522b3788941bddaef074a5e769cc56b6d80ca9515ee0c437e0ec0b7453c7409133c5567b98e7d41355e1d9f647d1939c78d07c2bf4c010fa5e SHA512 23ed93cc68ae44e661d61cef7e489249fc39e9f8fd18cac5551e89a713aef8cd2ecb37b0f301f543a4ba7003c74b5a311430ab8666760a76ee8441a4ac920ff5
+DIST icdiff-2.0.7.tar.gz 40150 BLAKE2B 54e8528a5e0fec305787a42657dc6f54849a1732509b231ecf948856f4e681ba75654bedf7bc964d96a2b1c2e95d672c837e1ebc55c9a291f572c91600a2e4aa SHA512 0fb3a8f91120ecd5dd55254fdea0f055bc46905c3b257efcd1b8b0b47927b2b2575b7255e3e260c97b76cd2f40548c8a3653a622a7a1aaac528a4cdae64a8b16
diff --git a/app-misc/icdiff/files/icdiff-2.0.7-tests.patch b/app-misc/icdiff/files/icdiff-2.0.7-tests.patch
new file mode 100644
index 000000000000..3ef2f83a20f6
--- /dev/null
+++ b/app-misc/icdiff/files/icdiff-2.0.7-tests.patch
@@ -0,0 +1,37 @@
+From 741d8b24bf7694d535b68fdbe23db6c33f4a5420 Mon Sep 17 00:00:00 2001
+From: Sebastian Pipping <sebastian@pipping.org>
+Date: Mon, 21 Aug 2023 23:52:20 +0200
+Subject: [PATCH] test.sh: Stop running flake8 and black
+
+---
+ test.sh | 14 --------------
+ 1 file changed, 14 deletions(-)
+
+diff --git a/test.sh b/test.sh
+index 4fc09fb..fb22fb0 100755
+--- a/test.sh
++++ b/test.sh
+@@ -213,20 +213,6 @@ function ensure_installed() {
+ fi
+ }
+
+-ensure_installed "black"
+-echo 'Running black formatter...'
+-if ! black icdiff --quiet --line-length 79 --check; then
+- echo ""
+- echo 'Consider running `black icdiff --line-length 79`'
+- fail
+-fi
+-
+-ensure_installed "flake8"
+-echo 'Running flake8 linter...'
+-if ! flake8 icdiff; then
+- fail
+-fi
+-
+ if ! $REGOLD; then
+ echo PASS
+ fi
+--
+2.41.0
+
diff --git a/app-misc/icdiff/icdiff-2.0.7.ebuild b/app-misc/icdiff/icdiff-2.0.7.ebuild
new file mode 100644
index 000000000000..730d47332909
--- /dev/null
+++ b/app-misc/icdiff/icdiff-2.0.7.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DISTUTILS_USE_SETUPTOOLS=rdepend
+PYTHON_COMPAT=( python3_{9..11} pypy3 )
+
+inherit distutils-r1
+
+DESCRIPTION="Colourized diff that supports side-by-side diffing"
+HOMEPAGE="https://www.jefftk.com/icdiff"
+SRC_URI="https://github.com/jeffkaufman/${PN}/archive/release-${PV}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/${PN}-release-${PV}"
+
+LICENSE="PSF-2"
+SLOT="0"
+KEYWORDS="~amd64"
+
+PATCHES=(
+ "${FILESDIR}/icdiff-1.9.5-tests.patch"
+ "${FILESDIR}/icdiff-2.0.7-tests.patch"
+)
+
+DOCS=(README.md ChangeLog)
+
+python_test() {
+ bash test.sh "${EPYTHON%.*}" || die "Tests failed with ${EPYTHON}"
+}