From 51b8f366d38b3890a2b81d017c200c267def9d8b Mon Sep 17 00:00:00 2001 From: Filip Kobierski Date: Sat, 1 Feb 2025 19:38:56 +0100 Subject: [PATCH] app-text/tldr: add 3.3.0 - inline EPYTEST_DESELECT - NOTE: test warning is already fixed at master - NOTE: upstream added python3.1{1,2} support in this release Signed-off-by: Filip Kobierski --- app-text/tldr/Manifest | 1 + app-text/tldr/tldr-3.3.0.ebuild | 50 +++++++++++++++++++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 app-text/tldr/tldr-3.3.0.ebuild diff --git a/app-text/tldr/Manifest b/app-text/tldr/Manifest index 874cb34d35..bc7cb8baf2 100644 --- a/app-text/tldr/Manifest +++ b/app-text/tldr/Manifest @@ -1 +1,2 @@ DIST tldr-3.2.0.gh.tar.gz 16901 BLAKE2B 4cca5999e7c85b5f5b6e980150cfdabb034776ba5477309fc24d158effd2ef68d263d6cf75e01f3cf06d07ac2f1ab849300fff4907564e1b48728cb017834568 SHA512 1535979548b49cd8b0312f2cd11f69ba3f710e16a27c074dc5a8cb5617d7f343df30ba01a83388b460508ab519045140852767bfc8ff1189d612d71a3d35d76b +DIST tldr-3.3.0.gh.tar.gz 96931 BLAKE2B 78d499db16a13743b816501bad342958fafbdde282775a6f34f264e3adc974d2976f7ce1172805115a08e60e350624f642dfa81bf694403ab9e017418d65b96c SHA512 137560c401540ff1e747f443a3c0686ddba8c512772eadbff6b735aa9c20dd02a9c7b101b2238888daa20b2886dc4318bc7c1366d8b73f71dd2f797b1787b632 diff --git a/app-text/tldr/tldr-3.3.0.ebuild b/app-text/tldr/tldr-3.3.0.ebuild new file mode 100644 index 0000000000..6dbb24b1e8 --- /dev/null +++ b/app-text/tldr/tldr-3.3.0.ebuild @@ -0,0 +1,50 @@ +# Copyright 2021-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{11..12} ) + +inherit distutils-r1 + +DESCRIPTION="Python command line client for tldr pages" +HOMEPAGE="https://github.com/tldr-pages/tldr-python-client" +# sdist lacks some files. +SRC_URI="https://github.com/tldr-pages/tldr-python-client/archive/refs/tags/${PV}.tar.gz -> ${P}.gh.tar.gz" +S="${WORKDIR}/${PN}-python-client-${PV}" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" +IUSE="man" + +RDEPEND=" + dev-python/colorama[${PYTHON_USEDEP}] + dev-python/shtab[${PYTHON_USEDEP}] + dev-python/termcolor[${PYTHON_USEDEP}] + !app-misc/tealdeer +" +BDEPEND=" + man? ( + dev-python/sphinx + dev-python/sphinx-argparse + ) +" + +EPYTEST_DESELECT=( + # violates network sandbox + tests/test_tldr.py::test_error_message +) + +distutils_enable_tests pytest + +src_prepare() { + use man || sed -i '/data_files/d' setup.py || die + distutils-r1_src_prepare +} + +src_compile() { + use man && emake -C docs + distutils-r1_src_compile +}