aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/libxml2.rb
diff options
context:
space:
mode:
authorKieran Pilkington2009-11-02 16:00:35 +1300
committerMax Howell2009-11-09 18:31:52 +0000
commit8b76ead271261f1d20e5b39470ee15851cf1666c (patch)
treefe5d538cb969817c3de4ea2eba3c715743b90480 /Library/Formula/libxml2.rb
parentd5898a547da0e871e49fe8934318c3db7af94f45 (diff)
downloadhomebrew-8b76ead271261f1d20e5b39470ee15851cf1666c.tar.bz2
Libxml2
Providing a keg only version of libxml2. The one provided by Mac is old and doesn't contain some files used by some games.
Diffstat (limited to 'Library/Formula/libxml2.rb')
-rw-r--r--Library/Formula/libxml2.rb19
1 files changed, 19 insertions, 0 deletions
diff --git a/Library/Formula/libxml2.rb b/Library/Formula/libxml2.rb
new file mode 100644
index 000000000..5e436d1d9
--- /dev/null
+++ b/Library/Formula/libxml2.rb
@@ -0,0 +1,19 @@
+require 'formula'
+
+class Libxml2 <Formula
+ url 'ftp://xmlsoft.org/libxml2/libxml2-2.7.6.tar.gz'
+ homepage 'http://xmlsoft.org'
+ md5 '7740a8ec23878a2f50120e1faa2730f2'
+
+ def keg_only?
+ :provided_by_osx
+ end
+
+ def install
+ ENV.gcc_4_2
+ system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
+ system "make"
+ ENV.j1
+ system "make install"
+ end
+end