From 269cbc85aebb35c4fb9a51d5ec1a813c7e482e5c Mon Sep 17 00:00:00 2001 From: Lee Packham Date: Thu, 17 Nov 2011 15:31:58 +0000 Subject: 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 --- Library/Formula/pig.rb | 27 ++++++++++++--------------- 1 file changed, 12 insertions(+), 15 deletions(-) (limited to 'Library') 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"`/.. -- cgit v1.2.3