# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

DESCRIPTION="Run just one instance of a command and its args at a time"
HOMEPAGE="https://launchpad.net/run-one"
SRC_URI="https://launchpad.net/${PN}/trunk/${PV}/+download/${PN}_${PV}.orig.tar.gz"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"

RDEPEND="${DEPEND}
	sys-process/lsof
"

src_install() {
	exeinto /usr/bin
	doexe run-one
	doexe keep-one-running
	doexe run-one-constantly
	doexe run-one-until-failure
	doexe run-one-until-success
	doexe run-this-one

	doman run-one.1
}