2009-10-14 21:33:44 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Xmlstarlet < Formula
|
2011-05-02 03:01:02 +00:00
|
|
|
url 'http://downloads.sourceforge.net/project/xmlstar/xmlstarlet/1.1.0/xmlstarlet-1.1.0.tar.gz'
|
|
|
|
md5 '1b864b16c1dc78ce87ffc8528f021ab0'
|
2009-10-19 01:35:50 +00:00
|
|
|
homepage 'http://xmlstar.sourceforge.net/'
|
2009-10-14 21:33:44 +00:00
|
|
|
|
|
|
|
def install
|
2009-10-19 01:35:50 +00:00
|
|
|
# thanks, xmlstarlet but OS X doesn't have the static versions
|
2010-01-13 11:06:52 +00:00
|
|
|
inreplace 'configure' do |s|
|
2011-02-24 06:18:47 +00:00
|
|
|
s.gsub! '$LIBXML_LIBDIR/libxml2.a', '-lxml2'
|
|
|
|
s.gsub! '$LIBXSLT_LIBDIR/libxslt.a', '-lxslt'
|
|
|
|
s.gsub! '$LIBXSLT_LIBDIR/libexslt.a', '-lexslt'
|
2010-01-13 11:06:52 +00:00
|
|
|
end
|
2009-10-19 01:35:50 +00:00
|
|
|
|
2010-10-15 18:18:46 +00:00
|
|
|
system "./configure", "--prefix=#{prefix}", "--mandir=#{man}", "--disable-debug", "--disable-dependency-tracking"
|
2009-10-14 21:33:44 +00:00
|
|
|
system "make"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|