homebrew-core/Formula/xmlstarlet.rb

23 lines
725 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Xmlstarlet < Formula
homepage 'http://xmlstar.sourceforge.net/'
url 'http://downloads.sourceforge.net/project/xmlstar/xmlstarlet/1.4.0/xmlstarlet-1.4.0.tar.gz'
sha1 '8c0542c4978e43fb876f6671a786510aa5f544cf'
def install
# 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_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
2012-03-10 22:26:01 +00:00
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--mandir=#{man}"
system "make"
system "make install"
end
end