2015-04-28 13:27:26 +00:00
|
|
|
SUMMARY="Git helper for better Github integration"
|
2015-04-27 19:10:10 +00:00
|
|
|
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."
|
2018-09-12 08:15:09 +00:00
|
|
|
HOMEPAGE="https://hub.github.com/"
|
2016-02-17 19:26:37 +00:00
|
|
|
COPYRIGHT="2009-2014 Chris Wanstrath"
|
|
|
|
LICENSE="MIT"
|
2018-09-12 08:15:09 +00:00
|
|
|
REVISION="4"
|
2015-07-02 15:12:32 +00:00
|
|
|
SOURCE_URI="https://github.com/github/hub/archive/v1.12.4.tar.gz"
|
2015-11-12 10:54:57 +00:00
|
|
|
CHECKSUM_SHA256="b7fe404d7dc5f60554f088bec12de5e80229331430ea0ced46d5bf89ecae5117"
|
2015-04-27 19:10:10 +00:00
|
|
|
|
2016-02-17 19:26:37 +00:00
|
|
|
ARCHITECTURES="any"
|
|
|
|
|
2015-04-27 19:10:10 +00:00
|
|
|
PROVIDES="
|
|
|
|
hub = $portVersion
|
|
|
|
cmd:hub
|
2016-02-26 15:33:51 +00:00
|
|
|
"
|
2015-04-27 19:10:10 +00:00
|
|
|
REQUIRES="
|
|
|
|
cmd:ruby
|
2016-02-26 15:33:51 +00:00
|
|
|
"
|
2018-08-06 13:04:59 +00:00
|
|
|
|
2015-04-27 19:10:10 +00:00
|
|
|
BUILD_PREREQUIRES="
|
|
|
|
cmd:rake
|
2018-08-08 14:18:18 +00:00
|
|
|
cmd:ruby
|
2016-02-29 01:17:42 +00:00
|
|
|
"
|
2015-04-27 19:10:10 +00:00
|
|
|
|
2015-11-13 09:06:49 +00:00
|
|
|
PATCH()
|
|
|
|
{
|
|
|
|
for i in `grep -lr config/hub` ; do
|
|
|
|
sed -i "s!~/.config/hub!~/config/settings/hub!g" $i
|
|
|
|
done
|
|
|
|
}
|
|
|
|
|
2015-04-27 19:10:10 +00:00
|
|
|
BUILD()
|
|
|
|
{
|
|
|
|
true
|
|
|
|
}
|
|
|
|
|
|
|
|
INSTALL()
|
|
|
|
{
|
|
|
|
rake install PREFIX=$prefix
|
|
|
|
|
2017-06-03 06:50:20 +00:00
|
|
|
sed -i -e "s/#!.*ruby/#!ruby/" $binDir/hub
|
|
|
|
|
2015-04-27 19:10:10 +00:00
|
|
|
# Fixup some hardcoded paths…
|
|
|
|
mkdir -p $docDir
|
|
|
|
mv $prefix/share/man $manDir
|
|
|
|
rmdir $prefix/share
|
|
|
|
}
|