2010-08-18 03:42:37 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Ocrad < Formula
|
2010-08-18 03:42:37 +00:00
|
|
|
homepage 'http://www.gnu.org/software/ocrad/'
|
2013-12-02 14:59:18 +00:00
|
|
|
url 'http://ftpmirror.gnu.org/ocrad/ocrad-0.22.tar.lz'
|
|
|
|
mirror 'http://ftp.gnu.org/gnu/ocrad/ocrad-0.22.tar.lz'
|
|
|
|
sha1 'cfb3284b9d7387af80bcd795c093624eb40f6d13'
|
|
|
|
|
|
|
|
def patches
|
|
|
|
# Patch to compile with libc++ in Mavericks. Reported to list:
|
|
|
|
# http://lists.gnu.org/archive/html/bug-ocrad/2013-11/msg00000.html
|
2013-12-09 16:40:38 +00:00
|
|
|
"https://gist.github.com/mcs07/7751030/raw/4f43e7cd123c33fbcc2459fa496b3ee8ecf344a0/ocrad-mavericks.diff"
|
2013-12-02 14:59:18 +00:00
|
|
|
end
|
2010-08-18 03:42:37 +00:00
|
|
|
|
|
|
|
def install
|
2013-12-02 14:59:18 +00:00
|
|
|
system "./configure", "--prefix=#{prefix}"
|
2012-05-15 18:47:30 +00:00
|
|
|
system "make", "install", "CXXFLAGS=#{ENV.cxxflags}"
|
2010-08-18 03:42:37 +00:00
|
|
|
end
|
2013-12-02 14:59:18 +00:00
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{bin}/ocrad", "-h"
|
|
|
|
end
|
2011-03-10 05:11:03 +00:00
|
|
|
end
|