apg: avoid inreplace
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
parent
1b3d028c83
commit
c748f1333f
1 changed files with 7 additions and 9 deletions
|
@ -1,19 +1,17 @@
|
|||
require 'formula'
|
||||
|
||||
class Apg < Formula
|
||||
url 'http://www.adel.nursat.kz/apg/download/apg-2.2.3.tar.gz'
|
||||
homepage 'http://www.adel.nursat.kz/apg/'
|
||||
url 'http://www.adel.nursat.kz/apg/download/apg-2.2.3.tar.gz'
|
||||
md5 '3b3fc4f11e90635519fe627c1137c9ac'
|
||||
|
||||
def install
|
||||
inreplace "Makefile" do |s|
|
||||
s.remove_make_var! ["CC", "FLAGS", "LIBS", "LIBM"]
|
||||
end
|
||||
system "make", "standalone",
|
||||
"CC=#{ENV.cc}",
|
||||
"FLAGS=#{ENV.cflags}",
|
||||
"LIBS=", "LIBM="
|
||||
|
||||
system "make standalone"
|
||||
|
||||
# Install manually
|
||||
bin.install ["apg", "apgbfm"]
|
||||
man1.install ["doc/man/apg.1", "doc/man/apgbfm.1"]
|
||||
bin.install 'apg', 'apgbfm'
|
||||
man1.install 'doc/man/apg.1', 'doc/man/apgbfm.1'
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue