From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id C614715815E for ; Fri, 9 Feb 2024 00:30:09 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4FFE7E2A0E; Fri, 9 Feb 2024 00:30:08 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 2C4E1E2A0E for ; Fri, 9 Feb 2024 00:30:08 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id CBC45343145 for ; Fri, 9 Feb 2024 00:30:06 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 26A7914B7 for ; Fri, 9 Feb 2024 00:30:05 +0000 (UTC) From: "David Roman" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "David Roman" Message-ID: <1707385726.04b65b69685ef5f0ccc9938e0dbecebfd74c8af5.davidroman@gentoo> Subject: [gentoo-commits] repo/proj/guru:master commit in: app-text/tldr/ X-VCS-Repository: repo/proj/guru X-VCS-Files: app-text/tldr/Manifest app-text/tldr/tldr-3.2.0.ebuild X-VCS-Directories: app-text/tldr/ X-VCS-Committer: davidroman X-VCS-Committer-Name: David Roman X-VCS-Revision: 04b65b69685ef5f0ccc9938e0dbecebfd74c8af5 X-VCS-Branch: master Date: Fri, 9 Feb 2024 00:30:05 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: da7db893-8ab4-4d51-81aa-9ec5e964f208 X-Archives-Hash: e7408898dbdff42796e6ac9c4b7a1e1a commit: 04b65b69685ef5f0ccc9938e0dbecebfd74c8af5 Author: Takuya Wakazono gmail com> AuthorDate: Wed Feb 7 16:10:05 2024 +0000 Commit: David Roman gmail com> CommitDate: Thu Feb 8 09:48:46 2024 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=04b65b69 app-text/tldr: add 3.2.0 Closes: https://bugs.gentoo.org/897376 Closes: https://bugs.gentoo.org/921752 Signed-off-by: Takuya Wakazono gmail.com> app-text/tldr/Manifest | 1 + app-text/tldr/tldr-3.2.0.ebuild | 53 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 54 insertions(+) diff --git a/app-text/tldr/Manifest b/app-text/tldr/Manifest index 42af485832..282ec7f6d6 100644 --- a/app-text/tldr/Manifest +++ b/app-text/tldr/Manifest @@ -1 +1,2 @@ DIST tldr-2.0.0.tar.gz 8843 BLAKE2B c87704db6f699e883b0d5c075df84ac32ca7ff4133957c111013a537ceab201625d19f2278d73fd931f4052eac8d41b0273bb91e1622208d992faf4a42d640fe SHA512 0872fa1c0d98273ffbaea751940f1591e3297cc72706c174d953fbdce187d41296cd2a954321d6c3fd879566cefffb4707567c8d132fbe6ca21efd1ca3111530 +DIST tldr-3.2.0.gh.tar.gz 16901 BLAKE2B 4cca5999e7c85b5f5b6e980150cfdabb034776ba5477309fc24d158effd2ef68d263d6cf75e01f3cf06d07ac2f1ab849300fff4907564e1b48728cb017834568 SHA512 1535979548b49cd8b0312f2cd11f69ba3f710e16a27c074dc5a8cb5617d7f343df30ba01a83388b460508ab519045140852767bfc8ff1189d612d71a3d35d76b diff --git a/app-text/tldr/tldr-3.2.0.ebuild b/app-text/tldr/tldr-3.2.0.ebuild new file mode 100644 index 0000000000..dce4027d8e --- /dev/null +++ b/app-text/tldr/tldr-3.2.0.ebuild @@ -0,0 +1,53 @@ +# Copyright 2021-2024 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 + ) +" + +distutils_enable_tests pytest + +src_prepare() { + use man || sed -i '/data_files/d' setup.py || die + distutils-r1_src_prepare +} + +src_compile() { + emake -C docs + distutils-r1_src_compile +} + +python_test() { + local EPYTEST_DESELECT=( + # tries to access internet + tests/test_tldr.py::test_error_message + ) + epytest +}