dev-util/ydiff: New package, successor to dev-util/cdiff
authorSebastian Pipping <sping@gentoo.org>
Wed, 18 Mar 2020 00:27:54 +0000 (01:27 +0100)
committerSebastian Pipping <sping@gentoo.org>
Wed, 18 Mar 2020 00:42:10 +0000 (01:42 +0100)
Bug: https://bugs.gentoo.org/710538
Signed-off-by: Sebastian Pipping <sping@gentoo.org>
Package-Manager: Portage-2.3.92, Repoman-2.3.20

dev-util/ydiff/Manifest [new file with mode: 0644]
dev-util/ydiff/metadata.xml [new file with mode: 0644]
dev-util/ydiff/ydiff-1.1.ebuild [new file with mode: 0644]

diff --git a/dev-util/ydiff/Manifest b/dev-util/ydiff/Manifest
new file mode 100644 (file)
index 0000000..3a79630
--- /dev/null
@@ -0,0 +1 @@
+DIST ydiff-1.1.tar.gz 36357 BLAKE2B 4465c85132bb7c7d58c13dd79903610c74edec3b2b8ab8980918a1bf3a98f2b8387872a0974743503fcaad1e7ecb24c21d312a13d9aabe94780e9d623c35175a SHA512 575b3327edd3b8796f5f150fc7ebde32561e1782582e03e9b63bf9010998913fb8b00a8245d799f6cd5599e286f07f9e97e160f23606323d1a6f6059faa59bc9
diff --git a/dev-util/ydiff/metadata.xml b/dev-util/ydiff/metadata.xml
new file mode 100644 (file)
index 0000000..a42be58
--- /dev/null
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+       <maintainer type="person">
+               <email>sping@gentoo.org</email>
+               <name>Sebastian Pipping</name>
+       </maintainer>
+       <upstream>
+               <remote-id type="pypi">ydiff</remote-id>
+               <remote-id type="github">ymattw/ydiff</remote-id>
+       </upstream>
+</pkgmetadata>
diff --git a/dev-util/ydiff/ydiff-1.1.ebuild b/dev-util/ydiff/ydiff-1.1.ebuild
new file mode 100644 (file)
index 0000000..d3dfb7d
--- /dev/null
@@ -0,0 +1,30 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{6,7,8} )
+DISTUTILS_USE_SETUPTOOLS=no
+
+inherit distutils-r1
+
+DESCRIPTION="Colored, side-by-side diff terminal viewer (ex. cdiff)"
+HOMEPAGE="https://github.com/ymattw/ydiff"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+
+DEPEND="sys-apps/less"
+RDEPEND=""
+
+DOCS=( CHANGES.rst README.rst )
+
+RESTRICT="test"
+
+python_test() {
+       ${PYTHON} tests/test_ydiff.py || die "Unit tests failed."
+
+       ./tests/regression.sh || die "Regression tests failed."
+}