2010-12-18 13:14:07 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Djview4 < Formula
|
2011-08-23 02:22:14 +00:00
|
|
|
url 'http://sourceforge.net/projects/djvu/files/DjView/4.8/djview-4.8.tar.gz'
|
2010-12-18 13:14:07 +00:00
|
|
|
homepage 'http://djvu.sourceforge.net/djview4.html'
|
2011-08-23 02:22:14 +00:00
|
|
|
md5 '70ef8f416c7d6892cc0cf012bfd0ae07'
|
2010-12-18 13:14:07 +00:00
|
|
|
|
2011-07-29 23:45:06 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
2010-12-18 13:14:07 +00:00
|
|
|
depends_on 'djvulibre'
|
|
|
|
depends_on 'qt'
|
|
|
|
|
|
|
|
def install
|
|
|
|
system "./configure", "--disable-debug",
|
|
|
|
"--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--with-x=no",
|
|
|
|
"--disable-desktopfiles"
|
|
|
|
system "make"
|
2011-08-23 02:22:14 +00:00
|
|
|
|
|
|
|
# From the djview4.8 README:
|
|
|
|
# Note3: Do not use command "make install".
|
|
|
|
# Simply copy the application bundle where you want it.
|
|
|
|
prefix.install 'src/djview.app'
|
2010-12-18 13:14:07 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def caveats; <<-EOS
|
|
|
|
djview.app was installed in:
|
|
|
|
#{prefix}
|
|
|
|
|
|
|
|
To symlink into ~/Applications, you can do:
|
|
|
|
brew linkapps
|
|
|
|
EOS
|
|
|
|
end
|
|
|
|
end
|