2010-08-18 03:42:37 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Ocrad < Formula
|
2011-09-12 16:31:30 +00:00
|
|
|
url 'http://ftpmirror.gnu.org/ocrad/ocrad-0.20.tar.gz'
|
2011-11-30 18:56:07 +00:00
|
|
|
mirror 'http://ftp.gnu.org/gnu/ocrad/ocrad-0.20.tar.gz'
|
2010-08-18 03:42:37 +00:00
|
|
|
homepage 'http://www.gnu.org/software/ocrad/'
|
|
|
|
md5 '47040630580dbc75ce16f4a4fabede3f'
|
|
|
|
|
|
|
|
def install
|
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking", "--prefix=#{prefix}"
|
|
|
|
|
|
|
|
inreplace "Makefile" do |s|
|
|
|
|
s.change_make_var! "CPPFLAGS", ENV['CPPFLAGS']
|
|
|
|
s.change_make_var! "CXXFLAGS", ENV['CXXFLAGS']
|
|
|
|
end
|
|
|
|
|
|
|
|
system "make install"
|
|
|
|
end
|
2011-03-10 05:11:03 +00:00
|
|
|
end
|