blob: 1eb079fa8bb824071e8fbac3968aa60ba3697724 (
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
|
# Copyright 2022-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit shell-completion
DESCRIPTION="Run gitlab pipelines locally as shell executor or docker executor"
HOMEPAGE="https://github.com/firecow/gitlab-ci-local"
SRC_URI="https://github.com/firecow/gitlab-ci-local/releases/download/${PV}/linux.gz -> ${P}.gz"
S="${WORKDIR}"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
# gitlab-ci-local requires debug information to run, as it performs a
# sort of self-introspection.
RESTRICT="strip"
MY_PN="${PN/-bin/}"
QA_PREBUILT="usr/bin/gitlab-ci-local"
src_prepare() {
default
chmod 755 ${P} || die
}
src_compile() {
# Generate zsh completion.
./${P} --completion > _${MY_PN} || die
}
src_install() {
newbin ${P} ${MY_PN}
dozshcomp _${MY_PN}
}
|