7bd947eb0b
* Use new "url" features * Use keg_only DSL * Use "skip_clean :all" DSL * Whitespace and style cleanups * Make bash invocations less silly * Use new man2-man8 helpers * Remove "FileUtils." since it is included in Formula * Use real names for deps instead of aliases * ENV.x11 now updates path, so remove that from individual brews
19 lines
452 B
Ruby
19 lines
452 B
Ruby
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/'
|
|
md5 '3b3fc4f11e90635519fe627c1137c9ac'
|
|
|
|
def install
|
|
inreplace "Makefile" do |s|
|
|
s.remove_make_var! ["CC", "FLAGS", "LIBS", "LIBM"]
|
|
end
|
|
|
|
system "make standalone"
|
|
|
|
# Install manually
|
|
bin.install ["apg", "apgbfm"]
|
|
man1.install ["doc/man/apg.1", "doc/man/apgbfm.1"]
|
|
end
|
|
end
|