blob: 634c8f1556088855d5288d4d9d453028c2f549f0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
require 'formula'
class Djview4 < Formula
url 'http://sourceforge.net/projects/djvu/files/DjView/4.8/djview-4.8.tar.gz'
homepage 'http://djvu.sourceforge.net/djview4.html'
md5 '70ef8f416c7d6892cc0cf012bfd0ae07'
depends_on 'pkg-config' => :build
depends_on 'djvulibre'
depends_on 'qt'
def install
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--prefix=#{prefix}",
"--with-x=no",
"--disable-desktopfiles"
system "make"
# 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'
end
def caveats; <<-EOS
djview.app was installed in:
#{prefix}
To symlink into ~/Applications, you can do:
brew linkapps
EOS
end
end
|