commit: d06aa97d7d268268a9f6e442c8a0da68b98b08ad Author: Sebastian Pipping <sebastian <AT> pipping <DOT> org> AuthorDate: Mon Jun 22 01:08:03 2015 +0000 Commit: Sebastian Pipping <sping <AT> gentoo <DOT> org> CommitDate: Mon Jun 22 01:09:14 2015 +0000 URL: https://gitweb.gentoo.org/proj/betagarden.git/commit/?id=d06aa97d
dev-util/yumbootstrap: 0.0.3_p20150617 .../yumbootstrap-0.0.3_p20150617.ebuild | 43 ++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/dev-util/yumbootstrap/yumbootstrap-0.0.3_p20150617.ebuild b/dev-util/yumbootstrap/yumbootstrap-0.0.3_p20150617.ebuild new file mode 100644 index 0000000..6000ad9 --- /dev/null +++ b/dev-util/yumbootstrap/yumbootstrap-0.0.3_p20150617.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +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[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 +}
