diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-11-14 03:02:32 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-11-14 03:02:32 +0000 |
commit | d3c7d3e5f9607edef1a795ccc502ab3eb3121165 (patch) | |
tree | d36ccc4ef4aa53927a8cd66bc5d3ab06fe1bdd24 /dev-python/python-subunit | |
parent | 4dc2f97ed84159736ecfb5dea5485e83b27810d1 (diff) |
gentoo auto-resync : 14:11:2024 - 03:02:32
Diffstat (limited to 'dev-python/python-subunit')
-rw-r--r-- | dev-python/python-subunit/Manifest | 4 | ||||
-rw-r--r-- | dev-python/python-subunit/files/subunit-1.4.0-werror.patch | 34 | ||||
-rw-r--r-- | dev-python/python-subunit/metadata.xml | 17 | ||||
-rw-r--r-- | dev-python/python-subunit/python-subunit-1.4.4.ebuild | 93 |
4 files changed, 148 insertions, 0 deletions
diff --git a/dev-python/python-subunit/Manifest b/dev-python/python-subunit/Manifest new file mode 100644 index 000000000000..f54d39067eb6 --- /dev/null +++ b/dev-python/python-subunit/Manifest @@ -0,0 +1,4 @@ +AUX subunit-1.4.0-werror.patch 1307 BLAKE2B e714e82827c0c30b514ea9f43dfcff1702bd93b9e4f1e5c44029a84deb3de8c84a351baec097b545dc00ac7f0d56f85b917a53c23d501a8b93c35632d43c14d1 SHA512 444b4d2755b395f904dd341992cd2d7df60924b4111e552b6a61b6c6113397b3b6e4dd12b2bab7d408a306b3037e361217c7cda5473d94ca746ceab4e1136cbd +DIST subunit-1.4.4.gh.tar.gz 105357 BLAKE2B 5937c62357d9cb70e25242aa7678d89f79fed3d8d28fb5306bc21e28d643665e563078a84a9dd64b9192809e542d69218154227c8e5d281c861085d3175c73c4 SHA512 a666e45951afab70ea85cf9614d5e60c8884c0e2d7987e690bf7acedec5c544c412407b02134a125b4dca8772c0b1ce17fdbd9546d97ef06592119ec49b2a21f +EBUILD python-subunit-1.4.4.ebuild 1957 BLAKE2B 15c121e366f466a943c4da530f7442d0a6c5a2278e84c2b8bd1fc31c4081724ed630f4ab10b5c65ceb6549c359b6d192276ef3ee90495ccd199600130c25caea SHA512 6c08903e4a88d12efe9456a06d28ac1e2c8dfc44e0d878ebc3778e8e6d2dbd333d88cae735a886e1403cec5d7b36395b7ff9a069e1c0b3d72dde877d9d3f10ed +MISC metadata.xml 536 BLAKE2B a2d8868bf91b862ea393f908c5ae6924dc70fcfa5e2d58692d61c1a45ae33bb9301c82fc032c5951491857da923bdba56f2ed11c149df7b11a4fd9037d1e5a23 SHA512 15d6a7804d14048e959dcaee03bcb2069110ab930368b2b9c31c78b610fd35beb1f714e3d109de2903dba62600b0013d6ef7f5794e828dcc6b34755e35d1836f diff --git a/dev-python/python-subunit/files/subunit-1.4.0-werror.patch b/dev-python/python-subunit/files/subunit-1.4.0-werror.patch new file mode 100644 index 000000000000..e64f74a655ef --- /dev/null +++ b/dev-python/python-subunit/files/subunit-1.4.0-werror.patch @@ -0,0 +1,34 @@ +# https://bugs.gentoo.org/744313 + +--- a/configure.ac ++++ b/configure.ac +@@ -4,11 +4,11 @@ + m4_define([SUBUNIT_VERSION], + m4_defn([SUBUNIT_MAJOR_VERSION]).m4_defn([SUBUNIT_MINOR_VERSION]).m4_defn([SUBUNIT_MICRO_VERSION])) + AC_PREREQ([2.59]) + AC_INIT([subunit], [SUBUNIT_VERSION], [subunit-dev@lists.launchpad.net]) + AC_CONFIG_SRCDIR([c/lib/child.c]) +-AM_INIT_AUTOMAKE([-Wall -Werror foreign subdir-objects]) ++AM_INIT_AUTOMAKE([-Wall foreign subdir-objects]) + AC_CONFIG_MACRO_DIR([m4]) + [SUBUNIT_MAJOR_VERSION]=SUBUNIT_MAJOR_VERSION + [SUBUNIT_MINOR_VERSION]=SUBUNIT_MINOR_VERSION + [SUBUNIT_MICRO_VERSION]=SUBUNIT_MICRO_VERSION + [SUBUNIT_VERSION]=SUBUNIT_VERSION +@@ -26,14 +26,14 @@ + AC_PROG_LIBTOOL + AM_PATH_PYTHON + + AS_IF([test "$GCC" = "yes"], + [ +- SUBUNIT_CFLAGS="-Wall -Werror -Wextra -Wstrict-prototypes " ++ SUBUNIT_CFLAGS="-Wall -Wextra -Wstrict-prototypes " + SUBUNIT_CFLAGS="$SUBUNIT_CFLAGS -Wmissing-prototypes -Wwrite-strings " + SUBUNIT_CFLAGS="$SUBUNIT_CFLAGS -Wno-variadic-macros " +- SUBUNIT_CXXFLAGS="-Wall -Werror -Wextra -Wwrite-strings -Wno-variadic-macros" ++ SUBUNIT_CXXFLAGS="-Wall -Wextra -Wwrite-strings -Wno-variadic-macros" + ]) + + AM_CFLAGS="$SUBUNIT_CFLAGS -I\$(top_srcdir)/c/include" + AM_CXXFLAGS="$SUBUNIT_CXXFLAGS -I\$(top_srcdir)/c/include" + AC_SUBST(AM_CFLAGS) diff --git a/dev-python/python-subunit/metadata.xml b/dev-python/python-subunit/metadata.xml new file mode 100644 index 000000000000..d7e73ee6e3af --- /dev/null +++ b/dev-python/python-subunit/metadata.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>python@gentoo.org</email> + <name>Python</name> + </maintainer> + <maintainer type="project"> + <email>openstack@gentoo.org</email> + <name>Openstack</name> + </maintainer> + <upstream> + <remote-id type="launchpad">subunit</remote-id> + <remote-id type="pypi">python-subunit</remote-id> + <remote-id type="github">testing-cabal/subunit</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-python/python-subunit/python-subunit-1.4.4.ebuild b/dev-python/python-subunit/python-subunit-1.4.4.ebuild new file mode 100644 index 000000000000..df59299dc819 --- /dev/null +++ b/dev-python/python-subunit/python-subunit-1.4.4.ebuild @@ -0,0 +1,93 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{10..13} pypy3 ) + +inherit distutils-r1 multilib-minimal autotools + +MY_P=subunit-${PV} +DESCRIPTION="A streaming protocol for test results" +HOMEPAGE=" + https://launchpad.net/subunit/ + https://pypi.org/project/python-subunit/ +" +SRC_URI=" + https://github.com/testing-cabal/subunit/archive/${PV}.tar.gz + -> ${MY_P}.gh.tar.gz +" +S=${WORKDIR}/${MY_P} + +LICENSE="Apache-2.0 BSD" +SLOT="0" +KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86" +IUSE="static-libs test" +RESTRICT="!test? ( test )" + +RDEPEND=" + >=dev-python/testtools-0.9.34[${PYTHON_USEDEP}] + dev-python/iso8601[${PYTHON_USEDEP}] +" +DEPEND=" + ${RDEPEND} + >=dev-libs/check-0.9.11[${MULTILIB_USEDEP}] + >=dev-util/cppunit-1.13.2[${MULTILIB_USEDEP}] + >=virtual/pkgconfig-0-r1 + test? ( + dev-python/fixtures[${PYTHON_USEDEP}] + dev-python/hypothesis[${PYTHON_USEDEP}] + dev-python/testscenarios[${PYTHON_USEDEP}] + ) +" + +PATCHES=( + "${FILESDIR}/subunit-1.4.0-werror.patch" +) + +src_prepare() { + mv all_tests.py python/ || die + + distutils-r1_src_prepare + eautoreconf + multilib_copy_sources +} + +multilib_src_configure() { + ECONF_SOURCE=${S} \ + econf \ + --enable-shared \ + $(use_enable static-libs static) +} + +multilib_src_compile() { + default + multilib_is_native_abi && distutils-r1_src_compile +} + +python_test() { + cd python || die + "${EPYTHON}" -m testtools.run -v all_tests.test_suite || + die "Testing failed with ${EPYTHON}" +} + +multilib_src_test() { + multilib_is_native_abi && distutils-r1_src_test +} + +multilib_src_install() { + local targets=( + install-include_subunitHEADERS + install-pcdataDATA + install-libLTLIBRARIES + ) + emake DESTDIR="${D}" "${targets[@]}" + + multilib_is_native_abi && distutils-r1_src_install +} + +multilib_src_install_all() { + einstalldocs + find "${D}" -name '*.la' -delete || die +} |