mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-09 23:23:00 -04:00
app-text/tldr: add 3.2.0
Closes: https://bugs.gentoo.org/897376 Closes: https://bugs.gentoo.org/921752 Signed-off-by: Takuya Wakazono <pastalian46@gmail.com>
This commit is contained in:
@@ -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
|
||||
|
||||
53
app-text/tldr/tldr-3.2.0.ebuild
Normal file
53
app-text/tldr/tldr-3.2.0.ebuild
Normal file
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user