Forked from anonymous/homemoschlarsrcgentooportagedev-vcsgit-flowgit-flow-0.4.1.ebuild.txt
Created
May 29, 2012 17:13
-
-
Save moschlar/2829578 to your computer and use it in GitHub Desktop.
dev-vcs/git-flow/git-flow-0.4.1.ebuild
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright 1999-2012 Gentoo Foundation | |
# Distributed under the terms of the GNU General Public License v2 | |
# $Header: $ | |
EAPI=4 | |
inherit eutils 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" | |
src_prepare() { | |
epatch "${FILESDIR}/system-shflags.patch" | |
} | |
src_compile() { | |
true | |
} | |
src_install() { | |
emake prefix="${D}" install | |
if use bash-completion; then | |
newbashcomp "${WORKDIR}/bobthecow-git-flow-completion-b399150/git-flow-completion.bash" git-flow | |
fi | |
} | |
pkg_postinst() { | |
if use bash-completion; then | |
elog "Use eselect to activate the bash-completion module:" | |
elog " git-flow" | |
fi | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/Makefile b/Makefile | |
index fbbfd2c..b0e2490 100644 | |
--- a/Makefile | |
+++ b/Makefile | |
@@ -40,14 +40,12 @@ SCRIPT_FILES+=git-flow-release | |
SCRIPT_FILES+=git-flow-support | |
SCRIPT_FILES+=git-flow-version | |
SCRIPT_FILES+=gitflow-common | |
-SCRIPT_FILES+=gitflow-shFlags | |
all: | |
@echo "usage: make install" | |
@echo " make uninstall" | |
install: | |
- @test -f gitflow-shFlags || (echo "Run 'git submodule init && git submodule update' first." ; exit 1 ) | |
install -d -m 0755 $(prefix)/bin | |
install -m 0755 $(EXEC_FILES) $(prefix)/bin | |
install -m 0644 $(SCRIPT_FILES) $(prefix)/bin | |
diff --git a/git-flow b/git-flow | |
index 93e9f0f..7b643d3 100755 | |
--- a/git-flow | |
+++ b/git-flow | |
@@ -78,7 +78,7 @@ main() { | |
export POSIXLY_CORRECT=1 | |
# use the shFlags project to parse the command line arguments | |
- . "$GITFLOW_DIR/gitflow-shFlags" | |
+ . /usr/share/misc/shflags | |
FLAGS_PARENT="git flow" | |
FLAGS "$@" || exit $? | |
eval set -- "${FLAGS_ARGV}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment