homebrew-core/Formula/pdf2image.rb
Adam Vandenberg 45648b8d08 pdf2image: force std
Superenv is stripping flags this needs to compile.
Based on a comment, this formula is using flags in a slightly non-standard way.

Fixes Homebrew/homebrew#16186.
2013-01-17 17:07:50 -08:00

27 lines
753 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'
sha1 '2acc8d1597eb470fce761d3f35b548318d446c2a'
depends_on :x11
# superenv strips flags that are needed for the build to succeed
env :std
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
inreplace ["src/Makefile", "xpdf/Makefile"],
"LDFLAGS =", "LDFLAGS=-L#{MacOS::X11.lib}"
system "make"
system "make install"
end
end