Files
guru/app-admin/doas-sudo-shim/doas-sudo-shim-0.2.0.ebuild
Theron York 6c1647bee9 app-admin/doas-sudo-shim: add doc USE flag, blocker, drop pkg_postinst
- Add IUSE="doc" to optionally build man pages via dev-ruby/asciidoctor
- Add blocker on app-admin/sudo (both provide /usr/bin/sudo)
- Remove pkg_postinst (blocker replaces the warning)

Signed-off-by: Theron York <theron.york@cloudnuke.org>
2026-06-18 06:00:36 -05:00

33 lines
643 B
Bash

# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="sudo shim that utilizes doas"
HOMEPAGE="https://github.com/jirutka/doas-sudo-shim"
SRC_URI="https://github.com/jirutka/doas-sudo-shim/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="ISC"
SLOT="0"
KEYWORDS="~amd64"
IUSE="doc"
BDEPEND="doc? ( dev-ruby/asciidoctor )"
RDEPEND="
app-admin/doas
!app-admin/sudo
"
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}
dodoc README.adoc LICENSE
}