2009-10-14 21:33:44 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Xmlstarlet <Formula
|
|
|
|
url 'http://downloads.sourceforge.net/project/xmlstar/xmlstarlet/1.0.1/xmlstarlet-1.0.1.tar.gz'
|
|
|
|
md5 '8deb71834bcdfb4443c258a1f0042fce'
|
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|
|
|
|
|
s.gsub! '${LIBXML_PREFIX}/lib/libxml2.a', '-lxml2'
|
|
|
|
s.gsub! '${LIBXSLT_PREFIX}/lib/libxslt.a', '-lxslt'
|
|
|
|
s.gsub! '${LIBXSLT_PREFIX}/lib/libexslt.a', '-lexslt'
|
|
|
|
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
|