diff options
| author | Lee Packham | 2011-11-17 15:31:58 +0000 |
|---|---|---|
| committer | Charlie Sharpsteen | 2011-11-17 12:33:41 -0800 |
| commit | 269cbc85aebb35c4fb9a51d5ec1a813c7e482e5c (patch) | |
| tree | b1436bcba9e894d817801a21f14b500e514289e1 /Library/Formula | |
| parent | 821a1c99bbf1a7490da81e9d730c4b4f3cfe2af9 (diff) | |
| download | homebrew-269cbc85aebb35c4fb9a51d5ec1a813c7e482e5c.tar.bz2 | |
Pig: Update to 0.9.1
They changed the launch script (shocker) so the patch had to change
a bit too.
Closes #8641.
Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/pig.rb | 27 |
1 files changed, 12 insertions, 15 deletions
diff --git a/Library/Formula/pig.rb b/Library/Formula/pig.rb index b3f6ce4a3..36a6e3b9c 100644 --- a/Library/Formula/pig.rb +++ b/Library/Formula/pig.rb @@ -1,9 +1,9 @@ require 'formula' class Pig < Formula - url 'http://www.apache.org/dyn/closer.cgi?path=pig/pig-0.9.0/pig-0.9.0.tar.gz' + url 'http://www.apache.org/dyn/closer.cgi?path=pig/pig-0.9.1/pig-0.9.1.tar.gz' homepage 'http://pig.apache.org/' - md5 '89e3bd3dbe3a9739ce54472421db6484' + md5 'f9aef698536b67b2966e48d328caf071' def patches DATA @@ -11,7 +11,7 @@ class Pig < Formula def install rm_f Dir["bin/*.bat"] - prefix.install ['bin', "pig-#{version}-core.jar"] + prefix.install ['bin', "pig-#{version}.jar"] end end @@ -22,16 +22,13 @@ diff --git a/bin/pig b/bin/pig index 97fc649..79056cf 100644 --- a/bin/pig +++ b/bin/pig -@@ -56,11 +56,7 @@ this="$0" - while [ -h "$this" ]; do - ls=`ls -ld "$this"` - link=`expr "$ls" : '.*-> \(.*\)$'` -- if expr "$link" : '.*/.*' > /dev/null; then -- this="$link" -- else -- this=`dirname "$this"`/"$link" -- fi -+ this=`dirname "$this"`/"$link" - done +@@ -61,6 +61,10 @@ + script="$(basename -- "$this")" + this="$bin/$script" - # convert relative path to absolute path ++ls=`ls -ld "$this"` ++link=`expr "$ls" : '.*-> \(.*\)$'` ++this=`dirname "$this"`/"$link" ++ + # the root of the Pig installation + export PIG_HOME=`dirname "$this"`/.. |
