minised: avoid inreplace

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
Jack Nagel 2012-02-09 20:47:46 -06:00
parent 106c5a234b
commit 93c98f10d3

View file

@ -1,17 +1,12 @@
require 'formula'
class Minised < Formula
url 'http://dl.exactcode.de/oss/minised/minised-1.13.tar.gz'
homepage 'http://www.exactcode.de/site/open_source/minised/'
url 'http://dl.exactcode.de/oss/minised/minised-1.13.tar.gz'
md5 '2a43b1bbf1654ef7fab9d8c4f6c979a1'
def install
inreplace "Makefile" do |s|
s.change_make_var! "DESTDIR", prefix
s.change_make_var! "PREFIX", ""
end
system "make"
system "make install"
system "make" # separate steps or it won't build the binary
system "make", "DESTDIR=#{prefix}", "PREFIX=", "install"
end
end