summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Pipping <sping@gentoo.org>2024-04-11 23:32:05 +0200
committerSebastian Pipping <sping@gentoo.org>2024-04-11 23:44:31 +0200
commita092659b0ff025f0e517160e5249198a64a562cc (patch)
treec712b308edb239e6e5d5d8c8e2d417c97b9897cc /app-misc
parentapp-arch/snappy: add 1.2.0 (diff)
downloadgentoo-a092659b0ff025f0e517160e5249198a64a562cc.tar.gz
gentoo-a092659b0ff025f0e517160e5249198a64a562cc.tar.bz2
gentoo-a092659b0ff025f0e517160e5249198a64a562cc.zip
app-misc/icdiff: PEP 517 + EAPI 8 + Python 3.12
Closes: https://bugs.gentoo.org/909881 Signed-off-by: Sebastian Pipping <sping@gentoo.org>
Diffstat (limited to 'app-misc')
-rw-r--r--app-misc/icdiff/icdiff-2.0.7-r1.ebuild29
1 files changed, 29 insertions, 0 deletions
diff --git a/app-misc/icdiff/icdiff-2.0.7-r1.ebuild b/app-misc/icdiff/icdiff-2.0.7-r1.ebuild
new file mode 100644
index 000000000000..8b8fd9dff54e
--- /dev/null
+++ b/app-misc/icdiff/icdiff-2.0.7-r1.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{9..12} pypy3 )
+DISTUTILS_USE_PEP517=setuptools
+
+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}"
+}