homebrew-core/Formula/pdflib-lite.rb
Adam Vandenberg 7bd947eb0b Update formulae for version 0.7
* Use new "url" features
* Use keg_only DSL
* Use "skip_clean :all" DSL
* Whitespace and style cleanups
* Make bash invocations less silly
* Use new man2-man8 helpers
* Remove "FileUtils." since it is included in Formula
* Use real names for deps instead of aliases
* ENV.x11 now updates path, so remove that from individual brews
2010-08-07 18:08:53 -07:00

34 lines
1.2 KiB
Ruby

require 'formula'
class PdflibLite <Formula
url 'http://www.pdflib.com/binaries/PDFlib/704/PDFlib-Lite-7.0.4p4.tar.gz'
homepage 'http://www.pdflib.com/download/free-software/pdflib-lite/'
md5 '1765de9c5f2b6c5769a2160eaa911e9a'
version "7.0.4p4"
def install
fails_with_llvm "SL 10.6.1 LLVM crashes with an internal compiler error on this version."
# Without the following substituion, 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"
def caveats; <<-EOM
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/products/pdflib-family/pdflib-lite/pdflib-lite-licensing/
EOM
end
end
end