blob: f36f4730d7b4db75bbd370270eb1223d214594e3 (
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
55
56
57
58
59
60
61
62
63
|
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{10..12} )
inherit distutils-r1 optfeature
DESCRIPTION="Tool suite for analysis and visualization of DNS and DNSSEC"
HOMEPAGE="
https://dnsviz.net/
https://github.com/dnsviz/dnsviz/
https://pypi.org/project/dnsviz/
"
# 0.10.0 is untagged, see https://github.com/dnsviz/dnsviz/issues/122
SRC_URI="
https://github.com/dnsviz/dnsviz/archive/86ceba56e8ed23df0ec091b8750025ac374f3916.tar.gz
-> ${P}.gh.tar.gz
"
S="${WORKDIR}/${PN}-86ceba56e8ed23df0ec091b8750025ac374f3916"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="test"
RESTRICT="!test? ( test )"
RDEPEND="
>=dev-python/dnspython-1.13[${PYTHON_USEDEP}]
>=dev-python/m2crypto-0.37.0[${PYTHON_USEDEP}]
>=dev-python/pygraphviz-1.3.1[${PYTHON_USEDEP}]
"
BDEPEND="
media-gfx/graphviz
test? (
${RDEPEND}
net-dns/bind
)
"
python_prepare_all() {
# Fix the ebuild to use correct FHS/Gentoo policy paths
sed -i \
-e "s|share/doc/dnsviz|share/doc/${PF}|g" \
"${S}"/setup.py \
|| die
# skip online tests
rm tests/*_online.py tests/test_dnsviz_probe_options.py || die
distutils-r1_python_prepare_all
}
python_test() {
eunittest -s tests -p "*.py" || die
}
pkg_postinst() {
optfeature "Support for pre-deployment testing" net-dns/bind
optfeature "Support for DNSSEC signatures using GOST algorithm or digest" dev-libs/ghost-engine
}
|