5eec3eb9bb
Gentoo bug 477096
43 lines
931 B
Bash
43 lines
931 B
Bash
# Copyright 1999-2013 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $Header: $
|
|
|
|
EAPI="3"
|
|
PYTHON_DEPEND="2"
|
|
SUPPORT_PYTHON_ABIS="1"
|
|
RESTRICT_PYTHON_ABIS="3.*"
|
|
|
|
inherit eutils distutils
|
|
|
|
DESCRIPTION="Support for Git branches in Bazaar"
|
|
HOMEPAGE="http://bazaar-vcs.org/BzrForeignBranches/Git"
|
|
SRC_URI=""
|
|
|
|
LICENSE="GPL-2"
|
|
SLOT="0"
|
|
|
|
if [[ ${PV} = 9999 ]]; then
|
|
inherit bzr
|
|
EBZR_REPO_URI="lp:bzr-git"
|
|
KEYWORDS=""
|
|
else
|
|
SRC_URI="http://samba.org/~jelmer/bzr/${P}.tar.gz"
|
|
KEYWORDS="amd64 x86"
|
|
fi
|
|
|
|
IUSE=""
|
|
# Test are broken, they want API functions from Dulwich which are not
|
|
# installed in Gentoo
|
|
RESTRICT="test"
|
|
|
|
# Check info.py for dulwich and bzr version dependency info.
|
|
# The file should be fairly straightforward to understand.
|
|
DEPEND=""
|
|
RDEPEND=">=dev-python/dulwich-0.8.2
|
|
>=dev-vcs/bzr-2.5.0"
|
|
|
|
src_prepare() {
|
|
epatch "${FILESDIR}/remove-git-remote-bzr.patch"
|
|
distutils_src_prepare
|
|
}
|