diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-10-05 07:19:12 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-10-05 07:19:12 +0100 |
commit | 315f94518df5e89b0990f56d7200f52d67aeec51 (patch) | |
tree | 1ab85f2feb77b909d29795e602f9dbf0c5711bcd /dev-util/rbtools/rbtools-3.1.2.ebuild | |
parent | 5b84ef1b7530528af1eda8310641c6396df8143c (diff) |
gentoo auto-resync : 05:10:2022 - 07:19:11
Diffstat (limited to 'dev-util/rbtools/rbtools-3.1.2.ebuild')
-rw-r--r-- | dev-util/rbtools/rbtools-3.1.2.ebuild | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/dev-util/rbtools/rbtools-3.1.2.ebuild b/dev-util/rbtools/rbtools-3.1.2.ebuild new file mode 100644 index 000000000000..9fb63ed11ab4 --- /dev/null +++ b/dev-util/rbtools/rbtools-3.1.2.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +PYTHON_COMPAT=( python3_{8,9,10} ) + +inherit distutils-r1 + +MY_PN="RBTools" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="Command line tools for use with Review Board" +HOMEPAGE="https://www.reviewboard.org/" +SRC_URI="https://downloads.reviewboard.org/releases/${MY_PN}/$(ver_cut 1-2)/${MY_P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND=" + >=dev-python/pydiffx-1.0.1-r1[${PYTHON_USEDEP}] + >=dev-python/six-1.8.0[${PYTHON_USEDEP}] + dev-python/tqdm[${PYTHON_USEDEP}] + dev-python/texttable[${PYTHON_USEDEP}] + dev-python/colorama[${PYTHON_USEDEP}] +" +DEPEND="${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}] + test? ( dev-python/kgb[${PYTHON_USEDEP}] ) +" + +DOCS=( AUTHORS NEWS README.md ) + +S=${WORKDIR}/${MY_P} + +distutils_enable_tests nose + +src_prepare() { + default + + # Avoid tests requiring unpackaged test data + rm -f rbtools/clients/tests/test_scanning.py || die + + # Avoid repository specific tests to avoid dependencies on them + rm -f rbtools/clients/tests/test_{cvs,git,mercurial,svn}.py || die + + # Fix test that appears to expect case-insentive comparison + sed -i -e 's/TEST CONTENT/Test content/' rbtools/utils/tests/test_console.py || die +} + +python_test() { + distutils_install_for_testing + distutils-r1_python_test +} |