sl: avoid inreplace
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
parent
7e4a255233
commit
c25f4ab762
1 changed files with 2 additions and 7 deletions
|
@ -1,18 +1,13 @@
|
|||
require 'formula'
|
||||
|
||||
class Sl < Formula
|
||||
homepage 'http://packages.debian.org/source/stable/sl'
|
||||
url 'http://mirrors.kernel.org/debian/pool/main/s/sl/sl_3.03.orig.tar.gz'
|
||||
mirror 'http://ftp.us.debian.org/debian/pool/main/s/sl/sl_3.03.orig.tar.gz'
|
||||
homepage 'http://packages.debian.org/source/stable/sl'
|
||||
md5 'd0d997b964bb3478f7f4968eee13c698'
|
||||
|
||||
def install
|
||||
inreplace 'Makefile' do |s|
|
||||
s.change_make_var! 'CC', ENV.cc
|
||||
s.change_make_var! 'CFLAGS', ENV.cflags
|
||||
end
|
||||
|
||||
system "make"
|
||||
system "make", "CC=#{ENV.cc}", "CFLAGS=#{ENV.cflags}"
|
||||
bin.install "sl"
|
||||
man1.install "sl.1"
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue