From da6ed80cada2e018de1e86f12f1319262b5630cc Mon Sep 17 00:00:00 2001 From: Lucas Florio Date: Wed, 1 Jun 2011 14:03:36 -0300 Subject: [PATCH] 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 --- Formula/libxslt.rb | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 Formula/libxslt.rb diff --git a/Formula/libxslt.rb b/Formula/libxslt.rb new file mode 100644 index 0000000000..dbf1e73001 --- /dev/null +++ b/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