0
0
Fork 0
haikuports/dev-vcs/hub/hub-1.12.4.recipe

51 lines
1018 B
Bash

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."
HOMEPAGE="https://hub.github.com/"
COPYRIGHT="2009-2014 Chris Wanstrath"
LICENSE="MIT"
REVISION="4"
SOURCE_URI="https://github.com/github/hub/archive/v1.12.4.tar.gz"
CHECKSUM_SHA256="b7fe404d7dc5f60554f088bec12de5e80229331430ea0ced46d5bf89ecae5117"
ARCHITECTURES="any"
PROVIDES="
hub = $portVersion
cmd:hub
"
REQUIRES="
cmd:ruby
"
BUILD_PREREQUIRES="
cmd:rake
cmd:ruby
"
PATCH()
{
for i in `grep -lr config/hub` ; do
sed -i "s!~/.config/hub!~/config/settings/hub!g" $i
done
}
BUILD()
{
true
}
INSTALL()
{
rake install PREFIX=$prefix
sed -i -e "s/#!.*ruby/#!ruby/" $binDir/hub
# Fixup some hardcoded paths…
mkdir -p $docDir
mv $prefix/share/man $manDir
rmdir $prefix/share
}