aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/ocrad.rb17
1 files changed, 6 insertions, 11 deletions
diff --git a/Library/Formula/ocrad.rb b/Library/Formula/ocrad.rb
index f2b075ac0..629d321f5 100644
--- a/Library/Formula/ocrad.rb
+++ b/Library/Formula/ocrad.rb
@@ -1,19 +1,14 @@
require 'formula'
class Ocrad < Formula
- url 'http://ftpmirror.gnu.org/ocrad/ocrad-0.20.tar.gz'
- mirror 'http://ftp.gnu.org/gnu/ocrad/ocrad-0.20.tar.gz'
homepage 'http://www.gnu.org/software/ocrad/'
- md5 '47040630580dbc75ce16f4a4fabede3f'
+ url 'http://ftpmirror.gnu.org/ocrad/ocrad-0.21.tar.gz'
+ mirror 'http://ftp.gnu.org/gnu/ocrad/ocrad-0.21.tar.gz'
+ md5 '83f9eae9d808f9d86c181538d3f64aed'
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"
+ system "./configure", "--disable-debug", "--disable-dependency-tracking",
+ "--prefix=#{prefix}"
+ system "make", "install", "CXXFLAGS=#{ENV['CXXFLAGS']}"
end
end