blob: 31c9e6fc4a7b0614050701585f5dd04cf1508b71 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
require 'formula'
class Ocrad < Formula
homepage 'http://www.gnu.org/software/ocrad/'
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
"https://gist.github.com/mcs07/7751030/raw/4f43e7cd123c33fbcc2459fa496b3ee8ecf344a0/ocrad-mavericks.diff"
end
def install
system "./configure", "--prefix=#{prefix}"
system "make", "install", "CXXFLAGS=#{ENV.cxxflags}"
end
test do
system "#{bin}/ocrad", "-h"
end
end
|