aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorLucas Florio2011-06-01 14:03:36 -0300
committerJack Nagel2011-09-02 15:45:18 -0500
commitcb3a5242483ac7489c495f3b474058f164623f3c (patch)
tree08062dec2689ea639caaf74dcd30c28e33928eca /Library
parent6fcbc40af30917da918d0a2f7a5248a25ffc8cc9 (diff)
downloadhomebrew-cb3a5242483ac7489c495f3b474058f164623f3c.tar.bz2
New formula: libxslt 1.1.26
Allow a keg-only libxslt because it's need by e.g. the nokogiri gem. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/libxslt.rb26
1 files changed, 26 insertions, 0 deletions
diff --git a/Library/Formula/libxslt.rb b/Library/Formula/libxslt.rb
new file mode 100644
index 000000000..dbf1e7300
--- /dev/null
+++ b/Library/Formula/libxslt.rb
@@ -0,0 +1,26 @@
+require 'formula'
+
+class Libxslt < Formula
+ url 'ftp://xmlsoft.org/libxml2/libxslt-1.1.26.tar.gz'
+ homepage 'http://xmlsoft.org/XSLT/'
+ md5 'e61d0364a30146aaa3001296f853b2b9'
+
+ keg_only :provided_by_osx
+
+ depends_on 'libxml2'
+
+ def install
+ system "./configure", "--prefix=#{prefix}",
+ "--disable-dependency-tracking",
+ "--with-libxml-prefix=#{Formula.factory('libxml2').prefix}"
+ system "make"
+ system "make install"
+ end
+
+ def caveats; <<-EOS.undent
+ To allow the nokogiri gem to link against this libxslt, run
+
+ gem install nokogiri -- --with-xslt-dir=#{prefix}
+ EOS
+ end
+end