aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorRobert Bousquet2012-01-27 17:41:34 -0800
committerAdam Vandenberg2012-04-29 14:13:00 -0700
commitbc480977a393702365905fd2039a6c31cb9cddcb (patch)
treeffb8a18524683e198bc21ec45541331fbb70a816 /Library/Formula
parentece73d2980ed3e86c47eb70870f93a314c9d2a40 (diff)
downloadhomebrew-bc480977a393702365905fd2039a6c31cb9cddcb.tar.bz2
pdf2image 0.53
Closes #9842. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/pdf2image.rb22
1 files changed, 22 insertions, 0 deletions
diff --git a/Library/Formula/pdf2image.rb b/Library/Formula/pdf2image.rb
new file mode 100644
index 000000000..9667e6896
--- /dev/null
+++ b/Library/Formula/pdf2image.rb
@@ -0,0 +1,22 @@
+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