summaryrefslogtreecommitdiff
path: root/app-admin/doas-sudo-shim/doas-sudo-shim-0.2.0.ebuild
blob: 75c9e10dcf61bf7780abee876c8034609dea6594 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# 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
}