Gentoo Archives: gentoo-commits

From: Sebastian Pipping <sping@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/ydiff/
Date: Tue, 29 Nov 2022 00:43:26
Message-Id: 1669682555.137324be7e73c88b5972a06f0782ccdd2b7aa181.sping@gentoo
1 commit: 137324be7e73c88b5972a06f0782ccdd2b7aa181
2 Author: Sebastian Pipping <sping <AT> gentoo <DOT> org>
3 AuthorDate: Mon Nov 28 22:51:49 2022 +0000
4 Commit: Sebastian Pipping <sping <AT> gentoo <DOT> org>
5 CommitDate: Tue Nov 29 00:42:35 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=137324be
7
8 dev-util/ydiff: Python 3.11 + EAPI 8 + DistutilsNonPEP517Build
9
10 Signed-off-by: Sebastian Pipping <sping <AT> gentoo.org>
11
12 dev-util/ydiff/ydiff-1.2-r1.ebuild | 29 +++++++++++++++++++++++++++++
13 1 file changed, 29 insertions(+)
14
15 diff --git a/dev-util/ydiff/ydiff-1.2-r1.ebuild b/dev-util/ydiff/ydiff-1.2-r1.ebuild
16 new file mode 100644
17 index 000000000000..0eade4e715b1
18 --- /dev/null
19 +++ b/dev-util/ydiff/ydiff-1.2-r1.ebuild
20 @@ -0,0 +1,29 @@
21 +# Copyright 1999-2022 Gentoo Authors
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=8
25 +
26 +PYTHON_COMPAT=( python3_{8..11} )
27 +DISTUTILS_USE_PEP517=setuptools
28 +
29 +inherit distutils-r1
30 +
31 +DESCRIPTION="Colored, side-by-side diff terminal viewer (ex. cdiff)"
32 +HOMEPAGE="https://github.com/ymattw/ydiff"
33 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
34 +
35 +LICENSE="BSD"
36 +SLOT="0"
37 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
38 +
39 +RDEPEND="sys-apps/less"
40 +
41 +DOCS=( CHANGES.rst README.rst )
42 +
43 +RESTRICT="test"
44 +
45 +python_test() {
46 + ${PYTHON} tests/test_ydiff.py || die "Unit tests failed."
47 +
48 + ./tests/regression.sh || die "Regression tests failed."
49 +}