homebrew-core/Formula/xspringies.rb
Adam Vandenberg 193a78de04 Use more inreplace features.
Update formulas to make more idiomatic use of "inreplace", including
its new ability to take a list of files to act on.
2010-02-21 23:37:49 -08:00

16 lines
464 B
Ruby

require 'formula'
class Xspringies <Formula
url 'http://www.cs.rutgers.edu/~decarlo/software/xspringies-1.12.tar.Z'
homepage 'http://www.cs.rutgers.edu/~decarlo/software.html'
md5 '14b14916471874e9d0569ab5f4e8d492'
version '1.12'
def install
inreplace 'Makefile.std' do |s|
s.change_make_var! "LIBS", '-L/usr/X11/lib -lm -lX11'
s.gsub! 'mkdirhier', 'mkdir -p'
end
system "make -f Makefile.std DDIR=#{prefix}/ install"
end
end