mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-08 14:43:27 -04:00
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:
@@ -10,21 +10,16 @@ SRC_URI="https://github.com/jirutka/doas-sudo-shim/archive/v${PV}.tar.gz -> ${P}
|
||||
LICENSE="ISC"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="doc"
|
||||
|
||||
BDEPEND="doc? ( dev-ruby/asciidoctor )"
|
||||
BDEPEND="dev-ruby/asciidoctor"
|
||||
RDEPEND="app-admin/doas"
|
||||
|
||||
src_compile() {
|
||||
if use doc; then
|
||||
emake man
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local targets="install-exec"
|
||||
use doc && targets+=" install-man"
|
||||
emake DESTDIR="${ED}" PREFIX=/usr ${targets}
|
||||
emake DESTDIR="${ED}" PREFIX=/usr install-exec install-man
|
||||
dodoc README.adoc LICENSE
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user