blob: dbf1e73001bd13e1e8b0764f0e212180adb30e0a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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
  |