--- orig_portage/files/git-dispatch-conf.patch 1970-01-01 01:00:00.000000000 +0100 +++ orig_portage/files/git-dispatch-conf.patch 2009-02-28 15:46:23.000000000 +0100 @@ -0,0 +1,176 @@ +diff -ru orig_portage/bin/dispatch-conf git_portage/bin/dispatch-conf +--- orig_portage/bin/dispatch-conf 2008-11-15 07:09:35.000000000 +0100 @@ -10,7 +10,7 @@ KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd" PROVIDE="virtual/portage" SLOT="0" -IUSE="build doc epydoc selinux linguas_pl" +IUSE="build doc epydoc selinux linguas_pl git" python_dep=">=dev-lang/python-2.4" @@ -26,7 +26,8 @@ elibc_glibc? ( >=sys-apps/sandbox-1.2.17 !mips? ( >=sys-apps/sandbox-1.2.18.1-r2 ) ) elibc_uclibc? ( >=sys-apps/sandbox-1.2.17 !mips? ( >=sys-apps/sandbox-1.2.18.1-r2 ) ) >=app-misc/pax-utils-0.1.17 - selinux? ( >=dev-python/python-selinux-2.16 )" + selinux? ( >=dev-python/python-selinux-2.16 ) + git? ( dev-util/git )" PDEPEND=" !build? ( >=net-misc/rsync-2.6.4 @@ -74,6 +75,10 @@ einfo "Setting portage.VERSION to ${PVR} ..." sed -i "s/^VERSION=.*/VERSION=\"${PVR}\"/" pym/portage/__init__.py || \ die "Failed to patch portage.VERSION" + + if use git; then + epatch "${FILESDIR}/git-dispatch-conf.patch" + fi } src_compile() {