2012-01-28 01:41:34 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Pdf2image < Formula
|
|
|
|
homepage 'http://code.google.com/p/pdf2image/'
|
|
|
|
url 'http://pdf2image.googlecode.com/files/pdf2image-0.53-source.tar.gz'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '2acc8d1597eb470fce761d3f35b548318d446c2a'
|
2012-01-28 01:41:34 +00:00
|
|
|
|
2012-06-07 01:35:12 +00:00
|
|
|
depends_on :x11
|
|
|
|
|
2013-01-18 01:07:50 +00:00
|
|
|
# superenv strips flags that are needed for the build to succeed
|
|
|
|
env :std
|
|
|
|
|
2012-01-28 01:41:34 +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-06-07 01:35:12 +00:00
|
|
|
# Add X11 libs manually; the Makefiles don't use LDFLAGS properly
|
2013-01-18 01:07:50 +00:00
|
|
|
inreplace ["src/Makefile", "xpdf/Makefile"],
|
|
|
|
"LDFLAGS =", "LDFLAGS=-L#{MacOS::X11.lib}"
|
2012-01-28 01:41:34 +00:00
|
|
|
|
|
|
|
system "make"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|