summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2023-02-21 16:45:19 +0000
committerSam James <sam@gentoo.org>2023-02-21 16:45:32 +0000
commit796263ba8fad828f5e37f0fd56a1a97498e8adc3 (patch)
treebbd576bd8a477f5d30e9d97811e7172317c8168d /dev-python/patch-ng
parentdev-python/patch-ng: enable py3.11 (diff)
downloadgentoo-796263ba8fad828f5e37f0fd56a1a97498e8adc3.tar.gz
gentoo-796263ba8fad828f5e37f0fd56a1a97498e8adc3.tar.bz2
gentoo-796263ba8fad828f5e37f0fd56a1a97498e8adc3.zip
dev-python/patch-ng: PEP517, pypi.eclass, gh distfile name
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-python/patch-ng')
-rw-r--r--dev-python/patch-ng/Manifest1
-rw-r--r--dev-python/patch-ng/patch-ng-1.17.4-r1.ebuild23
2 files changed, 24 insertions, 0 deletions
diff --git a/dev-python/patch-ng/Manifest b/dev-python/patch-ng/Manifest
index 1db7aa9b24b4..cbaba8cda024 100644
--- a/dev-python/patch-ng/Manifest
+++ b/dev-python/patch-ng/Manifest
@@ -1 +1,2 @@
+DIST patch-ng-1.17.4.gh.tar.gz 168306 BLAKE2B 78067e3c3d296a21f8fd4155fe770245ba4457cb9e37003f5e7667c30827878a8c06d62c77bb1fdaf61b96a813612a7c39800d7040b13a9d18f0baeccbd86ba1 SHA512 919c04c3adfa36672f3db5f1761a12ccbb08ccfb890015bb0d27b1801c8c7dba99c4da01674b269703a7cbf39df5889f5c446551bb4cf7039dc383c23d8a5db3
DIST patch-ng-1.17.4.tar.gz 168306 BLAKE2B 78067e3c3d296a21f8fd4155fe770245ba4457cb9e37003f5e7667c30827878a8c06d62c77bb1fdaf61b96a813612a7c39800d7040b13a9d18f0baeccbd86ba1 SHA512 919c04c3adfa36672f3db5f1761a12ccbb08ccfb890015bb0d27b1801c8c7dba99c4da01674b269703a7cbf39df5889f5c446551bb4cf7039dc383c23d8a5db3
diff --git a/dev-python/patch-ng/patch-ng-1.17.4-r1.ebuild b/dev-python/patch-ng/patch-ng-1.17.4-r1.ebuild
new file mode 100644
index 000000000000..8c7d3ed6641a
--- /dev/null
+++ b/dev-python/patch-ng/patch-ng-1.17.4-r1.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{9..11} )
+inherit distutils-r1
+
+DESCRIPTION="Library to parse and apply unified diffs, fork of dev-python/patch"
+HOMEPAGE="https://github.com/conan-io/python-patch-ng https://pypi.org/project/patch-ng/"
+SRC_URI="https://github.com/conan-io/python-patch-ng/archive/${PV}.tar.gz -> ${P}.gh.tar.gz"
+S="${WORKDIR}/python-${P}"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+
+distutils_enable_tests unittest
+
+python_test() {
+ "${EPYTHON}" -m unittest -v tests/run_tests.py || die "Tests failed under ${EPYTHON}"
+}