blob: 1b4b5fdd1b880a0d729f4bd0bef91517790a1624 (
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
|
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI="5"
PYTHON_COMPAT=( python2_7 )
# PYTHON_REQ_USE=berkdb
# https://bugs.gentoo.org/show_bug.cgi?id=519584
inherit distutils-r1
MY_PV=7bb335463cecdd294dacce66481c02b7a149652f
DESCRIPTION="chroot installer for derivatives of Red Hat Enterprise Linux"
HOMEPAGE="https://github.com/dozzie/yumbootstrap"
SRC_URI="https://github.com/dozzie/yumbootstrap/archive/${MY_PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-3" # or later?
SLOT="0"
KEYWORDS="" # ~amd64 ~x86, lazy mask
IUSE=""
RDEPEND="
app-arch/rpm[caps,lua,python]
sys-apps/yum
dev-python/bsddb3"
S="${WORKDIR}"/${PN}-${MY_PV}
python_prepare_all() {
sed 's,^import bsddb$,import bsddb3 as bsddb,' -i lib/yumbootstrap/bdb.py || die
}
python_install_all() {
DOCS=( KNOWN_ISSUES.md SUITES.md )
EXAMPLES=( examples )
distutils-r1_python_install_all
emake \
PREFIX=/usr \
SYSCONFDIR=/etc \
DESTDIR="${D}" \
install-notmodule
}
|