2011-06-01 17:03:36 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Libxslt < Formula
|
|
|
|
homepage 'http://xmlsoft.org/XSLT/'
|
2013-01-18 04:44:27 +00:00
|
|
|
url 'ftp://xmlsoft.org/libxml2/libxslt-1.1.28.tar.gz'
|
2013-03-04 01:21:27 +00:00
|
|
|
mirror 'http://xmlsoft.org/sources/libxslt-1.1.28.tar.gz'
|
2013-01-18 04:44:27 +00:00
|
|
|
sha1 '4df177de629b2653db322bfb891afa3c0d1fa221'
|
2011-06-01 17:03:36 +00:00
|
|
|
|
|
|
|
keg_only :provided_by_osx
|
|
|
|
|
|
|
|
depends_on 'libxml2'
|
|
|
|
|
|
|
|
def install
|
2012-08-08 14:29:35 +00:00
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}",
|
2011-06-01 17:03:36 +00:00
|
|
|
"--with-libxml-prefix=#{Formula.factory('libxml2').prefix}"
|
|
|
|
system "make"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
|
|
|
|
def caveats; <<-EOS.undent
|
2012-08-08 14:29:35 +00:00
|
|
|
To allow the nokogiri gem to link against this libxslt run:
|
2013-03-04 01:21:37 +00:00
|
|
|
gem install nokogiri -- --with-xslt-dir=#{opt_prefix}
|
2011-06-01 17:03:36 +00:00
|
|
|
EOS
|
|
|
|
end
|
|
|
|
end
|