homebrew-core/Formula/gplcver.rb

20 lines
488 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Gplcver < Formula
homepage 'http://gplcver.sourceforge.net/'
2012-03-10 05:41:20 +00:00
url 'http://sourceforge.net/projects/gplcver/files/gplcver/2.12a/gplcver-2.12a.src.tar.bz2'
md5 '857a15a9ebc8ef63ece01502509cbeb7'
def install
inreplace 'src/makefile.osx' do |s|
s.gsub! '-mcpu=powerpc', ''
s.change_make_var! 'CFLAGS', "$(INCS) $(OPTFLGS) #{ENV.cflags}"
end
2012-03-10 05:41:20 +00:00
cd 'src' do
system "make -f makefile.osx"
end
bin.install 'bin/cver'
end
end