homebrew-core/Formula/xmlstarlet.rb
Simon Olofsson fc7382cbca xmlstarlet 1.4.0
Closes Homebrew/homebrew#14747.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-09-05 16:17:44 -05:00

22 lines
725 B
Ruby

require 'formula'
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
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'
end
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--mandir=#{man}"
system "make"
system "make install"
end
end