apg: avoid inreplace

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
Jack Nagel 2012-02-12 21:38:50 -06:00
parent 1b3d028c83
commit c748f1333f

View file

@ -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