Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 730168
Collapse All | Expand All

(-)a/net-dns/bind-tools/bind-tools-9.16.4.ebuild (-8 / +23 lines)
Lines 3-9 Link Here
3
3
4
EAPI=7
4
EAPI=7
5
5
6
inherit autotools flag-o-matic toolchain-funcs
6
PYTHON_COMPAT=( python3_{7,8,9} )
7
8
inherit autotools flag-o-matic python-any-r1 toolchain-funcs
7
9
8
MY_PN=${PN//-tools}
10
MY_PN=${PN//-tools}
9
MY_PV=${PV/_p/-P}
11
MY_PV=${PV/_p/-P}
Lines 36-48 DEPEND="${COMMON_DEPEND}" Link Here
36
38
37
RDEPEND="${COMMON_DEPEND}"
39
RDEPEND="${COMMON_DEPEND}"
38
40
39
BDEPEND="virtual/pkgconfig"
41
# sphinx required for man-page and html creation
42
BDEPEND="${PYTHON_DEPS}
43
	$(python_gen_any_dep '
44
		dev-python/sphinx[${PYTHON_USEDEP}]
45
	')
46
	virtual/pkgconfig"
40
47
41
S="${WORKDIR}/${MY_P}"
48
S="${WORKDIR}/${MY_P}"
42
49
43
# bug 479092, requires networking
50
# bug 479092, requires networking
44
RESTRICT="test"
51
RESTRICT="test"
45
52
53
python_check_deps() {
54
	has_version "dev-python/sphinx[${PYTHON_USEDEP}]"
55
}
56
46
src_prepare() {
57
src_prepare() {
47
	default
58
	default
48
59
Lines 106-140 src_compile() { Link Here
106
	emake AR="${AR}" -C bin/dig/
117
	emake AR="${AR}" -C bin/dig/
107
	emake AR="${AR}" -C bin/nsupdate/
118
	emake AR="${AR}" -C bin/nsupdate/
108
	emake AR="${AR}" -C bin/dnssec/
119
	emake AR="${AR}" -C bin/dnssec/
120
	emake -C doc/man/ man $(usev doc)
109
}
121
}
110
122
111
src_install() {
123
src_install() {
124
	local man_dir="${S}/doc/man"
125
	local html_dir="${man_dir}/_build/html"
126
112
	dodoc README CHANGES
127
	dodoc README CHANGES
113
128
114
	cd "${S}"/bin/delv || die
129
	cd "${S}"/bin/delv || die
115
	dobin delv
130
	dobin delv
116
	doman delv.1
131
	doman ${man_dir}/delv.1
117
132
118
	cd "${S}"/bin/dig || die
133
	cd "${S}"/bin/dig || die
119
	dobin dig host nslookup
134
	dobin dig host nslookup
120
	doman {dig,host,nslookup}.1
135
	doman ${man_dir}/{dig,host,nslookup}.1
121
136
122
	cd "${S}"/bin/nsupdate || die
137
	cd "${S}"/bin/nsupdate || die
123
	dobin nsupdate
138
	dobin nsupdate
124
	doman nsupdate.1
139
	doman ${man_dir}/nsupdate.1
125
	if use doc; then
140
	if use doc; then
126
		docinto html
141
		docinto html
127
		dodoc nsupdate.html
142
		dodoc ${html_dir}/nsupdate.html
128
	fi
143
	fi
129
144
130
	cd "${S}"/bin/dnssec || die
145
	cd "${S}"/bin/dnssec || die
131
	for tool in dsfromkey importkey keyfromlabel keygen \
146
	for tool in dsfromkey importkey keyfromlabel keygen \
132
		revoke settime signzone verify; do
147
		revoke settime signzone verify; do
133
		dobin dnssec-"${tool}"
148
		dobin dnssec-"${tool}"
134
		doman dnssec-"${tool}".8
149
		doman ${man_dir}/dnssec-"${tool}".8
135
		if use doc; then
150
		if use doc; then
136
			docinto html
151
			docinto html
137
			dodoc dnssec-"${tool}".html
152
			dodoc ${html_dir}/dnssec-"${tool}".html
138
		fi
153
		fi
139
	done
154
	done
140
}
155
}

Return to bug 730168