blob: 678ecd2cdd3b21b662e88c39040c16f412684a65 (
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
51
52
53
54
55
56
|
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit bash-completion-r1
if [[ ${PV} = *9999* ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/PF4Public/gb-chroot.git"
SRC_URI=""
else
SRC_URI="https://github.com/PF4Public/gb-chroot/archive/${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv s390 sparc x86"
fi
DESCRIPTION="gb-chroot is a collection of scripts for building Gentoo's binpkgs"
HOMEPAGE="https://pf4public.github.io/gb-chroot/"
LICENSE="MIT"
SLOT="0"
IUSE="doc host"
DOCS=( README.md )
DEPEND="
app-portage/gentoolkit
"
RDEPEND="${DEPEND}"
BDEPEND=""
src_install()
{
if use doc
then
DOCS+=( docs/index.md )
fi
einstalldocs
if use host
then
doconfd config/gb-chroot
doinitd scripts/gb-chroot
dobin scripts/host/*
keepdir /var/lib/gb-chroot
insinto /usr/share/gb-chroot
doins templates/*
newbashcomp completions/bash-completions ${PN}
bashcomp_alias ${PN} gb-enter gb-clone gb-all gb-emerge
else
dobin scripts/target/*
dobin scripts/chroot/*
insinto /etc
newins config/gb-chroot-target gb-chroot.conf
fi
}
|