1047435135
Only install the pdf2json binary. Closes Homebrew/homebrew#16871. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
16 lines
512 B
Ruby
16 lines
512 B
Ruby
require 'formula'
|
|
|
|
class Pdf2json < Formula
|
|
homepage 'http://code.google.com/p/pdf2json/'
|
|
url 'http://pdf2json.googlecode.com/files/pdf2json-0.61.tar.gz'
|
|
sha1 'd7bfcf89ab82741ed014d3499fe7505d7168686d'
|
|
|
|
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/"
|
|
system "make", "CC=#{ENV.cc}", "CXX=#{ENV.cxx}"
|
|
bin.install 'src/pdf2json'
|
|
end
|
|
end
|