SUMMARY="Git helper for better Github integration"
DESCRIPTION="hub enhances various git commands to ease most common workflows \
with GitHub. You can more easily fetch and manage remotes and forks, merge \
commits directly from the website, and even create and update pull requests, \
all from the command line."
REVISION="1"
ARCHITECTURES="any"
LICENSE="MIT"
COPYRIGHT="2009-2014 Chris Wanstrath"
HOMEPAGE="http://hub.github.com/"
SOURCE_URI="https://github.com/github/hub/archive/v1.12.4.tar.gz"

PROVIDES="
	hub = $portVersion
	cmd:hub
"

REQUIRES="
	cmd:ruby
"

BUILD_PREREQUIRES="
	cmd:ruby
	cmd:rake
"

BUILD()
{
	true
}

INSTALL()
{
	rake install PREFIX=$prefix

	# Fixup some hardcoded paths…
	mkdir -p $docDir
	mv $prefix/share/man $manDir
	rmdir $prefix/share
}
