/home/moschlar/src/gentoo/portage/dev-vcs/git-flow/git-flow-0.4.1.ebuild

  • Download Gist
homemoschlarsrcgentooportagedev-vcsgit-flowgit-flow-0.4.1.ebuild.txt
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
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
 
EAPI=4
 
inherit bash-completion-r1
 
DESCRIPTION="Git extensions to provide high-level repository operations for Vincent Driessen's branching model."
HOMEPAGE="https://github.com/nvie/gitflow"
SRC_URI="https://github.com/nvie/gitflow/tarball/0.4.1 -> ${P}.tar.gz
bash-completion? ( https://github.com/bobthecow/git-flow-completion/tarball/0.4.1.0 -> ${P}-completion.tar.gz )"
 
LICENSE="BSD"
SLOT="0"
KEYWORDS="~x86"
IUSE="bash-completion"
 
DEPEND="dev-util/shflags"
RDEPEND="${DEPEND}
dev-vcs/git[bash-completion?]"
 
S="${WORKDIR}/nvie-gitflow-5b26edc"
S2="${WORKDIR}/bobthecow-git-flow-completion-b399150"
 
src_prepare() {
# Fix included shFlags file
rm gitflow-shFlags
ln -s ${ROOT}/usr/share/misc/shflags gitflow-shFlags
}
 
src_compile() {
true
}
 
src_install() {
emake prefix=${D} install || die "install failed"
if use bash-completion; then
newbashcomp ${S2}/git-flow-completion.bash git-flow
fi
}
 
pkg_postinst() {
if use bash-completion; then
echo "Use eselect to activate the bash-completion module:"
echo " git-flow"
fi
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.