aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorTheo2009-12-18 21:07:13 +0100
committerTheo2009-12-18 21:07:13 +0100
commit5aaaa9c7c0798aaec69cd4883863567307744e7b (patch)
tree3f638d6c2555990b20e0a17e97373ed29ccea674 /Library/Formula
parente5869fe8e1ded2409431ec96a6ba69252215de13 (diff)
downloadhomebrew-5aaaa9c7c0798aaec69cd4883863567307744e7b.tar.bz2
Pig formula
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/pig.rb40
1 files changed, 40 insertions, 0 deletions
diff --git a/Library/Formula/pig.rb b/Library/Formula/pig.rb
new file mode 100644
index 000000000..80d9bd5ae
--- /dev/null
+++ b/Library/Formula/pig.rb
@@ -0,0 +1,40 @@
+require 'formula'
+
+class Pig < Formula
+ url 'http://apache.dataphone.se/hadoop/pig/pig-0.5.0/pig-0.5.0.tar.gz'
+ homepage 'http://hadoop.apache.org/pig/'
+ md5 '9687f3a8c6042938bf8b1b225e6d4b40'
+
+ def patches
+ DATA
+ end
+
+ def install
+ rm_f Dir["#{bin}/*.bat"]
+ prefix.install 'bin'
+ prefix.install 'lib/hadoop20.jar'
+ prefix.install "pig-#{version}-core.jar"
+ end
+
+end
+
+# There's something weird with Pig's launch script, it doesn't find the correct
+# path. This patch removes a test that should fail, but doesn't.
+__END__
+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
+
+ # convert relative path to absolute path