hub: fix hardcoded ruby path

rake hardcoded the path to ruby in the installed scripts, which breaks
the script when ruby is updated. Just use #!ruby for Haiku, as this
works fine and resists updates.
This commit is contained in:
Adrien Destugues
2017-06-03 08:50:20 +02:00
parent ef746d029b
commit bc533bbd7b

View File

@@ -6,7 +6,7 @@ all from the command line."
HOMEPAGE="http://hub.github.com/"
COPYRIGHT="2009-2014 Chris Wanstrath"
LICENSE="MIT"
REVISION="2"
REVISION="3"
SOURCE_URI="https://github.com/github/hub/archive/v1.12.4.tar.gz"
CHECKSUM_SHA256="b7fe404d7dc5f60554f088bec12de5e80229331430ea0ced46d5bf89ecae5117"
@@ -40,6 +40,8 @@ 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