minised: avoid inreplace
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
parent
106c5a234b
commit
93c98f10d3
1 changed files with 3 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue