blob: d5a1a9fcb9f5df3976c942d9914cbeaf61c9c40b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# Copyright 2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{9..11} )
DISTUTILS_USE_PEP517=poetry
inherit distutils-r1
DESCRIPTION="A tool for compliance with the REUSE recommendations"
HOMEPAGE="
https://reuse.software/
https://pypi.org/project/reuse/
https://github.com/fsfe/reuse-tool
"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="Apache-2.0 CC0-1.0 CC-BY-SA-4.0 GPL-3+"
SLOT="0"
KEYWORDS="~amd64"
RDEPEND="
dev-python/boolean-py[${PYTHON_USEDEP}]
dev-python/binaryornot[${PYTHON_USEDEP}]
dev-python/jinja[${PYTHON_USEDEP}]
dev-python/license-expression[${PYTHON_USEDEP}]
dev-python/python-debian[${PYTHON_USEDEP}]
dev-python/setuptools[${PYTHON_USEDEP}]
"
BDEPEND="
dev-python/setuptools[${PYTHON_USEDEP}]
sys-devel/gettext
test? (
dev-vcs/git
dev-vcs/mercurial
)
"
DOCS=( AUTHORS.rst CHANGELOG.md README.md )
distutils_enable_tests pytest
# [Errno 2] No such file or directory: '../README.md'
#distutils_enable_sphinx docs \
#dev-python/recommonmark \
#dev-python/sphinx-autodoc-typehints \
#dev-python/sphinx-rtd-theme \
#dev-python/sphinxcontrib-apidoc
src_install() {
distutils-r1_src_install
find "${ED}"/usr/lib -name '*.md' -delete || die
find "${ED}"/usr/lib -name '*.rst' -delete || die
}
|