homebrew-core/Formula/xmlstarlet.rb
Brett Koonce b7d490dc5f xmlstarlet 1.4.2
Closes Homebrew/homebrew#16870.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-01-03 08:45:09 -08:00

22 lines
722 B
Ruby

require 'formula'
class Xmlstarlet < Formula
homepage 'http://xmlstar.sourceforge.net/'
url 'http://sourceforge.net/projects/xmlstar/files/xmlstarlet/1.4.2/xmlstarlet-1.4.2.tar.gz'
sha1 '432bd1bd2511369b7823e5731397744435a68f04'
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