app-admin/doas-sudo-shim: always install man page

Remove the doc USE flag and unconditionally build and install the man
page, as per Gentoo QA policy (man pages should not be optional).

- Drop IUSE="doc"
- Make dev-ruby/asciidoctor an unconditional BDEPEND
- Always run 'emake man' in src_compile
- Always pass install-man target to emake in src_install

Signed-off-by: Theron York <theron.york@cloudnuke.org>
This commit is contained in:
Theron York
2026-06-18 05:50:03 -05:00
parent 7edc51bc91
commit 2727d215e9

View File

@@ -10,21 +10,16 @@ SRC_URI="https://github.com/jirutka/doas-sudo-shim/archive/v${PV}.tar.gz -> ${P}
LICENSE="ISC" LICENSE="ISC"
SLOT="0" SLOT="0"
KEYWORDS="~amd64" KEYWORDS="~amd64"
IUSE="doc"
BDEPEND="doc? ( dev-ruby/asciidoctor )" BDEPEND="dev-ruby/asciidoctor"
RDEPEND="app-admin/doas" RDEPEND="app-admin/doas"
src_compile() { src_compile() {
if use doc; then emake man
emake man
fi
} }
src_install() { src_install() {
local targets="install-exec" emake DESTDIR="${ED}" PREFIX=/usr install-exec install-man
use doc && targets+=" install-man"
emake DESTDIR="${ED}" PREFIX=/usr ${targets}
dodoc README.adoc LICENSE dodoc README.adoc LICENSE
} }