Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/subunit/
Date: Mon, 07 Nov 2022 05:54:40
Message-Id: 1667800420.0342397b2cbdfd6111d3f4c2544e16ae0ae918a9.mgorny@gentoo
1 commit: 0342397b2cbdfd6111d3f4c2544e16ae0ae918a9
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Mon Nov 7 05:51:14 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Mon Nov 7 05:53:40 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0342397b
7
8 dev-python/subunit: Bump to 1.4.1
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/subunit/Manifest | 1 +
13 dev-python/subunit/subunit-1.4.1.ebuild | 96 +++++++++++++++++++++++++++++++++
14 2 files changed, 97 insertions(+)
15
16 diff --git a/dev-python/subunit/Manifest b/dev-python/subunit/Manifest
17 index eecdb73522a1..d0a11cdf067e 100644
18 --- a/dev-python/subunit/Manifest
19 +++ b/dev-python/subunit/Manifest
20 @@ -1 +1,2 @@
21 DIST subunit-1.4.0_p20210729.tar.gz 112644 BLAKE2B 56e785c029f3f2896d0ed3d8005c37403e6aa32d05b653db0e3b679d2157820558e578b53133f4f79404a660f37a710aeeec03ff941fd7cd0819020a0d474515 SHA512 90b1ad071fb5246a7446a4c999142566b9d96c39838905e9020b80f2f0aba0b86dd5185bbd25ff7fc65f69ae68e1e53dfde5b2de05755aa97db9248c6faaa9d7
22 +DIST subunit-1.4.1.gh.tar.gz 112188 BLAKE2B dd09882f13b52e8c1f34f91ee49726f75f473a042b0e025704eb95681e4ff3f313fc6b2f9fbcc78f4fb75c88e3b2a828ffee0f7dfaaa8ad2bff9bfb14bd5c0ea SHA512 c21ab0791ccc92e47df5d741deaae56fffe792777958193727f47c2739135fb77880d30b106e525239c0c35841834dd937e2b30fce27fbe73ca9116753147a65
23
24 diff --git a/dev-python/subunit/subunit-1.4.1.ebuild b/dev-python/subunit/subunit-1.4.1.ebuild
25 new file mode 100644
26 index 000000000000..9f172a5eae8c
27 --- /dev/null
28 +++ b/dev-python/subunit/subunit-1.4.1.ebuild
29 @@ -0,0 +1,96 @@
30 +# Copyright 1999-2022 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=8
34 +
35 +DISTUTILS_USE_PEP517=setuptools
36 +PYTHON_COMPAT=( python3_{8..11} pypy3 )
37 +
38 +inherit distutils-r1 multilib-minimal autotools
39 +
40 +DESCRIPTION="A streaming protocol for test results"
41 +HOMEPAGE="
42 + https://launchpad.net/subunit/
43 + https://pypi.org/project/python-subunit/
44 +"
45 +SRC_URI="
46 + https://github.com/testing-cabal/subunit/archive/${PV}.tar.gz
47 + -> ${P}.gh.tar.gz
48 +"
49 +
50 +LICENSE="Apache-2.0 BSD"
51 +SLOT="0"
52 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
53 +IUSE="static-libs test"
54 +RESTRICT="!test? ( test )"
55 +
56 +RDEPEND="
57 + >=dev-python/testtools-0.9.34[${PYTHON_USEDEP}]
58 + dev-python/extras[${PYTHON_USEDEP}]
59 + dev-lang/perl:=
60 +"
61 +DEPEND="
62 + ${RDEPEND}
63 + >=dev-libs/check-0.9.11[${MULTILIB_USEDEP}]
64 + >=dev-util/cppunit-1.13.2[${MULTILIB_USEDEP}]
65 + >=virtual/pkgconfig-0-r1
66 + test? (
67 + dev-python/fixtures[${PYTHON_USEDEP}]
68 + dev-python/hypothesis[${PYTHON_USEDEP}]
69 + dev-python/testscenarios[${PYTHON_USEDEP}]
70 + )
71 +"
72 +
73 +PATCHES=(
74 + "${FILESDIR}/subunit-1.4.0-werror.patch"
75 +)
76 +
77 +src_prepare() {
78 + # Install perl modules in vendor_perl, bug 534654.
79 + export PERL_INSTALLDIRS=vendor
80 +
81 + mv all_tests.py python/ || die
82 +
83 + distutils-r1_src_prepare
84 + eautoreconf
85 + multilib_copy_sources
86 +}
87 +
88 +multilib_src_configure() {
89 + ECONF_SOURCE=${S} \
90 + econf \
91 + --enable-shared \
92 + $(use_enable static-libs static)
93 +}
94 +
95 +multilib_src_compile() {
96 + default
97 + multilib_is_native_abi && distutils-r1_src_compile
98 +}
99 +
100 +python_test() {
101 + cd python || die
102 + "${EPYTHON}" -m testtools.run -v all_tests.test_suite ||
103 + die "Testing failed with ${EPYTHON}"
104 +}
105 +
106 +multilib_src_test() {
107 + multilib_is_native_abi && distutils-r1_src_test
108 +}
109 +
110 +multilib_src_install() {
111 + local targets=(
112 + install-include_subunitHEADERS
113 + install-pcdataDATA
114 + install-exec-local
115 + install-libLTLIBRARIES
116 + )
117 + emake DESTDIR="${D}" "${targets[@]}"
118 +
119 + multilib_is_native_abi && distutils-r1_src_install
120 +}
121 +
122 +multilib_src_install_all() {
123 + einstalldocs
124 + find "${D}" -name '*.la' -delete || die
125 +}