homebrew-core/Formula/pdflib-lite.rb
Bradley M. Froehle 7cf6ac27a0 Fix link to pdflib-lite license.
Closes Homebrew/homebrew#14957.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-09-15 16:07:16 -07:00

32 lines
1.2 KiB
Ruby

require 'formula'
class PdflibLite < Formula
homepage 'http://www.pdflib.com/download/free-software/pdflib-lite/'
url 'http://www.pdflib.com/binaries/PDFlib/705/PDFlib-Lite-7.0.5p3.tar.gz'
version '7.0.5p3'
sha1 '42e0605ae21f4b6d25fa2d20e78fed6df36fbaa9'
def install
# Without the following substitution, pdflib-lite runs into weird
# build errors due to bad interactions with the TIFF headers.
# This workaround comes from the MacPorts.org portfile for pdflib.
ENV['CPPFLAGS'] = "-isystem#{prefix}"
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--without-java",
"--without-perl",
"--without-py",
"--without-tcl",
"--without-ruby"
system "make"
system "make install"
end
def caveats; <<-EOS.undent
pdflib-lite is not open source software; usage restrictions apply!
Be sure to understand and obey the license terms, which can be found at:
http://www.pdflib.com/download/free-software/pdflib-lite-7/pdflib-lite-licensing/
EOS
end
end