summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikle Kolyada <zlogene@gentoo.org>2020-06-30 17:23:43 +0300
committerMikle Kolyada <zlogene@gentoo.org>2020-06-30 17:25:05 +0300
commitbbfca4304f2a9750f3a0ff0cdd0d1e2da388318a (patch)
tree45e8182451a1b957792390a8dcda2ba46597ebbb /net-dns/bind-tools/bind-tools-9.16.4.ebuild
parentnet-misc/freerdp: backport bug fix (diff)
downloadgentoo-bbfca4304f2a9750f3a0ff0cdd0d1e2da388318a.tar.gz
gentoo-bbfca4304f2a9750f3a0ff0cdd0d1e2da388318a.tar.bz2
gentoo-bbfca4304f2a9750f3a0ff0cdd0d1e2da388318a.zip
net-dns/bind-tools: fix doc building
Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Mikle Kolyada <zlogene@gentoo.org>
Diffstat (limited to 'net-dns/bind-tools/bind-tools-9.16.4.ebuild')
-rw-r--r--net-dns/bind-tools/bind-tools-9.16.4.ebuild31
1 files changed, 23 insertions, 8 deletions
diff --git a/net-dns/bind-tools/bind-tools-9.16.4.ebuild b/net-dns/bind-tools/bind-tools-9.16.4.ebuild
index ce5dd685f2f..e5e7e2b6a22 100644
--- a/net-dns/bind-tools/bind-tools-9.16.4.ebuild
+++ b/net-dns/bind-tools/bind-tools-9.16.4.ebuild
@@ -3,7 +3,9 @@
EAPI=7
-inherit autotools flag-o-matic toolchain-funcs
+PYTHON_COMPAT=( python3_{7,8,9} )
+
+inherit autotools flag-o-matic python-any-r1 toolchain-funcs
MY_PN=${PN//-tools}
MY_PV=${PV/_p/-P}
@@ -36,13 +38,22 @@ DEPEND="${COMMON_DEPEND}"
RDEPEND="${COMMON_DEPEND}"
-BDEPEND="virtual/pkgconfig"
+# sphinx required for man-page and html creation
+BDEPEND="${PYTHON_DEPS}
+ $(python_gen_any_dep '
+ dev-python/sphinx[${PYTHON_USEDEP}]
+ ')
+ virtual/pkgconfig"
S="${WORKDIR}/${MY_P}"
# bug 479092, requires networking
RESTRICT="test"
+python_check_deps() {
+ has_version "dev-python/sphinx[${PYTHON_USEDEP}]"
+}
+
src_prepare() {
default
@@ -106,35 +117,39 @@ src_compile() {
emake AR="${AR}" -C bin/dig/
emake AR="${AR}" -C bin/nsupdate/
emake AR="${AR}" -C bin/dnssec/
+ emake -C doc/man/ man $(usev doc)
}
src_install() {
+ local man_dir="${S}/doc/man"
+ local html_dir="${man_dir}/_build/html"
+
dodoc README CHANGES
cd "${S}"/bin/delv || die
dobin delv
- doman delv.1
+ doman ${man_dir}/delv.1
cd "${S}"/bin/dig || die
dobin dig host nslookup
- doman {dig,host,nslookup}.1
+ doman ${man_dir}/{dig,host,nslookup}.1
cd "${S}"/bin/nsupdate || die
dobin nsupdate
- doman nsupdate.1
+ doman ${man_dir}/nsupdate.1
if use doc; then
docinto html
- dodoc nsupdate.html
+ dodoc ${html_dir}/nsupdate.html
fi
cd "${S}"/bin/dnssec || die
for tool in dsfromkey importkey keyfromlabel keygen \
revoke settime signzone verify; do
dobin dnssec-"${tool}"
- doman dnssec-"${tool}".8
+ doman ${man_dir}/dnssec-"${tool}".8
if use doc; then
docinto html
- dodoc dnssec-"${tool}".html
+ dodoc ${html_dir}/dnssec-"${tool}".html
fi
done
}