spiped: avoid inreplace

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
Jack Nagel 2012-02-09 20:33:52 -06:00
parent a6813009f4
commit 0805812bb0

View file

@ -1,16 +1,11 @@
require 'formula'
class Spiped < Formula
url 'http://www.tarsnap.com/spiped/spiped-1.1.0.tgz'
homepage 'http://www.tarsnap.com/spiped.html'
url 'http://www.tarsnap.com/spiped/spiped-1.1.0.tgz'
sha256 'b727b902310d217d56c07d503c4175c65387ff07c9cd50a24584903faf9f3dc3'
def install
inreplace 'Makefile' do |s|
s.change_make_var! "LDADD", "-lcrypto"
s.change_make_var! "BINDIR_DEFAULT", bin
end
system "bsdmake install"
system "bsdmake", "LDADD=-lcrypto", "BINDIR_DEFAULT=#{bin}", "install"
end
end