2012-01-27 08:29:42 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Pdf2json < Formula
|
|
|
|
url 'http://pdf2json.googlecode.com/files/pdf2json-0.52-source.tar.gz'
|
|
|
|
homepage 'http://code.google.com/p/pdf2json/'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '2ec59f73cf72227d92ad91ab3e873433a60df81c'
|
2012-01-27 08:29:42 +00:00
|
|
|
|
|
|
|
depends_on 'xpdf'
|
|
|
|
|
|
|
|
def install
|
|
|
|
system "./configure", "--prefix=#{prefix}"
|
|
|
|
# Fix manpage install location. See:
|
|
|
|
# http://code.google.com/p/pdf2json/issues/detail?id=2
|
|
|
|
inreplace "Makefile", "/man/", "/share/man/"
|
2012-05-17 20:17:07 +00:00
|
|
|
system "make", "CC=#{ENV.cc}", "CXX=#{ENV.cxx}"
|
2012-01-27 08:29:42 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|