aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/pdf2json.rb
blob: 0a5b9e697e2812bb125f61288a5f9cde82fecf97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
require 'formula'

class Pdf2json < Formula
  url 'http://pdf2json.googlecode.com/files/pdf2json-0.52-source.tar.gz'
  homepage 'http://code.google.com/p/pdf2json/'
  md5 '6f2c611bd30218391b0ff35d5a7df049'

  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/"
    system "make", "CC=#{ENV.cc}", "CXX=#{ENV.cxx}"
    system "make install"
  end
end