4c47bbde80
Closes Homebrew/homebrew#9842. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
22 lines
675 B
Ruby
22 lines
675 B
Ruby
require 'formula'
|
|
|
|
class Pdf2image < Formula
|
|
homepage 'http://code.google.com/p/pdf2image/'
|
|
url 'http://pdf2image.googlecode.com/files/pdf2image-0.53-source.tar.gz'
|
|
md5 'df9614aa45284d2aa4c6e2596062eeb7'
|
|
|
|
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/"
|
|
|
|
# Add X11 libs manually; the Makefiles don't use LDFLAGS properly, so ENV.x11 doesn't work
|
|
# - @adamv
|
|
inreplace ["src/Makefile", "xpdf/Makefile"], "LDFLAGS =", "LDFLAGS=-L/usr/X11/lib"
|
|
|
|
system "make"
|
|
system "make install"
|
|
end
|
|
end
|