blob: 8f5c91d1a7738d41c5464ff11dae337646f06f89 (
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
# Copyright 2024-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# Autogenerated by pycargoebuild 0.13.5
EAPI=8
CRATES=""
inherit cargo systemd shell-completion
DESCRIPTION="A cli tool for managing long running shell commands"
HOMEPAGE="https://github.com/nukesor/pueue"
SRC_URI="https://github.com/Nukesor/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
DEPS_URI="https://github.com/freijon/${PN}/releases/download/v${PV}/${P}-crates.tar.xz"
SRC_URI+=" ${DEPS_URI}"
LICENSE="MIT"
# Dependent crate licenses
LICENSE+=" Apache-2.0 BSD ISC MIT MPL-2.0 Unicode-DFS-2016 Unlicense"
SLOT="0"
KEYWORDS="~amd64"
QA_FLAGS_IGNORED="
usr/bin/${PN}
usr/bin/${PN}d
"
src_install() {
cargo_src_install --path pueue
# generate and install shell completions files
mkdir completions
# bash completions
"${ED}"/usr/bin/pueue completions bash completions || die "gen bash completion failed"
newbashcomp completions/${PN}.bash ${PN}
# zsh completions
"${ED}"/usr/bin/pueue completions zsh completions || die "gen zsh completion failed"
dozshcomp completions/_${PN}
# fish completions
"${ED}"/usr/bin/pueue completions fish completions || die "gen fish completion failed "
dofishcomp completions/${PN}.fish
# install the systemd-service
systemd_douserunit utils/pueued.service
}
|