2012-01-27 08:29:42 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Pdf2json < Formula
|
|
|
|
homepage 'http://code.google.com/p/pdf2json/'
|
2013-01-02 01:24:25 +00:00
|
|
|
url 'http://pdf2json.googlecode.com/files/pdf2json-0.61.tar.gz'
|
|
|
|
sha1 'd7bfcf89ab82741ed014d3499fe7505d7168686d'
|
2012-01-27 08:29:42 +00:00
|
|
|
|
|
|
|
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}"
|
2013-01-03 14:39:24 +00:00
|
|
|
bin.install 'src/pdf2json'
|
2012-01-27 08:29:42 +00:00
|
|
|
end
|
|
|
|
end
|